我可以通过调用用户传递的函数来动态添加颜色吗?我已经默认定义了选项变量,用户传递的颜色应该位于选项变量中。这可能吗?请帮忙
var options = {
series: {
lines: {
show: true
},
points: {
show: true
},
color: '#00c7ce'--> user should pass dynamically
},
xaxis: {
mode: "time",
tickSize: [1, "month"],
tickLength: 0,
},
yaxis: {
show: false
}
}
};