条形图填充方向负值
如果需要在条形图中将负值的填充方向修改为向下,则可以在代码中使用以下语句:
chart1.Series["Series1"]["DrawSideBySide"] = "false"; chart1.Series["Series1"]["PointWidth"] = "0.8"; chart1.Series["Series1"]["PixelPointWidth"] = "100"; chart1.Series["Series1"]["MinPixelPointWidth"] = "10"; chart1.Series["Series1"]["CollectedThreshold"] = "1"; chart1.Series["Series1"]["CollectedLabel"] = "Other"; chart1.Series["Series1"]["LabelStyle"] = "Top"; chart1.Series["Series1"]["EmptyPointValue"] = "Zero"; chart1.Series["Series1"].CustomAttributes = "Stacked=true, PointWidth=1, DrawingStyle=Cylinder, PixelPointWidth=80, MinPixelPointWidth=10, MaxPixelPointWidth=100";
这些语句将使条形图按照堆积的方式绘制,且可以使负值的填充方向向下。可以根据需求调整各参数的值以获得最佳效果。