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
20
Line Appearance for Multiple Series UltraChart
posted

Hi,

I have 2 sets of data series. There are 5 series in each set. The second set of series is the same as the first set excpet that the value of the points on the y axis have been shifted (this is done in the data source before it reaches the chart). This means they can all be plotted on the same axis.

I need to always show the first set of series and toggle to also plot the second set of series. I can do the toggling to show/hide the second set of lines by using a check box and handling the checked event as the user checks/unchecks the checkbox:

 for (int i = 0; i < StrategyGraphChart.Series.Count; i++)
{
 if (StrategyGraphChart.Series[i].Key.Contains("tvum"))
 {
  XYSeries series = StrategyGraphChart.Series[i] as XYSeries;
  if (series != null)
  {
   series.Visible = chkTvum.Checked;
  }
 }
}

What I would like to do is the have the lines of the second set of series be dashed (or some similar format) to distinguish them from the first set. I can not figure this out using the code above.

How can I do this? Do i need to use layers?

Thanks.

Parents Reply Children
No Data