@@ -307,28 +307,38 @@ type Chart =
307307 GenericChart.Chart ( trace, None)
308308
309309
310- // /// Shows how proportions of data, shown as pie-shaped pieces, contribute to the data as a whole.
311- // static member Pie(values,?labels,?Name,?Showlegend,?Color,?Hoverinfo,?Textinfo,?Textposition) =
312- // let trace =
313- // Pie()
314- // |> Options.Pie(Values=values,?Labels=labels,
315- // TraceOptions=Options.Trace(?Name=Name,?Showlegend=Showlegend,?Hoverinfo=Hoverinfo),
316- // Marker=Options.Marker(?Color=Color),
317- // ?Textinfo=Textinfo,?Textposition=Textposition)
318- // GenericChart.Chart (trace,None)
310+ /// Shows how proportions of data, shown as pie-shaped pieces, contribute to the data.
311+ static member Pie ( values ,? Labels ,? Name ,? Showlegend ,? Color ,? Text ,? Textposition ,? TextFont ,? Hoverinfo ,? Textinfo ,? Opacity ) =
312+ let trace =
313+ Pie()
314+ |> Options.Pie( Values= values,? Labels= Labels,? Textinfo= Textinfo)
315+ |> Options.ITraceInfo( ?Name= Name,? Showlegend= Showlegend,? Opacity= Opacity,? Hoverinfo= Hoverinfo)
316+ |> Options.ITextLabel( ?Text= Text,? Textposition= Textposition,? Textfont= TextFont)
317+ |> Options.IMarker( Marker= Options.Marker( ?Color= Color))
318+
319+ GenericChart.Chart ( trace, None)
319320
321+ /// Shows how proportions of data, shown as pie-shaped pieces, contribute to the data.
322+ static member Pie ( data : seq < #IConvertible * #IConvertible >,? Name ,? Showlegend ,? Color ,? Text ,? Textposition ,? TextFont ,? Hoverinfo ,? Textinfo ,? Opacity ) =
323+ let values , labels = Seq.unzip data
324+ Chart.Pie( values, Labels= labels,? Name= Name,? Showlegend= Showlegend,? Color= Color,? Text= Text,? Textposition= Textposition,? TextFont= TextFont,? Hoverinfo= Hoverinfo,? Textinfo= Textinfo,? Opacity= Opacity)
320325
321- // /// Shows how proportions of data, shown as pie-shaped pieces, contribute to the data as a whole.
322- // static member Doughnut(values,?labels,?Name,?Showlegend,?Color,?Hole,?Hoverinfo,?Textinfo,?Textposition) =
323- // let hole' = if Hole.IsSome then Hole.Value else 0.4
324- // let trace =
325- // Pie()
326- // |> Options.Pie(Values=values,?Labels=labels,
327- // TraceOptions=Options.Trace(?Name=Name,?Showlegend=Showlegend,?Hoverinfo=Hoverinfo),
328- // Marker=Options.Marker(?Color=Color),
329- // ?Textinfo=Textinfo,?Textposition=Textposition,Hole=hole')
330- // GenericChart.Chart (trace,None)
326+ /// Shows how proportions of data, shown as pie-shaped pieces, contribute to the data as a whole.
327+ static member Doughnut ( values ,? Labels ,? Name ,? Showlegend ,? Color ,? Hole ,? Text ,? Textposition ,? TextFont ,? Hoverinfo ,? Textinfo ,? Opacity ) =
328+ let hole ' = if Hole.IsSome then Hole.Value else 0.4
329+ let trace =
330+ Pie()
331+ |> Options.Pie( Values= values,? Labels= Labels,? Textinfo= Textinfo, Hole= hole')
332+ |> Options.ITraceInfo( ?Name= Name,? Showlegend= Showlegend,? Opacity= Opacity,? Hoverinfo= Hoverinfo)
333+ |> Options.ITextLabel( ?Text= Text,? Textposition= Textposition,? Textfont= TextFont)
334+ |> Options.IMarker( Marker= Options.Marker( ?Color= Color))
335+
336+ GenericChart.Chart ( trace, None)
331337
338+ /// Shows how proportions of data, shown as pie-shaped pieces, contribute to the data as a whole.
339+ static member Doughnut ( data : seq < #IConvertible * #IConvertible >,? Name ,? Showlegend ,? Color ,? Hole ,? Text ,? Textposition ,? TextFont ,? Hoverinfo ,? Textinfo ,? Opacity ) =
340+ let values , labels = Seq.unzip data
341+ Chart.Doughnut( values, Labels= labels,? Name= Name,? Showlegend= Showlegend,? Color= Color,? Hole= Hole,? Text= Text,? Textposition= Textposition,? TextFont= TextFont,? Hoverinfo= Hoverinfo,? Textinfo= Textinfo,? Opacity= Opacity)
332342
333343
334344
0 commit comments