Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用不同的颜色表示一条线,它会显示一些特殊的行为。在此示例中,蓝线显示正常数据,但我想用红线注释单行。有什么办法可以做到这一点。?
您可以添加一些条件来突出显示特定系列:
series: data.map(function (set, i) { if (i === 10) { return { name: 'Runner ' + i, data: set, shadow: false, color: 'red', zIndex: 1 }; } return { name: 'Runner ' + i, data: set, shadow: false }; })
现场演示:https ://jsfiddle.net/BlackLabel/17m3waLu/