Article relates to
June 28, 2006
Last modified by
HOW-TO Set bars' width and overlap percent programmaticallySOLUTIONUse the following code to control the width of the bars (and if there is more than one bar series to set their overlap percent):
RadChart1.Clear(); ChartBarSeries s1 = RadChart1.CreateBarSeries(Color.FromArgb(100, 255, 0, 0), "Bar Series 1");ChartBarSeries s2 = RadChart1.CreateBarSeries(Color.FromArgb(100, 0, 255, 0), "Bar Series 2");
RadChart1.ChartSeriesCollection.BarWidthPercent = 50;RadChart1.ChartSeriesCollection.BarOverlapPercent = 50;
s1.SetValues(5, 4, 3, 2, 1);s2.SetValues(1, 2, 3, 4, 5);
Copyright © 2016, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.