DannE Posted November 19, 2007 Report Share Posted November 19, 2007 I want to have bar charts similar to what I have in the graph attached. Basically blue is one series (first row of table that I am getting from DB) and green is the second series (second row of the same table). What settings do I need to set to make this happen? Link to comment Share on other sites More sharing options...
maximop Posted November 19, 2007 Report Share Posted November 19, 2007 You can set the Color property of each individual series as follows: chart1.Series[0].Color = System.Drawing.Color.Blue; chart1.Series[1].Color = System.Drawing. Color.Green; Link to comment Share on other sites More sharing options...
DannE Posted November 19, 2007 Author Report Share Posted November 19, 2007 What I mean is that I want the two series to be together that is the first data point of the first series should be with the first data point of the second series. What I am getting right now is shown in the new graph that i have attached i.e. the two series are separate. Link to comment Share on other sites More sharing options...
Frank Posted November 19, 2007 Report Share Posted November 19, 2007 This chart has four (4) series. What do you want to do with the other two? Link to comment Share on other sites More sharing options...
DannE Posted November 20, 2007 Author Report Share Posted November 20, 2007 the source table for this graph has two rows and four columns, so it considers each column as a separate series. Is it possible to have each row considered a series without tranposing data? Link to comment Share on other sites More sharing options...
Frank Posted November 20, 2007 Report Share Posted November 20, 2007 Set: chart.DataSourceSettings.Style |= DataSourceStyles.Transpose; To have Chart FX transpose the data for you. Link to comment Share on other sites More sharing options...
DannE Posted November 20, 2007 Author Report Share Posted November 20, 2007 Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.