The color applied to line chart through item formatter is not being applied

Posted by: sskss1ss2 on 5 May 2022, 8:11 pm EST

  • Posted 5 May 2022, 8:11 pm EST

    I'm trying to set the stroke color of the line chart from the item formatter.
    I've created a separate object that will store the Series Style. But somehow the color set is not being applied.

    this.setColor[ 'seriesStyle' ].stroke = '#ff0000';

    I'm even using the defaultRenderer() even after which the color is not being applied. It takes some random color.
    The same code works for column/bar/linesymbol charts

    Thanks,
  • Replied 8 May 2022, 7:27 pm EST

    Hello,

    We apologize but we are unable to replicate the issue at our end, could you please refer to the below sample used to replicate the issue and let us know if any changes are required to replicate the issue at our end?

    If you are facing the issue only in your application and not in the below-shared sample, it might be possible that the issue is caused due to some other factors in your application therefore I would request you to please share a small sample replicating the issue.

    Sample link: https://stackblitz.com/edit/angular-rn4qnn?file=src%2Fapp%2Fapp.component.ts

    Regards
    Sonu Kumar Pandey
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels