方便墙内的用户,主要代码我都粘贴过来了,详细看原文 http://patricjsson.wordpress.com/2005/03/21/using-mschart-from-a-c-winform/// Create chart data for three computers. Data is in the form of number of transactions per minute. // We will only display data gathered between 10:00 AM and 10:03 AM.
http://www.cnblogs.com/greenerycn/archive/2008/10/27/microsoft-chart.html Samples Environments for Microsoft Chart Controls https://code.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId=1591
http://www.cnblogs.com/wyuan/archive/2012/07/22/2603801.html
http://patricjsson.wordpress.com/2005/03/21/using-mschart-from-a-c-winform/// Create chart data for three computers. Data is in the form of number of transactions per minute.
// We will only display data gathered between 10:00 AM and 10:03 AM.
axMSChart.ChartData = new Object[5, 4] {{null, "Computer A", "Computer B", "Computer C"},
{"10:00 AM", 123131, 242142, 254353},
{"10:01 AM", 113121, 171345, 205432},
{"10:02 AM", 126323, 281876, 269743},
{"10:03 AM", 199833, 242122, 283445}};
// Add a title and legend on the right side of the chart.
axMSChart.Title.Text = "Performance";
axMSChart.Legend.Location.LocationType = MSChart20Lib.VtChLocationType.VtChLocationTypeRight;
axMSChart.Legend.Location.Visible = true;
// Add titles to the axes.
axMSChart.Plot.get_Axis(MSChart20Lib.VtChAxisId.VtChAxisIdX, null).AxisTitle.Text = "Time";
axMSChart.Plot.get_Axis(MSChart20Lib.VtChAxisId.VtChAxisIdY, null).AxisTitle.Text = "Transactions/minute";
// Set chart type.
axMSChart.chartType = MSChart20Lib.VtChChartType.VtChChartType3dBar;
// Other available chart types are
// VtChChartType2dBar, VtChChartType3dLine, VtChChartType2dLine, VtChChartType3dArea,
// VtChChartType2dArea, VtChChartType3dStep, VtChChartType2dStep,
// VtChChartType3dCombination, VtChChartType2dCombination, VtChChartType2dPie and
// VtChChartType2dXY.
// Set whether all the series in the chart are stacked or not.
axMSChart.Stacking = false;
你这个有点太高级了
你也可以做平面的,
axMSChart.chartType = MSChart20Lib.VtChChartType.VtChChartType3dBar;
这个可以换别的
你这个有点太高级了
你也可以做平面的,
axMSChart.chartType = MSChart20Lib.VtChChartType.VtChChartType3dBar;
这个可以换别的没翻墙墙外进不去,我邮箱 [email protected] 谢了
Samples Environments for Microsoft Chart Controls
https://code.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId=1591
500 - 系统发生了错误。抱歉,给您带来麻烦了!麻烦您发邮件至 [email protected] 或致电 021-58950900 向我们反馈。返回网站首页