I'm trying to display multiple series in a single chart but it seems to be giving me trouble on the xAxis. Basically, if I have 2 series that represent the same data; one in single increments and the second in multiples of 2, how can I get them to both show up on the same grid and respect a universal unit marker on the xamChart? For example, if I have 2 collections similar to the ones below along with the snippet of xaml for the X axis, how can I have them follow the first second set's units without it trying to squeeze the first set's information over between the crosshairs?
int[] firstSeries = { 1, 2, 3, 4, 5, 6 };
int[] secondSeries = { 2, 4, 6 };
..and xaml:
<
igCA:Axis AxisType="PrimaryX" Unit="2" Stroke="LightGray">
<igCA:Axis.Label>
<igCA:Label Foreground="LightGray"/>
</igCA:Axis.Label>
<igCA:Axis.MajorTickMark>
<igCA:Mark Stroke="LightGray"></igCA:Mark>
</igCA:Axis.MajorTickMark>
</igCA:Axis>
TIA
Hi,
What kind of series are you using in this case, something like line series? Or something like column series?
-Graham
I'm actually using the generic series in the Infragistics.Windows.Chart.Series namespace and setting it in code behind. Something similar to the code below:
Series series = new Series();
series.ChartType = ChartType.Line;
series.StrokeThickness = 0.25;
series.DataMapping = "Value=Values;ToolTip= TOOLTIP";
series.DataSource = set;
series.Animation = animate;
xamChart1.Series.Add(series);
So I'm starting to wonder if I'm using the wrong series in the wrong namespace. If I use that code in two different series with the data previously mentioned, would it squeeze the first series with the [0, 2, 4, 6] over the hashmarks of the second with the [0, 1, 2, 3...]? I guess the question is: is there a way to configure the xAxis by series or is this something only available in the xamDataChart?