Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
325
Series toggle in legend
posted

Hi Team,

We are using Charts module along with Financial/Stock charts. 

When showing multiple line charts or mutliple series charts in financial chart, is there a way to hide a particular series on click of the relevant legend item.

Please let us know your inputs!

Parents
  • 2155
    Offline posted

    Hello Rameez,

    What I can suggest you in order to achieve your requirement is to handle IgxFinancialChartComponent’s seriesAdded event and assign series' legendItemTemplate where you can customize the legend item content and add a checkbox to toggle series visibility.
    Please take a look at this sample.
    stackblitz.com/.../github-8zw4gw-u29ims

Reply Children