Jump to content
Software FX Community

stacked bar chart


rao

Recommended Posts

i wrote this code i am using trail version of chartfx.

 .

chartbar.Point[chartbar.Data.Points - 2].Color =

Color.Red;

i am getting this error

Error 1 'ChartFX.WebForms.Chart' does not contain a definition for 'Point' and no extension method 'Point' accepting a first argument of type 'ChartFX.WebForms.Chart' could be found (are you missing a using directive or an assembly reference?) E:\Asset\Default.aspx.cs 43 18 E:\Asset\

chartfx.webforms.chart dll is not there in my system

Link to comment
Share on other sites

First ensure that the gallery property is set to Bar, then you can set the Stacked property as follows:

chart1.Gallery = Gallery.Bar;

chart1.AllSeries.Stacked =

Stacked.Normal;

Alternatively, you can access each individual series and set its Stacked property in the following way:

Assuming you are plotting three series, you can do the following:

chart1.Series[0].Stacked = true;

chart1.Series[1].Stacked =

true;

chart1.Series[2].Stacked =

false;

This will stack the first two series while the third one will show next to the stacked bars.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...