FSharp.Charting
FSharp.Charting copied to clipboard
Legend in case of using Name property
From documentation:
A legend is added automatically when names are used for data sets.
That's incorrect right now.
Probably because
let hasLegend = not (String.IsNullOrEmpty series.Name) || LegendEnabled.IsSome
series.Name is empty since #21
https://github.com/fslaborg/FSharp.Charting/commit/dce9fecb8cdec724a768f7d1577769929f75cb60
does this check-in fix this issue?
@voronoipotato no.
Probably I wasn't clear enough.
https://github.com/fslaborg/FSharp.Charting/pull/22/commits/96e4f6c2ba4ced7ce4b11c8e7e671aa9854e644a
Name was set to a Chart, but legend's visibility still depends on name of a series.
let hasLegend = not (String.IsNullOrEmpty series.Name) || LegendEnabled.IsSome
So, I see two options here:
- Documentation is wrong
-
hasLegendshould checkch.Nameinstead ofseries.Name.