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
335
Series visibility and legend display.
posted

I have a series set in xaml

 <igCA:Series x:Name="Series1" ChartType="StackedColumn"  ..... />

<igCA:Series x:Name="Series2" ChartType="StackedColumn"  .... />

What I do in code is return a dataset back and set the datasource and datamapping in code:

sub chart_loaded (....

..series(1).datasource= dsObject

..series(1).datamapping = "Label=Date; Value=Amount"

end sub

The reason I am doing this is that I have markup code with animations, set the styles, chartypes, etc. already set for the series and did not want to do this in code.

The question I have is - If I do not want to graph the second series, I dont set the datasource or datamapping. The problem is, it (the data)  will not display on the chart, BUT the series color will display in the Legend.

Is there something I can do so that if I do not wish to utilize the additional series, I can remove it so that it will not display on the legend?

Thanks

 

 

Parents
No Data
Reply Children