I am creating a DC.JS based dashboard, but would like to figure out how to hide all of the text on the y axis of the bar chart as well as style the text on the x axis.
You should decrease ticks to zero: yourChart.yAxis().ticks(0);
Note that this does not return a reference to your chart, so you cannot chain this method. You must put it on a separate line. Like this:
var yourChart = dc.barChart('#your-chart').width(1024).height(50);
yourChart.yAxis().ticks(0);
2
votes
you should decrease ticks for axis yourChart.yAxis().ticks(0);
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more