analysis and shiny app of the discrete bar chart of nvd3