You must be logged in to post your query.
Home › Forums › Report Bugs › In CanvasJs for Angular, .render() does not apply new color for data, bug ?
Tagged: color change
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.
@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
You must be logged in to reply to this topic. Login/Register