Is there a way to call a visiblox chart that created with c# code in wpf?
Let's say that i have created a chart like :
private Chart CreateNewChart(int num_chart, string chartName)
{
Chart newChart = new Chart();
newChart.Name = "Chart_"+num_chart;
newChart.Title = chartName;
newChart.Width = 600;
newChart.Height = 120;
newChart.Background = Brushes.Transparent;
newChart.HorizontalAlignment = HorizontalAlignment.Left;
newChart.VerticalAlignment = VerticalAlignment.Top;
newChart.Margin = new Thickness(0, (num_chart * 110), 0, 0);
BehaviourManager behaviour = new BehaviourManager();
behaviour.AllowMultipleEnabled = true;
TrackballBehaviour track = new TrackballBehaviour();
ZoomBehaviour zoom = new ZoomBehaviour();
behaviour.Behaviours.Add(track);
behaviour.Behaviours.Add(zoom);
newChart.Behaviour = behaviour;
return newChart;
}
And when i import some date from a csv file i want to add more data from another csv file...
Is there a way to call this created before chart with each name or something?
Thanks in advance...