Jump to content
Software FX Community

stacked bar chart


rao
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...