I have a simple datatable with 3 columns (Lable, ActualPrice, ActualVol) I would like to plot ActualPrice column against the Y axis and ActualVol against the Y2 axis. Can anyone let me know how to do this please?
Thanks in advance.
Example,
DataTable dt = new DataTable();dt.Columns.Add(new DataColumn("Label", typeof (string)));dt.Columns.Add(new DataColumn("ActualPrice", typeof (double)));dt.Columns.Add(new DataColumn("ActualVol", typeof (double)));DataRow row = dt.NewRow();row["Label"] = "L H8 Comdty";row["ActualPrice"] = 94.0200;row["ActualVol"] = 23.1950;dt.Rows.Add(row); row = dt.NewRow();row["Label"] = "L K8 Comdty";row["ActualPrice"] = 94.2000;row["ActualVol"] = 16.5433;dt.Rows.Add(row);
Please can someone help me because this is very important? Thanks
in 6.2, you can create a composite chart with two chart layers, each one using a different Y axis. the KB article I provided will also work.
Is there a simple way to plot on Y2 axis in 6.2? I am adding points manually to each series as NumericDataPoints:
Dim numSer As New Resources.Appearance.NumericSeries
numSer.Points.Add(New Resources.Appearance.NumericDataPoint(someValue,someLabel, False))
Me.UltraChart1.Series.Add(numSer)
Thanks!
Knowledge Base Article: KB06034
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=6034
Unfortunately, there's no out of the box behavior that will let you accomplish this. You'd have a better shot at this with a composite chart, but that was first implemented in 5.3. I think the best you can do in 5.2 is set the Y2 axis range based on ActualVol by using RangeMin/Max/Type properties and use a custom layer to alter the Box primitives that represent ActualVol. If you've never used custom layers, this would be a good place to get started:http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=5432