I am trying to change the color of the series for the javascript chart control, but no matter what I put in, it always stays the same color. Below is my code for creating the chart:
$('#' + divG).ejChart({
palette: ["#69D2E7", "#E27F2D", "#6A4B82"],
series: SeriesBuilder(ys.length, arrY, graph, bvalues, valX, datasrc),
text: "",
needResize: true,
canResize: true,
legend: { visible: blegend },
zooming: { enabled: true },
//showTooltip: $('#chkValues').prop('checked'),
size: { width: (w - 20), height: (w * .65) }
});
function SeriesBuilder(n, arrY, graph, bvalues, valX, datasrc) {
var arr = new Array();
var ys = arrY;
for (var i = 0; i < n; i++) {
arr[i] = {
name: ys[i],
type: graph,
marker: { visible: bvalues },
style: { opacity: 0.8 },
dataSource: {
data: repdata[datasrc],
xName: valX,
yNames: [ys[i]]
}
}
}
return arr;
}