c# - StackedColumn chart is flying -
i trying implement stackedcolumn
type chart in project, find understand how assign different series
.
this demo purpose code:
for (int = 1; <= 3; i++) { (int = 0; < 5; a++) { string item = "boo" + i.tostring() + a.tostring(); chart1.series.add(item); chart1.series[item].charttype = seriescharttype.stackedcolumn; chart1.series[item].points.addxy(i, 100.0); } }
however, produces flying 3 stacked columns instead of 3 equal stacked columns:
however, if remove seriescharttype.stackedcolumn
(and use default) works fine , go ground. how should make them go bottom using stackedcolumn
?
you creating chart 15 series, each series has 1 data point. trying achieve? example if wanted have 3 series, each 5 data points should this:
for (int = 1; <= 3; i++) { // add series chart string item = "boo" + i.tostring(); chart1.series.add(item); chart1.series[item].charttype = seriescharttype.stackedcolumn; (int = 1; <= 5; a++) { // add 5 points current series chart1.series[item].points.addxy(a, 100.0); } }
Comments
Post a Comment