This is a migrated thread and some comments may be shown as answers.

Problem when chart stacked

0 Answers 51 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Loïc
Top achievements
Rank 1
Loïc asked on 09 Aug 2017, 08:24 AM

Hi everyone,

I have a problem when I use the "Stacked" attribute of Chart. I have 2 series, and I would like to stack them horizontally.

When the value of the first serie is greater or equal than 80, then proportion are no longer respected (see screenshots).

On the first screenshot, the first serie has a value of 79, the second serie 21.

On the second screenshot, the first serie has a value of 80, the second serie 20. And here is my problem.

My chart is created in server side. Here is a part of code :

SeriesItem itemPro = new SeriesItem(80);
SeriesItem itemPrivacy = new SeriesItem(20);
chartEngine.PlotArea.Series[0].Items.Add(itemPro);
chartEngine.PlotArea.Series[1].Items.Add(itemPrivacy);
 
(chartEngine.PlotArea.Series[0] as ColumnSeries).Stacked = true;

 

Any help would be appreciated.

No answers yet. Maybe you can help?

Tags
Chart (HTML5)
Asked by
Loïc
Top achievements
Rank 1
Share this question
or