Home Forums Report Bugs In CanvasJs for Angular, .render() does not apply new color for data, bug ?

In CanvasJs for Angular, .render() does not apply new color for data, bug ?

Viewing 2 posts - 1 through 2 (of 2 total)
  • #43957

    Hello

    In the Angular variant of CanvasJs, calling the .render() method, does not work properly:
    Example:

    
    options.data[0].color = '#FF0000';
    options.axisX.labelFontColor = '#FF0000';
    //.......
    this.canvasJsInstance.render();
    

    In the above code, only the labelFontColor actually works (it changes the color of the fonts), but the color of the curve does not change.

    #43977

    @diaconescu-stefanandrei,

    It seems to be working fine, please take a look at this Stackblitz for working code.

    If you are still facing issue, kindly create a sample project reproducing the issue and share it with us over Google-Drive or Onedrive (or update the code in shared Stackblitz, fork it and share with us) so that we can look into the code, understand the scenario better and help you out.

    __
    Sachin Bisht
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.