Get Free Trial
Get Free Trial

How to control chart color

Answered
Jesper Bo Rasmussen asked on October 2, 2019

Hi
Is is possible to control chart colors, based on the data they are showing and not based on the order.
So f.eks. Rome in this example always has the color dark green even if it is showing up as the first column
https://jsfiddle.net/flexmonster/08wf6fgL/
 

1 answer

Public
Vera Didenko Flexmonster October 2, 2019

Hello, 
 
Thank you for writing to us.
 
We would like to explain that at the moment in Flexmonster colors are not attached to a specific field.
Colors are generated in the needed amount to differ fields on the chart.
This is why the colors change when the number of fields to display on the chart changes.
 
A possible solution to your case is to use a third-party chart library, which supports coloring bars depending on values. 
This tutorial will help you to connect the chosen 3rd party visualization tool to Flexmonster: https://www.flexmonster.com/doc/integration-with-any-charting-library/
 
Please let us know if you have any questions.
 
Best Regards,
Vera

Please login or Register to Submit Answer