2

我想使用 JQPlot jquery 图表插件根据它们的值将条形设置为不同的颜色。

E.g. the rendered bars will be colored with RED if the value of the bar is 13 and over
     the rendered bars will be colored with YELLOW if the value of the bar is between 10 - 12
     the rendered bars will be colored with BLUE if the value of the bar is less than 10

这可能吗?示例片段是什么?我似乎无法在网上找到很多信息。

谢谢

4

1 回答 1

0

看看这里给出的答案。我不确定它是否有效,但它可能会为您指明正确的方向。基本上,它是关于覆盖 jqPlot 颜色生成器并根据条形图的值返回颜色。

于 2012-11-16T13:26:28.793 回答