score:1

Accepted answer

i couldn't find anything in the documentation, so i decided to roll my own function:

// get data
var data = givemedata(); // at this point the data is already formatted for hc

// convert data
var converteddata = [];
for (var i=0; i<data.length; i++) {
    var item = data[i]; 
    item['color'] = pickcolor(item.name);
    converteddata.push(item);
}

// pass converted data to hc
...

wish there was some kind of color function that could take in a point or series item, but this handles my problem for now. if anyone has any better solutions, i'd still love to see them.


Related Query

More Query from same tag