Multi-colored stripes on the chart, is this possible?

I looked through the documentation and the only link I can find is for the different colors of the series . However, I have only one series of data and would like the points / columns in this series to differ from each other.

I could use several rows and make the points equal to zero, which would have the same effect.

Is there a supported mechanism for the different color bars on the histogram using the fleet?

+7
javascript graph flot
source share
3 answers

Multiple colors are not supported in one series.

The fleet allows you to specify the colors of the dots at the data level, which means that each color must be its own dataseries. With this in mind, the solution is to create a single dataset for each color.

+8
source share

There is a Flot plugin that allows you to set the color based on the set thresholds. You can get the plugin code here: https://github.com/subhrajitroy/Flot-plugin/blob/master/jquery.flot.threshold.multiple.js

+4
source share

Now the fleet comes with a plugin that does just that.

Inside, he breaks the series into several rows and assigns a different color to each color.

The plugin is located on the gitub page on the fleet:
https://github.com/flot/flot/blob/master/jquery.flot.threshold.js

+3
source share

All Articles