Jump to content
Software FX Community

Bar Chart using clustered or Stacked option


Recommended Posts


I am trying to create a bar graph with 3 series.

Serie 1: 115, 47, Chart.HiddenSerie 2: Chart.Hidden, Chart.Hidden, 115Serie 3: Chart.Hidden, Chart.Hidden, 34

(Actually I use a DataTable with 3 columns)What I want to do is explain here:


But it seems not possible to use Stacked in this way :\ and I cannot use neither 3D mode nor .Clustered attribute.

So, I've decided to use Stacked anymore, but the generated chart shows empty bars for Chart.Hidden values.Is it possible to 'remove' this empty space?How to reduce the space between the bars? Possible to set 0 pixel?Thanks. 

Link to comment
Share on other sites


I'm going to try to use only 1 serie and color the two last bars...

Ok, it looks better now, but the LegendBox has got only 1 entry... is it possible to enter entry by hand? and how to do to set manually the colors of series inside it and the bars of the first serie?


Link to comment
Share on other sites

I'd like to get a such graph using 1or 3 series

http://picasaweb.google.com/delfwaren/Temp/photo#5154964020828409858http://picasaweb.google.com/delfwaren/Temp/photo#5154964755267817490''>http://picasaweb.google.com/delfwaren/Temp/photo#5154964755267817490' mce_href="http://picasaweb.google.com/delfwaren/Temp/photo#5154964755267817490">

If 3 series are used, I have data like that:

S1: 10, 7, 8 hidden, hidden

S2: hidden, hidden, hidden, 10

S3: hidden, hidden, hidden, 3


Note: the image uploader popup sucks with Firefox...

Link to comment
Share on other sites

When I try to access to chart.Points, I get:

chart.Points = Count = The name 'm_hashtable' does not exist in the current context ("ChartFX.WinForms.PointAttributesCollection") 

chart.DataSource = dtData;  // Sets the datatable containing 1 column.chart.Points[chart.Data.Points - 2].Color = Color.Red;chart.Points[chart.Data.Points - 1].Color = Color.Green;

chart.Data.Points == 4 and chart.Data.Series == 1 

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.

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.

  • Create New...