Skip to content

Graph: Allow figure to be anonymous object #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/Dash.NET/DashComponents/CoreComponents/Graph.fs
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ module Graph =
///• 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
///</summary>
type Prop =
| Figure of Plotly.NET.GenericChart.Figure
| Config of Plotly.NET.Config
| Figure of obj
| Config of Config
| ClickData of obj
| ClickAnnotationData of obj
| HoverData of obj
Expand Down Expand Up @@ -216,7 +216,13 @@ module Graph =
///https://plotly.com/javascript/reference
///&#96;config&#96; is set separately by the &#96;config&#96; property
///</summary>
static member figure(p: Plotly.NET.GenericChart.Figure) = Prop(Figure p)
static member figure(p: GenericChart.Figure) = Prop(Figure p)
///<summary>
///Plotly &#96;figure&#96; object. See schema:
///https://plotly.com/javascript/reference
///&#96;config&#96; is set separately by the &#96;config&#96; property
///</summary>
static member figure(p: obj) = Prop(Figure p)
///<summary>
///Generic style overrides on the plot div
///</summary>
Expand Down