Dears,
since there is only Column series in olap axis of datachart, how can i make it to bind stacked column datachart with pivotgrid, its really urgent, the whole application depends on this.
i saw the sample https://es.infragistics.com/support/retired-products#/pivot-grid/pivot-grid-and-bar-charts
can i replicate this with datachart??
what can i write instead of this:
this.pieChart.Series.Add(new Series() { DataSource = cells, Label = row.Caption, DataMapping = "Value=Value;Label=Label", ChartType = ChartType.StackedColumn });Thanks,
Currently there is no way to do that. In December SR we will add API make this happens.
Thanks alot,
i will use meanwhile the webchart , and waiting for the release :)
Hi
With latest SR you can populate OlapAxis with diferent kind of series wich inherits from CategorySeriesBelow is a code how to do this.
<ig:XamDataChart x:Name="dataChart">
<ig:XamDataChart.Axes>
<ig:OlapXAxis OlapAxisSource="Columns" SeriesInitialing="olapXAxis_SeriesInitialing" SeriesCreating="olapXAxis_SeriesCreating"
AutoGenerateSeries="True"
x:Name="olapXAxis"
YAxis="{Binding ElementName=xmYAxis}">
</ig:OlapXAxis>
<ig:NumericYAxis x:Name="xmYAxis" />
</ig:XamDataChart.Axes>
</ig:XamDataChart>
And code behind
StackedColumnSeries series; private void olapXAxis_SeriesCreating(object sender, SeriesCreatingEventArgs e) { e.UserCreate = true; series.Series.Add(new StackedFragmentSeries { ValueMemberPath = e.SeriesInfo.Title }); e.Series = series; } private void olapXAxis_SeriesInitialing(object sender, SeriesInitialingEventArgs e) { series = new StackedColumnSeries(); }
If you want LineSeries or ohter different from Stacked then you can only use SeriesCreating event handler to set series.
Todor