admin 管理员组文章数量: 1086019
2024年4月18日发(作者:lynn英文怎么读)
c# ms chart
控件使用方法
第一个简单的chart:创建曲线图
();
Series series = new Series("Spline");
ype = ;
Width = 3;
Offset = 2;
// Populate new series with data
(67);
(57);
(83);
(23);
(70);
(60);
(90);
(20);
// Add series into the chart's series collection
(series);
同时显示2条曲线
// Populate series with random data
Random random = new Random();
for (int pointIndex = 0; pointIndex < 10;pointIndex++)
{
["Series1"].((45, 95));
["Series2"].((5, 75));
}
// Set series chart type
["Series1"].ChartType = ;
["Series2"].ChartType = ;
// Set point labels
["Series1"].IsValueShownAsLabel = true;
["Series2"].IsValueShownAsLabel = true;
// Enable X axis margin
reas["ChartArea1"].inVisible = true;
// Enable 3D, and show data point marker lines
reas["ChartArea1"].3D = true;
["Series1"]["ShowMarkerLines"] = "True";
["Series2"]["ShowMarkerLines"] = "True";
显示column类型图,柱状图
// Create new data series and set it's visual attributes
();
Series series = new Series("FlowRead");
ype = ;
Width = 3;
Offset = 2;
// Populate new series with data
(67);
(57);
(83);
(23);
版权声明:本文标题:c#_ms_chart_控件使用方法汇总(附统计图) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/b/1713389926a632198.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论