5

Is it possible to change specific point color with dx chartjs? I know how to change point colors for the whole series, but I can't find anything on changing specific points.

Anri
  • 6,175
  • 3
  • 37
  • 61

1 Answers1

2

You can use

customizePoint 

callback.

$("#container").dxChart({
    dataSource: dataSource,
    ...
    customizePoint: function() {
        if(this.value > highAverage) {
            return { color: '#ff4500', hoverStyle: { color: '#ff4500' } };
        } else if(this.value < lowAverage) {
            return { color: '#00ced1', hoverStyle: { color: '#00ced1' } };
        }
    },
    ....
}

});

You can find find documentation and demo

Andrey Kuleshov
  • 645
  • 6
  • 19