You can control the formatting of values along the X axis using the .xAxis () method. tickFormat (), which comes from D3.
// To format as a percent chart.xAxis().tickFormat(function(v) { return 100 * v/yourDenominator + "%"; }); // To blank the the values entirely, though not the actual ticks marks themselves chart.xAxis().tickFormat(function(v) { return ""; });
Here is a link to the documentation
https://github.com/dc-js/dc.js/blob/master/web/docs/api-1.6.0.md#xaxisxaxis
I found it best to do such things outside of the traditional stack of configuration methods, because if you include xxx (). tickFormat () with everything else, the next method on the stack, of course, will have to be associated with the D3 object emitted by the call to .tickFormat (), which can lead to errors of insanity.
Bernard hymmen
source share