rao Posted April 4, 2008 Report Share Posted April 4, 2008 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 Quote Link to comment Share on other sites More sharing options...
Frank Posted April 4, 2008 Report Share Posted April 4, 2008 chartbar.Points[chartbar.Data.Points - 2].Color = Color.Red; Quote Link to comment Share on other sites More sharing options...
rao Posted April 4, 2008 Author Report Share Posted April 4, 2008 How to create stacked bar chart? Quote Link to comment Share on other sites More sharing options...
maximop Posted April 4, 2008 Report Share Posted April 4, 2008 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. Quote Link to comment Share on other sites More sharing options...
rao Posted April 8, 2008 Author Report Share Posted April 8, 2008 Thank you for help Max Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.