C# Winfrom中如何制作一个漂亮的chart(有功能性代码更好)

qq_20075877 2014-11-24 02:23:09
制作一个漂亮的chart(有功能性代码更好)。
...全文
1606 15 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
wind_cloud2011 2014-11-26
  • 打赏
  • 举报
回复
能打开阿,就是微软发布.Net Framework 3.5下的 Chart 控件,
qq_20075877 2014-11-26
  • 打赏
  • 举报
回复
引用 14 楼 wind_cloud2011 的回复:
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
cnblogs 500 - 系统发生了错误。抱歉,给您带来麻烦了! 麻烦您发邮件至 contact@cnblogs.com 或致电 021-58950900 向我们反馈。 返回网站首页
threenewbee 2014-11-25
  • 打赏
  • 举报
回复
引用 9 楼 qq_20075877 的回复:
[quote=引用 7 楼 caozhy 的回复:] 方便墙内的用户,主要代码我都粘贴过来了,详细看原文 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;
你这个有点太高级了[/quote] 你也可以做平面的, axMSChart.chartType = MSChart20Lib.VtChChartType.VtChChartType3dBar; 这个可以换别的
qq_20075877 2014-11-25
  • 打赏
  • 举报
回复
引用 7 楼 caozhy 的回复:
方便墙内的用户,主要代码我都粘贴过来了,详细看原文 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;
你这个有点太高级了
wind_cloud2011 2014-11-25
  • 打赏
  • 举报
回复
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
aitiwa 2014-11-25
  • 打赏
  • 举报
回复
推荐个很好用的图标控件 chartlet,使用方法也很简单,可以直接绑定数据源,图形效果也很好设置的,可以试试的!
qq_20075877 2014-11-25
  • 打赏
  • 举报
回复
引用 6 楼 wind_cloud2011 的回复:
一个自带的chart , WPF Visifire http://www.cnblogs.com/wyuan/archive/2012/07/22/2603801.html
winfrom 的
ysd_xwl 2014-11-24
  • 打赏
  • 举报
回复
楼上控件用的不错
threenewbee 2014-11-24
  • 打赏
  • 举报
回复
方便墙内的用户,主要代码我都粘贴过来了,详细看原文 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;
wind_cloud2011 2014-11-24
  • 打赏
  • 举报
回复
一个自带的chart , WPF Visifire http://www.cnblogs.com/wyuan/archive/2012/07/22/2603801.html
  • 打赏
  • 举报
回复
http://blog.csdn.net/xianfajushi/article/details/7493697
qq_20075877 2014-11-24
  • 打赏
  • 举报
回复
引用 3 楼 jn40105 的回复:
去官网下 然后找破解方法
有链接没?
冬夜 2014-11-24
  • 打赏
  • 举报
回复
去官网下 然后找破解方法
qq_20075877 2014-11-24
  • 打赏
  • 举报
回复
引用 1 楼 bdmh 的回复:
你下载dev系列的图表控件吧
请问有链接吗?一搜一大片,不知道哪个好!
bdmh 2014-11-24
  • 打赏
  • 举报
回复
你下载dev系列的图表控件吧

111,098

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧