Page 1 of 1

Problem AutoSerie runtime

Posted: Wed May 03, 2017 11:34 am
by rodrigo.avots
Hi!

I have problem in runtime autoserie.
Can you help me?
Follow example.
ChartLine.png
ChartLine.png (33.88 KiB) Viewed 1826 times
#region Problem
StiChart chartLine = new StiChart();
chartLine.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0, 13.2, 5.2);
chartLine.Name = "ChartLine1";
chartLine.Legend.Visible = false;
chartLine.Title.Visible = true;
chartLine.Title.Text = "Problem";

StiLineSeries serie = new Stimulsoft.Report.Chart.StiLineSeries();
serie.ArgumentDataColumn = "ChartMeses.Mes";
serie.AutoSeriesKeyDataColumn = "ChartMeses.Mes";
serie.AutoSeriesColorDataColumn = "ChartMeses.ConditionColor";
serie.ValueDataColumn = "ChartMeses.Qtd";
serie.ShowShadow = false;
serie.ShowSeriesLabels = StiShowSeriesLabels.FromSeries;

chartLine.Series.Add(serie);
report.Pages[0].Components.Add(chartLine);
#endregion

#region example - Correct
chartLine = new StiChart();
chartLine.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 6, 13.2, 5.2);
chartLine.Name = "ChartLine2";
chartLine.Legend.Visible = false;
chartLine.Title.Visible = true;
chartLine.Title.Text = "Correct";

serie = new Stimulsoft.Report.Chart.StiLineSeries();
serie.ListOfArguments.Value = "Jan;Fev;Mar;Abr;Mai;Jun;Jul;Ago;Set;Out;Nov;Dez";
serie.ListOfValues.Value = "0;4;5;1;0;0;3;0;4;0;0;2";
serie.ShowShadow = false;
serie.ShowSeriesLabels = StiShowSeriesLabels.FromSeries;

chartLine.Series.Add(serie);
report.Pages[0].Components.Add(chartLine);
#endregion

Re: Problem AutoSerie runtime

Posted: Thu May 04, 2017 11:01 am
by HighAley
Hello.

Sorry, we can't reproduce the issue without your test data.
Why do you need to use the AutoSeriesKeyDataColumn?
We see that you use the same value for the ArgumentDataColumn and AutoSeriesKeyDataColumn.
In this case a new series will be created for each argument value.

Thank you.

Re: Problem AutoSerie runtime

Posted: Thu May 04, 2017 12:00 pm
by rodrigo.avots
Hi!

My data is dynamic with defined colors.
Sorry! I changed the AutoSeriesKeyDataColumn field and it worked.

Thank you.

Re: Problem AutoSerie runtime

Posted: Fri May 05, 2017 2:27 pm
by HighAley
Hello.

Great!
Let us know if you need our help.

Thank you.