We need to reduce the width of all columns without changing total number of columns or width of chart.
We need this in order to provide more horizontal space between columns, any suggestions will be highly appreciated!
How many series do you have in the chart? You can adjust the Gap property on the CategoryXAxis to adjust the amount of space between categories, thus making the columns thinner. But there is currently no way to put space between individual columns inside a category.
Hope this helps!
-Graham
Bingo! Gap is exactly what I was looking for ..thanks!
Can we change the width of column series now? or this hasn't been added as yet?
Hello,
The approach Graham suggested seems to be the best way to change the Column’s Width, because this elements are Rectangles and their Width is set dynamically by code in order to look properly during zooming and scrolling.
What if you want no gap at all between the category series'? If I set gap = 0 (on the CategoryXAxix) I get a single pixel while line between my series. I am trying to produce Histogram Charts.
Any update on this even i require
Hello Ashwin,
This has not yet been implemented, as there is still a tiny gap between the columns of a ColumnSeries when setting the Gap of the corresponding XAxis to 0. If you would like to see this implemented, I would recommend adding this product idea to our community site where you will be in direct communication with our product management teams.
As a workaround to this issue, I would recommend handling the RefreshCompleted event of the XamDataChart. In doing this, you can get the Canvas element for the ColumnSeries that you are looking to modify from its RootCanvas property. From there, you can loop through that Canvas' Children collection and get all Rectangle elements and increment their Width properties.
I am attaching a sample project to demonstrate the above.
Please let me know if you have any other questions or concerns on this matter.
XamDataChartNoGap.zip
Awesome it solved :).