ASP.NET 4.0中的图表控件#
我对ASP.NET 4.0中图表控件的此图表存在编程问题 我无法在SerieChartType快速行中显示值 我在脚本中添加了:ASP.NET 4.0中的图表控件#,asp.net,Asp.net,我对ASP.NET 4.0中图表控件的此图表存在编程问题 我无法在SerieChartType快速行中显示值 我在脚本中添加了: Chart1.Series["Price"].IsValueShownAsLabel = true; 但是没有显示这些值 我错过了什么 这个代码怎么了 先谢谢你 下面是我的代码 Chart1.Series.Add("Price"); Chart1.Series["Price"].YValueMembers = "Price";
Chart1.Series["Price"].IsValueShownAsLabel = true;
但是没有显示这些值
我错过了什么
这个代码怎么了
先谢谢你
下面是我的代码
Chart1.Series.Add("Price");
Chart1.Series["Price"].YValueMembers = "Price";
Chart1.Series["Price"].ChartType = SeriesChartType.FastLine;
Chart1.Series["Price"]["LabelStyle"] = "Center";
Chart1.Series["Price"]["PointWidth"] = "0.85";
Chart1.Series["Price"].IsValueShownAsLabel = true;
Chart1.Series["Price"].Font = new System.Drawing.Font("Verdana", 9, FontStyle.Bold);
Chart1.Series["Price"].LabelForeColor = System.Drawing.Color.FromArgb(0, 0, 128);
Chart1.Series["Price"]["LabelStyle"] = "Top";
Chart1.Series["Price"].Color = System.Drawing.Color.FromArgb(153, 153, 255);
Chart1.Series["Price"]["PixelPointDepth"] = "1.0";
Chart1.Series["Price"]["DrawingStyle"] = "Cylinder";
Chart1.Series["Price"].BorderWidth = 3;
Chart1.Series["Price"].MarkerColor = Color.Red;
快速线
图表不支持标记
和数据点标签
根据:
因此,如果您想显示标签/数据点,请使用Line
chart
Some charting features are omitted from the FastLine chart to improve performance.
The features omitted include control of point level visual attributes, markers, data point labels, and shadows.