@@ -199,88 +199,91 @@ type Chart =
199199 TraceObjects.Scatter()
200200 |> Options.Scatter( X = x, Y = y, Mode = mode', Fill= StyleOption.ToZero_ y)
201201 |> Options.ITraceInfo( ?Name= Name,? Showlegend= Showlegend,? Opacity= Opacity)
202- |> Options.ILine( Options.Line( ?Color= Color,? Dash= Dash,? Width= Width,? Smoothing= Smoothing))
202+ |> Options.ILine( Options.Line( Shape = StyleOption.Shape.Spline , ? Color= Color,? Dash= Dash,? Width= Width,? Smoothing= Smoothing))
203203 |> Options.IMarker( Options.Marker( ?Color= Color,? Symbol= MarkerSymbol))
204204 |> Options.ITextLabel( ?Text= Labels,? Textposition= TextPosition,? Textfont= TextFont)
205205 GenericChart.Chart ( trace, None)
206206
207207
208208
209- // /// Illustrates comparisons among individual items
210- // static member Bar(x, y, ?Name,?Showlegend,?Color,?Opacity,?Labels,?Marker) =
211- // let marker =
212- // match Marker with
213- // | Some m -> Options.Marker(?Color=Color) >> m
214- // | None -> Options.Marker(?Color=Color)
215- // let trace =
216- // Bar()
217- // |> Options.Bar(X = x,Y = y,
218- // TraceOptions=Options.Trace(?Name=Name,?Showlegend=Showlegend,?Opacity=Opacity),
219- // Marker=marker,
220- // ?Text=Labels)
221- // GenericChart.Chart (trace,None)
222- //
223- //
224- // /// Displays series of the same chart type as stacked bars.
225- // static member StackedBar(x, y, ?Name,?Showlegend,?Color,?Opacity,?Labels,?Marker) =
226- // let marker =
227- // match Marker with
228- // | Some m -> Options.Marker(?Color=Color) >> m
229- // | None -> Options.Marker(?Color=Color)
230- // let trace =
231- // Bar()
232- // |> Options.Bar(X = x,Y = y,
233- // TraceOptions=Options.Trace(?Name=Name,?Showlegend=Showlegend,?Opacity=Opacity),
234- // Marker=marker,
235- // ?Text=Labels)
236- //
237- // let layout = Options.Layout(Barmode=StyleOption.Barmode.Stack)
238- // GenericChart.Chart (trace,Some [layout])
239- //
240- //
241- //
242- // /// Uses a sequence of columns to compare values across categories.
243- // static member Column(x, y, ?Name,?Showlegend,?Color,?Opacity,?Labels,?Marker) =
244- // let marker =
245- // match Marker with
246- // | Some m -> Options.Marker(?Color=Color) >> m
247- // | None -> Options.Marker(?Color=Color)
248- // let trace =
249- // Bar()
250- // |> Options.Bar(X = x,Y = y,
251- // TraceOptions=Options.Trace(?Name=Name,?Showlegend=Showlegend,?Opacity=Opacity),
252- // Marker=marker,
253- // ?Text=Labels,Orientation = StyleOption.Orientation.Horizontal)
254- //
255- // GenericChart.Chart (trace,None)
256- //
257- // /// Displays series of the same chart type as stacked columns.
258- // static member StackedColumn(x, y, ?Name,?Showlegend,?Color,?Opacity,?Labels,?Marker) =
259- // let marker =
260- // match Marker with
261- // | Some m -> Options.Marker(?Color=Color) >> m
262- // | None -> Options.Marker(?Color=Color)
263- // let trace =
264- // Bar()
265- // |> Options.Bar(X = x,Y = y,
266- // TraceOptions=Options.Trace(?Name=Name,?Showlegend=Showlegend,?Opacity=Opacity),
267- // Marker=marker,
268- // ?Text=Labels,Orientation = StyleOption.Orientation.Horizontal)
269- //
270- // let layout = Options.Layout(Barmode=StyleOption.Barmode.Stack)
271- // GenericChart.Chart (trace,Some [layout])
272- //
273- // /// Displays the distribution of data based on the five number summary: minimum, first quartile, median, third quartile, and maximum.
274- // static member BoxPlot(?x,?y,?Name,?Showlegend, ?Color,?Opacity,?Whiskerwidth,?Boxpoints,?Boxmean,?Jitter,?Pointpos,?Line,?Marker) =
275- // let trace =
276- // Box()
277- // |> Options.BoxPlot(?X=x, ?Y = y,
278- // TraceOptions=Options.Trace(?Name=Name,?Showlegend=Showlegend,?Opacity=Opacity),
279- // ?Line=Line,?Marker=Marker,
280- // ?Fillcolor=Color,?Whiskerwidth=Whiskerwidth,?Boxpoints=Boxpoints,
281- // ?Boxmean=Boxmean,?Jitter=Jitter,?Pointpos=Pointpos)
282- //
283- // GenericChart.Chart (trace,None)
209+ /// Illustrates comparisons among individual items
210+ static member Column ( keys , values , ? Name ,? Showlegend ,? Color ,? Opacity ,? Labels ,? TextPosition ,? TextFont ,? Marker ) =
211+ let marker =
212+ match Marker with
213+ | Some m -> Options.Marker( ?Color= Color) >> m
214+ | None -> Options.Marker( ?Color= Color)
215+ let trace =
216+ Bar()
217+ |> Options.Bar( X = keys, Y = values)
218+ |> Options.ITraceInfo( ?Name= Name,? Showlegend= Showlegend,? Opacity= Opacity)
219+ |> Options.IMarker( marker)
220+ |> Options.ITextLabel( ?Text= Labels,? Textposition= TextPosition,? Textfont= TextFont)
221+ GenericChart.Chart ( trace, None)
222+
223+
224+ /// Displays series of tcolumn chart type as stacked columns.
225+ static member StackedColumn ( keys , values , ? Name ,? Showlegend ,? Color ,? Opacity ,? Labels ,? TextPosition ,? TextFont ,? Marker ) =
226+ let marker =
227+ match Marker with
228+ | Some m -> Options.Marker( ?Color= Color) >> m
229+ | None -> Options.Marker( ?Color= Color)
230+ let trace =
231+ Bar()
232+ |> Options.Bar( X = keys, Y = values)
233+ |> Options.ITraceInfo( ?Name= Name,? Showlegend= Showlegend,? Opacity= Opacity)
234+ |> Options.IMarker( marker)
235+ |> Options.ITextLabel( ?Text= Labels,? Textposition= TextPosition,? Textfont= TextFont)
236+ let layout =
237+ Options.Layout( Barmode= StyleOption.Barmode.Stack)
238+ GenericChart.Chart ( trace, None)
239+ |> GenericChart.addLayout layout
240+
241+ /// Illustrates comparisons among individual items
242+ static member Bar ( keys , values , ? Name ,? Showlegend ,? Color ,? Opacity ,? Labels ,? TextPosition ,? TextFont ,? Marker ) =
243+ let marker =
244+ match Marker with
245+ | Some m -> Options.Marker( ?Color= Color) >> m
246+ | None -> Options.Marker( ?Color= Color)
247+ let trace =
248+ Bar()
249+ |> Options.Bar( X = values, Y = keys, Orientation = StyleOption.Orientation.Horizontal)
250+ |> Options.ITraceInfo( ?Name= Name,? Showlegend= Showlegend,? Opacity= Opacity)
251+ |> Options.IMarker( marker)
252+ |> Options.ITextLabel( ?Text= Labels,? Textposition= TextPosition,? Textfont= TextFont)
253+ GenericChart.Chart ( trace, None)
254+
255+
256+ /// Displays series of tcolumn chart type as stacked bars.
257+ static member StackedBar ( keys , values , ? Name ,? Showlegend ,? Color ,? Opacity ,? Labels ,? TextPosition ,? TextFont ,? Marker ) =
258+ let marker =
259+ match Marker with
260+ | Some m -> Options.Marker( ?Color= Color) >> m
261+ | None -> Options.Marker( ?Color= Color)
262+
263+ let trace =
264+ Bar()
265+ |> Options.Bar( X = values, Y = keys, Orientation = StyleOption.Orientation.Horizontal)
266+ |> Options.ITraceInfo( ?Name= Name,? Showlegend= Showlegend,? Opacity= Opacity)
267+ |> Options.IMarker( marker)
268+ |> Options.ITextLabel( ?Text= Labels,? Textposition= TextPosition,? Textfont= TextFont)
269+
270+ let layout =
271+ Options.Layout( Barmode= StyleOption.Barmode.Stack)
272+ GenericChart.Chart ( trace, None)
273+ |> GenericChart.addLayout layout
274+
275+
276+
277+ /// Displays the distribution of data based on the five number summary: minimum, first quartile, median, third quartile, and maximum.
278+ static member BoxPlot (? x ,? y ,? Name ,? Showlegend , ? Color ,? Opacity ,? Whiskerwidth ,? Boxpoints ,? Boxmean ,? Jitter ,? Pointpos ,? Orientation ) =
279+ let trace =
280+ Box()
281+ |> Options.BoxPlot( ?X= x, ?Y = y,
282+ ?Whiskerwidth= Whiskerwidth,? Boxpoints= Boxpoints,
283+ ?Boxmean= Boxmean,? Jitter= Jitter,? Pointpos= Pointpos,? Orientation= Orientation,? Fillcolor= Color)
284+ |> Options.ITraceInfo( ?Name= Name,? Showlegend= Showlegend,? Opacity= Opacity)
285+
286+ GenericChart.Chart ( trace, None)
284287
285288 /// Shows a graphical representation of a 3-dimensional surface by plotting constant z slices, called contours, on a 2-dimensional format.
286289 /// That is, given a value for z, lines are drawn for connecting the (x,y) coordinates where that z value occurs.
@@ -313,7 +316,8 @@ type Chart =
313316// Marker=Options.Marker(?Color=Color),
314317// ?Textinfo=Textinfo,?Textposition=Textposition)
315318// GenericChart.Chart (trace,None)
316- //
319+
320+
317321// /// Shows how proportions of data, shown as pie-shaped pieces, contribute to the data as a whole.
318322// static member Doughnut(values,?labels,?Name,?Showlegend,?Color,?Hole,?Hoverinfo,?Textinfo,?Textposition) =
319323// let hole' = if Hole.IsSome then Hole.Value else 0.4
0 commit comments