tenXer/xcharts — pull request #75 by Crylar (2014-07-17 12:45:54+00:00)
Title: Support for colorIndex property (allow custom line color codes)

Hello,

I have added a colorIndex property. This will allow users to specify colorN in any order they want. It's very usefull when having multiple series on the chart, and user needs some lines to be in specific color defined in the CSS file under color.

Example:
............................................
dataOptions['main'].push({colorIndex: 1, data: extraDataSets[0]});
dataOptions['main'].push({colorIndex: 0, data: mainDataSet});
dataOptions['main'].push({colorIndex: 2, data: extraDataSets[1]});
............................................
new xChart('custom', dataOptions, '#mychart');

Best regards,
Linas Pašviestis