We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

How can I put a text to describe the legend in the pivot charts ?

Open
ahmad asked on October 22, 2019

Hi, 
I am using pivot charts in the URL below, and I need to put the column name in front of the coloured legend. 

https://www.flexmonster.com/demos/js/pivot-charts/

For example, in your sample, I need to put the term "Cities:" on the left-hand-side of the coloured legend (Mumbai, New york, Rome, ...). How can I do this?

2 answers

Public
Vera Didenko Vera Didenko Flexmonster October 23, 2019

Hello, Ahmad,
 
Thank you for writing to us.
 
At the moment Flexmonster doesn't provide an option for adding the title of the field to the legend.
However, Flexmonster can be integrated with third-party chart libraries that support the desired feature: https://www.flexmonster.com/doc/integration-with-any-charting-library/
 
Here are some examples of how different chart libraries can be used in Flexmonster:
1) Integration with Highcharts: https://www.flexmonster.com/examples/#!highcharts
2) Integration with FusionCharts: https://www.flexmonster.com/examples/#!fusioncharts
3) Integration with Google Charts: https://www.flexmonster.com/examples/#!google-charts
 
Please let us know if you have any questions.
 
Best Regards,
Vera

Public
Vera Didenko Vera Didenko Flexmonster October 24, 2019

Hello, Ahmad,
 
Thank you for your reply.
 
We are glad to let you know that we found a workaround on how the field title can be added to the legend.
Here is a JSFiddle example: https://jsfiddle.net/flexmonster/369fmn40/
 
Please let us know if this works.
 
Best Regards,
Vera

Please login or Register to Submit Answer