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 に答える