Changing bar chart orientation |
Post Reply |
Author | |
prounds
Newbie Joined: 04 January 2011 Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 04 January 2011 at 2:02pm |
How does one change the orientation of a bar chart from vertical to horizontal?
I'm working in a C# environment (vs2005) in a windows application, XtremeChart gets added as a COM object to my environment, and gets exposed as axChartControl. I can't find where I can set the orientation of the chart.
My simple sample code is:
XtremeChartControl. ChartBarSeriesStyle BarStyle = new XtremeChartControl.ChartBarSeriesStyle(); if (this.axChartControl.Content.Series.Count > 0) this.axChartControl.Content.Series.DeleteAll();axChartControl.Content.Titles.DeleteAll(); axChartControl.Content.Titles.Add( "Estimated Purchase Probabilities");axChartControl.Content.Legend.Visible = true;XtremeChartControl. ChartSeries dataSeries;dataSeries = axChartControl.Content.Series.Add( "Original PP");dataSeries.Points.Add( "Prod #1", 23);dataSeries.Points.Add( "Prod #2", 43);dataSeries.Points.Add( "Prod #3", 37);dataSeries = axChartControl.Content.Series.Add( "Modified PP");dataSeries.Points.Add( "Prod #1", 43);dataSeries.Points.Add( "Prod #2", 63);dataSeries.Points.Add( "Prod #3", 17); for (int i = 0; i < 2 /*axChartControl.Content.Series.Count */; i++){ axChartControl.Content.Series.Style = (XtremeChartControl. ChartSeriesStyle)BarStyle;} |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
Try dataSeries.Diagram.Rotated = True for each of the series that you add to the Chart.
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
prounds
Newbie Joined: 04 January 2011 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
In my configuration, Rotated is not exposed as a property of dataSeries.Diagram |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
I use VB6, so I'm not sure how it's done in C# - but can you set the Series.Diagram to a ChartDiagram2D object. It has the Rotated property.
In VB6:
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |