Hi everyone, got a few questions :)
First, I'm wondering how can one change the columns that get plotted in a PointChart3D. For example, I have a DataTable with 5 columns and I need to select which column gets plotted in any of the three axes (i.e. display column 4 in the X axis, then switch to the 5th, and so on).
Second, what would be the best way to draw a circle overlay over a ScatterChart graph?
Finally, how can I "center" the graphic, that is, have it's center always be (0,0) (as shown in the attached picture).
Thanks in advance, -David
I'm not sure I understand your first question, but any time when you want to change the data you should do this manually.
About your second and third questions, you can try the following code:
{
this.ultraChart1.Axis.X.RangeType = Infragistics.UltraChart.Shared.Styles.AxisRangeType.Custom;
this.ultraChart1.Axis.X.RangeMax = 100;
this.ultraChart1.Axis.Y.RangeType = Infragistics.UltraChart.Shared.Styles.AxisRangeType.Custom;
this.ultraChart1.Axis.Y.RangeMax = 100;
this.ultraChart1.Data.ZeroAligned = true;
this.ultraChart1.DataBind();
}
int x = (int)(double)xAxis.Map(0);
IAdvanceAxis yAxis = e.Grid["Y"] as IAdvanceAxis;
int y2 = (int)(double)yAxis.Map(100);
int height = y - y2;
Point widthHeight = new Point(2 * width, 2 * height);
e.SceneGraph.Add(ellipse);
Thanks for the reply :)
Sadly, I'm using Infragistics version 7.1 which doesn't include the FillGraphEvent so I'll have to use a custom layer. I've tried some examples without success. Is there a chance to see working code for that problem but using a custom layer (inherit Layer or implement ILayer)?
About my first question, I'll try to explain it better. I have a DataTable with say 10 columns, and I want to have a series of combos to change the displayed columns. For example, have a graph display the axes (X,Y,Z) from the columns (1,2,3), then (1,2,4), (4,6,8) and so on... that is, have the user select which columns he wants to display in the graph.