Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ASP.NET 4.0中的图表控件#_Asp.net - Fatal编程技术网

ASP.NET 4.0中的图表控件#

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";

我对ASP.NET 4.0中图表控件的此图表存在编程问题

我无法在SerieChartType快速行中显示值

我在脚本中添加了:

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.