使用F# chart control library时,如何指定图例文本?例如:
FSharpChart.Line [ for f in 0.0 .. 0.1 .. 10.0 -> cos f ]
|> FSharpChart.WithLegend()显示文本为"GenericChart_Series_1“的图例。如何更改文本?
发布于 2011-06-03 11:34:39
可以使用图表对象的Name属性指定图例。可以在调用Line成员时设置该属性:
FSharpChart.Line([ for f in 0.0 .. 0.1 .. 10.0 -> cos f ], Name = "Cos")
|> FSharpChart.WithLegend()https://stackoverflow.com/questions/6222513
复制相似问题