Need a special offer?Find out if your project fits.
+

fusioncharts label

Closed
Albert Ryan Banez asked on December 23, 2020

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
 
 
 

Attachments:
fusioncharts.png

4 answers

Public
Albert Ryan Banez December 24, 2020

Hi, 
any answers to this?

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster December 24, 2020

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

Public
Albert Ryan Banez December 29, 2020

Hi Illia,
Thanks for the answer sir.
What i did is dateformat. it fixed the issues.
Thansk.
 

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster January 12, 2021

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