Skip to content

Commit

Permalink
Legend
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Oct 15, 2024
1 parent 8aa3f0d commit c2e050e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NewLife.CubeNC/Charts/ECharts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2e050e

Please sign in to comment.