我正在使用HighCharts进行折线图报告.在这个特定的报告中,我被要求自定义每个系列的颜色.该系列将始终保持不变.例如:
约翰系列:蓝色虚线玛丽系列:纯红线
有谁知道如何做到这一点?
我可以根据标记的颜色是高于(红色)还是低于(绿色)或介于(黄色)来更改标记颜色,但不能更改标记之间的线条颜色。这可能吗?现在,它只是显示为蓝线。
function makeRun(divId, last, current, goal, title, yAxisTitle) {
var width = 1000; var SizeOfFont = '14px';
var min = checkMinMaxArray(current, last, goal, 'min') * 995 / 1000; //sets min closely below the real min. **consider changing to 4/5 digits**
var max = checkMinMaxArray(current, last, goal, 'max') * 1005 / 1000; //sets max closely above the real max
//if there are projections, color code the columns here
preprocessData = function (data, last, goal) {
var nData = [];
var colorGood …Run Code Online (Sandbox Code Playgroud)