when using F# chart control library, how can I specify the text of the legend?
for instance:
FSharpChart.Line [ for f in 0.0 .. 0.1 .. 10.0 -> cos f ]
|> FSharpChart.WithLegend()
shows a legend with text “GenericChart_Series_1”. How can I change the text?
You can specify the legend using the
Nameproperty of the chart object. The property can be set when calling theLinemember: