我的HighStock图表有问题。 “我的图例”已启用,应该可见,但我不知道为什么它不“存在”。
我只想启用或禁用我的行或区域。 谁能告诉我我的错?
这是我代码的一部分...
@Html.Highsoft().GetHighstock(
new Highstock
{
Chart = new Highsoft.Web.Mvc.Stocks.Chart
{
Type = ChartType.Arearange,
Height = 650
},
Legend = new Legend
{
Enabled = true
},
Title = new Title { Text = "XY" },
XAxis = new List<XAxis> { new XAxis { Title = new XAxisTitle { Text = "Values" } } },
YAxis = new List<YAxis> { new YAxis { Title = new YAxisTitle { Text = "Values" } } },
Series = new List<Series>
{
new LineSeries
{
ShowInLegend = true,
Type = LineSeriesType.Line,
TurboThreshold = 0,
Name = "Value 1",
Data = ViewData["Values 1"] as List<LineSeriesData>,
Color = "#913EE4",
LineWidth = 0.5
},
new LineSeries
{
ShowInLegend = true,
Type = LineSeriesType.Line,
TurboThreshold = 0,
Name = "Value 2",
Data = ViewData["Values 2"] as List<LineSeriesData>,
Color = "#111EE4",
LineWidth = 1.5
},
new ArearangeSeries
{
ShowInLegend = true,
Type = ArearangeSeriesType.Arearange,
TurboThreshold = 0,
Name = "Min - Max",
LineWidth = 0.2,
FillOpacity = 0.2,
Color = "#DBBFF7",
Data = ViewData["minmaxa"] as List<ArearangeSeriesData>
}
},
}, "chart")