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.
Thanks
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);
you should decrease ticks for axis yourChart.yAxis().ticks(0);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With