求助:开发一个报表系统,C#下仪表盘控件用哪个比较好?
求助:开发一个报表系统,C#下仪表盘控件用哪个比较好? --------------------编程问答-------------------- --------------------编程问答-------------------- 看這個網站 --------------------编程问答-------------------- teechart 或者 微软的mschart --------------------编程问答-------------------- 虚拟仪表控件
www.beaugauge.net --------------------编程问答-------------------- 用MsChart比较不错,配置简单容易,可以实现2,3D,图像样式很多!
这是我写过的一段简单代码
--------------------编程问答-------------------- 微软的MSChart --------------------编程问答-------------------- 仪盘表呀 大哥 你那个是CHART
protected void gvDigitReporter_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "MyDetails")
{
DataTable dt = DTMS.DAL.ReportDAL.ReportByModuleType.GetInfo(Session["ProjectId"].ToString());
int index = int.Parse(e.CommandArgument.ToString());
DataRow row = dt.Rows[index];
string seriesName = row[dt.Columns[0].ColumnName].ToString();
Series series = new Series(seriesName);
series.ChartType = SeriesChartType.Pie;
PieChart.Series.Add(series);
PieChart.Legends.Add(seriesName);
Title title = new Title();
title.Text = "缺陷报表-" + seriesName;
title.Font = new Font("微软雅黑", 15f, FontStyle.Bold);
PieChart.Titles.Add(title);//PieChart是Mschart控件的ID
PieChart.Series[seriesName]["PieLabelStyle"] = "Disabled";
PieChart.Series[seriesName]["PieDrawingStyle"] = "SoftEdge";
List<string> Xpie = new List<string>();
List<int> Ypie = new List<int>();
for (int colIndex = 1; colIndex < dt.Columns.Count - 1; colIndex++)
{
string columnName = dt.Columns[colIndex].ColumnName;
int YVal = (int)row[columnName];
Xpie.Add(columnName);
Ypie.Add(YVal);
}
PieChart.Series[seriesName].Points.DataBindXY(Xpie, Ypie);
this.btnShowPopup.Show();
}
}
补充:.NET技术 , 图表区