我正在使用 Jqplot 的 fillBetween
属性用指定颜色填充系列之间的区域:
fillBetween: {
// series1: Required, if missing won't fill.
series1: 0,
// series2: Required, if missing won't fill.
series2: 1,
// color: Optional, defaults to fillColor of series1.
color: "rgba(227, 167, 111, 0.7)",
baseSeries: 0,
// fill: Optional, defaults to true. False to turn off fill.
fill: true
}
按照上面的例子,它用指定的颜色填充系列 0 和系列 1 之间的区域。
我想填充 0 和 1、2 和 3 以及 4 和 5 系列之间的区域。有谁知道如何做到这一点?
最佳答案
我已经为这个问题创建了修复程序: Bitbucket pull request for jqplot
我已将更改提交到主 Jqplot 存储库中,以便合并到下一个版本中。 如果需要,请随时使用我的修复程序。
关于javascript - jqplot:在两条线之间填充颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16905421/