In this article you will learn about how to rename Axis labels. Now, Open the visualization where you want to rename the axis label.
Currently, x-axis name : Destination , y-axis name : Travel Count
Now, to change or replace it with some other name you will require Javascript code for it.
Javascript Code :
hi_container.set("postExecution", function () {
Hdi.c3chart.axis.labels({
x: 'Destination place', // provide the new name
y: 'Number of Travels' // provide the new name
});
});
On injecting the code, the output will be
As shown in the above image, you can see updated axis labels which are
x-axis : Destination place & y-axis : Number of Travels
Moreover, using CSS and Javascript, you can add more customization.
For more info, contact us at support@helicalinsight.com