Page 1 of 1

Problem with Doughnut Chart

Posted: Mon Jul 01, 2013 11:30 am
by Saus86
Hi,

I'am using a Doughnust Chart in my report. I have inserted 2 series in chart and i want to assigne specifics colors as condition in function of the value Argument.
(values of the field "Argument" - Color: 0 - Green, 1 - Yellow, 2 - Orange, 3 - Red).


If the values of the field "Value" are all greather than 0 the assignement of colors is correct.


If at least one Value is zero the colorn are assigned in incorrect way. (Example if i have different values by 0 only for Arguments 2 (Orange) and 1(Yellow) the colors assigned are Green and Yellow (wrong).


In addition, some of the areas of the 2nd Series are not colored with the colors specified but with the standard of the Style. For me depends from values of First series. If the values of the field "Value" of the first Series are all zero, the sectors of the 2nd Series are colored all in correct way. If some values of first Series is different by 0 some values of Seconf Series aren't colored with my colors but with colors of the Style Chart specified.


Below i insert a part of the code.
--CONDITION 1ST SERIES
this.Item7.Conditions.Add(new Stimulsoft.Report.Chart.StiChartCondition(System.Drawing.Color.Green, Stimulsoft.Report.Components.StiFilterItem.Argument, Stimulsoft.Report.Components.StiFilterDataType.Numeric, Stimulsoft.Report.Components.StiFilterCondition.LessThan, "1"));
this.Item7.Conditions.Add(new Stimulsoft.Report.Chart.StiChartCondition(System.Drawing.Color.Yellow, Stimulsoft.Report.Components.StiFilterItem.Argument, Stimulsoft.Report.Components.StiFilterDataType.Numeric, Stimulsoft.Report.Components.StiFilterCondition.LessThan, "2"));
this.Item7.Conditions.Add(new Stimulsoft.Report.Chart.StiChartCondition(System.Drawing.Color.Orange, Stimulsoft.Report.Components.StiFilterItem.Argument, Stimulsoft.Report.Components.StiFilterDataType.Numeric, Stimulsoft.Report.Components.StiFilterCondition.LessThan, "3"));
this.Item7.Conditions.Add(new Stimulsoft.Report.Chart.StiChartCondition(System.Drawing.Color.Red, Stimulsoft.Report.Components.StiFilterItem.Argument, Stimulsoft.Report.Components.StiFilterDataType.Numeric, Stimulsoft.Report.Components.StiFilterCondition.GreaterThanOrEqualTo, "3"));

--CONDITION 2ND SERIES
this.Item8.Conditions.Add(new Stimulsoft.Report.Chart.StiChartCondition(System.Drawing.Color.Green, Stimulsoft.Report.Components.StiFilterItem.Argument, Stimulsoft.Report.Components.StiFilterDataType.Numeric, Stimulsoft.Report.Components.StiFilterCondition.LessThan, "1"));
this.Item8.Conditions.Add(new Stimulsoft.Report.Chart.StiChartCondition(System.Drawing.Color.Yellow, Stimulsoft.Report.Components.StiFilterItem.Argument, Stimulsoft.Report.Components.StiFilterDataType.Numeric, Stimulsoft.Report.Components.StiFilterCondition.LessThan, "2"));
this.Item8.Conditions.Add(new Stimulsoft.Report.Chart.StiChartCondition(System.Drawing.Color.Orange, Stimulsoft.Report.Components.StiFilterItem.Argument, Stimulsoft.Report.Components.StiFilterDataType.Numeric, Stimulsoft.Report.Components.StiFilterCondition.LessThan, "3"));
this.Item8.Conditions.Add(new Stimulsoft.Report.Chart.StiChartCondition(System.Drawing.Color.Red, Stimulsoft.Report.Components.StiFilterItem.Argument, Stimulsoft.Report.Components.StiFilterDataType.Numeric, Stimulsoft.Report.Components.StiFilterCondition.GreaterThanOrEqualTo, "3"));



DataEffChildJob_ChartPie.Parameters["@NumChildJob_R"].ParameterValue =0;
DataEffChildJob_ChartPie.Parameters["@NumChildJob_O"].ParameterValue =0;
DataEffChildJob_ChartPie.Parameters["@NumChildJob_Y"].ParameterValue =0;
DataEffChildJob_ChartPie.Parameters["@NumChildJob_G"].ParameterValue =0;

DataEffChildJob_ChartPie.Connect();

DataEffOdp_ChartPie.Parameters["@NumOdp_R"].ParameterValue =0;
DataEffOdp_ChartPie.Parameters["@NumOdp_O"].ParameterValue =0;
DataEffOdp_ChartPie.Parameters["@NumOdp_Y"].ParameterValue =0;
DataEffOdp_ChartPie.Parameters["@NumOdp_G"].ParameterValue =0;

DataEffOdp_ChartPie.Connect();

Re: Problem with Doughnut Chart

Posted: Mon Jul 01, 2013 11:32 am
by Saus86
Below I attach the report in question.

Re: Problem with Doughnut Chart

Posted: Tue Jul 02, 2013 5:39 am
by Alex K.
Hello,

Can you please send us a test data for your report.
Also please check the last prerelease build.

Thank you.