diff --git a/NewLife.CubeNC/Charts/ECharts.cs b/NewLife.CubeNC/Charts/ECharts.cs index 18da6602..c368f154 100644 --- a/NewLife.CubeNC/Charts/ECharts.cs +++ b/NewLife.CubeNC/Charts/ECharts.cs @@ -562,6 +562,8 @@ public Series AddGraph(GraphViewModel model) graph["links"] = model.Links; graph["categories"] = model.Categories; + Legend = new { Data = model.Categories.Select(e => e.Name).ToArray() }; + return graph; } #endregion