Hi,
How can I add the label in my fusion charts.
Please see attached image file. As you can see the Y-axis label is not shown. It should put the dates in there but its not. Please help.
Regards,
Albert Banez
Hi,
any answers to this?
Hello, Albert,
Thank you for reporting the problem.
We did manage to reproduce it on our side.
Our team suggests using the following workaround to overcome this issue:
Complement both callback handlers of the getData
function with the following code snippets:
pivot.fusioncharts.getData({
type: chart.chartType()
}, function(chartConfig) {
for (let elem of chartConfig.data) {
elem.label = elem.label.toString();
}
chart.setJSONData(chartConfig);
chart.render();
}, function(chartConfig) {
for (let elem of chartConfig.data) {
elem.label = elem.label.toString();
}
chart.setJSONData(chartConfig);
});
It allows displaying dates on the chart as expected.
Please see the following JSFiddle demonstrating this approach: https://jsfiddle.net/flexmonster/t2yjLk3x/.
We hope it works for you.
Regards,
Illia
Hi Illia,
Thanks for the answer sir.
What i did is dateformat. it fixed the issues.
Thansk.
Hello, Albert,
We are glad to announce that the issue with numeric labels being passed to FusionCharts was fixed.
This is available in the 2.8.24 version of Flexmonster: https://www.flexmonster.com/release-notes/.
You are welcome to update the component.
Here is our updating to the latest version guide for assistance: https://www.flexmonster.com/doc/updating-to-the-latest-version/.
Please let us know if everything works.
Best regards,
Illia
This question is now closed