winform chart控件柱状图X轴每个数据,怎么一个跳一个显示

2024-11-16 13:06:05
推荐回答(2个)
回答1:

// Set series chart type
chart1.Series["Default"].ChartType = SeriesChartType.Bar;
// Set series point width
chart1.Series["Default"]["PointWidth"] = "0.6";
// Show data points labels
chart1.Series["Default"].IsValueShownAsLabel = true;
// Set data points label style
chart1.Series["Default"]["BarLabelStyle"] = "Center";
// Display chart as 3D
chart1.ChartAreas[0].Area3DStyle.Enable3D = true;
// Draw the chart as embossed
chart1.Series["Default"]["DrawingStyle"] = "Emboss";

回答2:

你说的是动态柱状图吗?还是只是一根柱子动态跳动?