Do I understand it correctly that you'd like to draw a line chart for each group based on the name (i.e. one line chart for the name a
, one for the name b
, etc.)?
In that case, you can use Frame.nest
to create a series of frames - the outer series will be indexed by the first part of the index (the name) and the nested frames will contain the values of each group.
Then you can get the observations (group name together with a frame) and plot the values for each group using Chart.Line
and then combine the sequence of line charts like this:
fr
|> Frame.nest
|> Series.observations
|> Seq.map (fun (k, frame) -> Chart.Line(frame?data, Name=k))
|> Chart.Combine
|> Chart.WithLegend()