This is my first post here, hi everybody!
I successfully implemented a composite chart with a bar chart layer where bars are shown vertically, with their percentage values on the Y axis:
Now I need to implement a similar chart where bars are shown horizontally, from left to right with their percentage values on the X axis. I was not able to find an example online or in the forum topic, can please someone help me? Thank you in advance!
HI,
Looks like you implemented a ColumnChart -
All you need to do is change the chart type
ChartLayerAppearance myBarLayer = new ChartLayerAppearance();myBarLayer.ChartType = ChartType.BarChart;
new
Hi Matt, thanks for your reply bbut unfortunately I'm already doing that... Here's the code where I set the ChartType:
#region Set Layer _dataLayer.ChartType = ChartType.BarChart; _dataLayer.LegendItem = LegendItemType.Series; _dataLayer.AxisX = xAxis; _dataLayer.AxisY = yAxis; _dataLayer.ChartArea = area; Chart.CompositeChart.ChartLayers.Add(_dataLayer);
#endregion
By the way, is there any property / flag that I have to set in order to display my bars horizontally?
HI, can you attach a snap shot of your barchart ?
try changing the charttype to column and let me know what happens.