wrong color in chart

Stimulsoft Reports.NET discussion
Post Reply
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

wrong color in chart

Post by Stephan1 »

Hi,

i have a problem using a Chart.

We have a Report with Pie-Chart. The chart is included in Databand 1 which works fine.

We using Custom Style Color for setting own Colors (Col1 = green, Col2 =blue , Col3 =yellow, Col4 =red)

Each Color must be set for exact 1 Column. so greencolor is for Column1 (name:before),
Blue color is for Colum (name: After), Yellow color is for Column (name: Amount) and red ist for Column (name: Amountall).

We have 4 Columns in the Datatable of Databand 1.

Column 1 Name: Before
Column 2 Name: After
Column 3 Name: Amount
Column 4 Name: AmountAll

Everything works fine when all Columns have Data >0.

The Problem is, if column (name: Before) is set 0 which can happen, then the Color order not working right.
The Color is then set to the one of the first Color in the style color list (in this example green) but it MUST be set to blue (which is the 2nd color in the list, look above)

It's very important that each Column has it's own Color.

example

col1 col2 col3 col4
1(green) 5(blue) 3(yellow) 8 (red) --->> correct
0(not visible) 2(green) 2(blue) 8 (yellow) --->> WRONG

it has to be...
0(not visible) 2(blue) 2(yellow) 8 (red)

Thx for assistance

Stephan
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

wrong color in chart

Post by Stephan1 »

Hi,

i found a solution.

Instead of using 4 different Pie's were using now 1 Pie and using series (setting value and arguments to the Datasource Filed, which is separated with ';') for displaying up to 4 pie's in one chart.

Cheers
Stephan
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

wrong color in chart

Post by Andrew »

Thank you for letting us know about this.
Post Reply