Problem AutoSerie runtime

Stimulsoft Reports.WEB discussion
Post Reply
rodrigo.avots
Posts: 21
Joined: Tue Nov 22, 2016 2:15 pm

Problem AutoSerie runtime

Post by rodrigo.avots »

Hi!

I have problem in runtime autoserie.
Can you help me?
Follow example.
ChartLine.png
ChartLine.png (33.88 KiB) Viewed 1821 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem AutoSerie runtime

Post 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.
rodrigo.avots
Posts: 21
Joined: Tue Nov 22, 2016 2:15 pm

Re: Problem AutoSerie runtime

Post by rodrigo.avots »

Hi!

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

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem AutoSerie runtime

Post by HighAley »

Hello.

Great!
Let us know if you need our help.

Thank you.
Post Reply