Skip to content

Commit 11abd88

Browse files
authored
Merge pull request #51 from mr-m-coetzee/GraphWithAnonymousObj
Graph: Allow `figure` to be anonymous object
2 parents 2852420 + 99f5089 commit 11abd88

File tree

1 file changed

+9
-3
lines changed
  • src/Dash.NET/DashComponents/CoreComponents

1 file changed

+9
-3
lines changed

src/Dash.NET/DashComponents/CoreComponents/Graph.fs

+9-3
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ module Graph =
105105
///• loading_state (record with the fields: 'is_loading: boolean (optional)', 'prop_name: string (optional)', 'component_name: string (optional)') - Object that holds the loading state object coming from dash-renderer
106106
///</summary>
107107
type Prop =
108-
| Figure of Plotly.NET.GenericChart.Figure
109-
| Config of Plotly.NET.Config
108+
| Figure of obj
109+
| Config of Config
110110
| ClickData of obj
111111
| ClickAnnotationData of obj
112112
| HoverData of obj
@@ -216,7 +216,13 @@ module Graph =
216216
///https://plotly.com/javascript/reference
217217
///&#96;config&#96; is set separately by the &#96;config&#96; property
218218
///</summary>
219-
static member figure(p: Plotly.NET.GenericChart.Figure) = Prop(Figure p)
219+
static member figure(p: GenericChart.Figure) = Prop(Figure p)
220+
///<summary>
221+
///Plotly &#96;figure&#96; object. See schema:
222+
///https://plotly.com/javascript/reference
223+
///&#96;config&#96; is set separately by the &#96;config&#96; property
224+
///</summary>
225+
static member figure(p: obj) = Prop(Figure p)
220226
///<summary>
221227
///Generic style overrides on the plot div
222228
///</summary>

0 commit comments

Comments
 (0)