javascript - set different colors for columns in highstock -


i want set different color columns (volume) based on whether stock moved or down. added 'color' when filling 'volume' array:

http://jsfiddle.net/vu5zg/

volume.push({     'x': data[i][0], // date     'y':data[i][5] // volume });  if (i != 0 && data[i][4] < data[i-1][4]) {     volume[i].color = '#de32ae'; } 

but columns turns black when clicked '6m' button. how solve it?

solved adding datagrouping: { enabled: false }, in plotoptions.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -