问题
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

回答1:
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:
you should decrease ticks for axis yourChart.yAxis().ticks(0);
来源:https://stackoverflow.com/questions/22442233/hide-all-text-on-y-axis-dc-js-bar-chart