I want to draw 52 Bar series in a Bar chart to represent weeks in a year. However, there seems to be an issue with the chart, as you can see in the picture below:
I have 2 series that I draw with label, x value,y value. E.g.:
chart1.Series["Data"].Points.AddXY("W1", 0, 168);
chart1.Series["Missing"].Points.AddXY("W1", 0, 0);
However there seems to be a difference between the bar series (sometines thicker sometimes smiller), even though I create them with the same method:
var series = new Series
{
Name = seriesName,
ChartArea = chartAreaName,
Color = color,
ChartType = SeriesChartType.RangeBar,
XValueType = ChartValueType.Auto,
YValueType = ChartValueType.Auto,
SmartLabelStyle = new SmartLabelStyle
{
AllowOutsidePlotArea = LabelOutsidePlotAreaStyle.Yes,
MovingDirection = LabelAlignmentStyles.Right,
IsMarkerOverlappingAllowed = false
}
};
How can I prevent this form happening?