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
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);
debugger;
to d3.js for understand what missed. –
Frayne © 2022 - 2024 — McMap. All rights reserved.