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:
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
Post a Comment