C# Chart space between series -
i tried create bar chart represent data more series data. seem good,but when run application bar in each data series closed, want modified chart space bar each data series, can not solve problem.
and code add 3 data series chart ,
chart1.series["s1"].points.addxy(1, 5); chart1.series["s1"].points.addxy(2, 6); chart1.series["s1"].points.addxy(3, 7); chart1.series["s1"].points.addxy(4, 2); chart1.series["s1"].points.addxy(5, 8); chart1.series["s2"].points.addxy(1, 5); chart1.series["s2"].points.addxy(2, 6); chart1.series["s2"].points.addxy(3, 7); chart1.series["s2"].points.addxy(4, 2); chart1.series["s2"].points.addxy(5, 8); chart1.series["s3"].points.addxy(1, 5); chart1.series["s3"].points.addxy(2, 6); chart1.series["s3"].points.addxy(3, 7); chart1.series["s3"].points.addxy(4, 2); chart1.series["s3"].points.addxy(5, 8);
and chart https://www.img.in.th/image/tcy
try reducing value of custom property pointwidth
each series follows:
chart1.series["s1"]["pointwidth"] = "0.5"; chart1.series["s2"]["pointwidth"] = "0.5"; chart1.series["s3"]["pointwidth"] = "0.5";
the default value property 0.8. lower values make bars narrower, result in more space between them. maximum value of 1 result in no space between each bar.
Comments
Post a Comment