Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 07ccb21

Browse files
authored
Merge pull request #453 from plotly/graph-fig-docs
Graph fig docs
2 parents a7e640c + 71b3857 commit 07ccb21

35 files changed

+83
-71
lines changed

R/coreChecklist.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreChecklist <- function(id=NULL, options=NULL, values=NULL, className=NULL, st
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreConfirmDialog.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreConfirmDialog <- function(id=NULL, message=NULL, submit_n_clicks=NULL, submi
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreConfirmDialogProvider.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreConfirmDialogProvider <- function(children=NULL, id=NULL, message=NULL, subm
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreDatePickerRange.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreDatePickerRange <- function(id=NULL, start_date=NULL, end_date=NULL, min_dat
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreDatePickerSingle.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreDatePickerSingle <- function(id=NULL, date=NULL, min_date_allowed=NULL, max_
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreDropdown.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreDropdown <- function(id=NULL, options=NULL, value=NULL, className=NULL, clea
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreGraph.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreGraph <- function(id=NULL, clickData=NULL, clickAnnotationData=NULL, hoverDa
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreInput.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreInput <- function(id=NULL, value=NULL, style=NULL, className=NULL, debounce=
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreInterval.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreInterval <- function(id=NULL, interval=NULL, disabled=NULL, n_intervals=NULL
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreLink.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreLink <- function(children=NULL, href=NULL, refresh=NULL, className=NULL, sty
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreLocation.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreLocation <- function(id=NULL, pathname=NULL, search=NULL, hash=NULL, href=NU
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreLogoutButton.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreLogoutButton <- function(id=NULL, label=NULL, logout_url=NULL, style=NULL, m
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreMarkdown.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreMarkdown <- function(children=NULL, id=NULL, className=NULL, containerProps=
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreRadioItems.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreRadioItems <- function(id=NULL, options=NULL, value=NULL, style=NULL, classN
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreRangeSlider.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreRangeSlider <- function(id=NULL, marks=NULL, value=NULL, allowCross=NULL, cl
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreSlider.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreSlider <- function(id=NULL, marks=NULL, value=NULL, className=NULL, disabled
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreStore.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreStore <- function(id=NULL, storage_type=NULL, data=NULL, clear_data=NULL, mo
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreSyntaxHighlighter.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreSyntaxHighlighter <- function(children=NULL, id=NULL, language=NULL, theme=N
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreTab.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreTab <- function(children=NULL, id=NULL, label=NULL, value=NULL, disabled=NUL
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreTabs.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreTabs <- function(children=NULL, id=NULL, value=NULL, className=NULL, content
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreTextarea.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreTextarea <- function(id=NULL, value=NULL, autoFocus=NULL, cols=NULL, disable
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

R/coreUpload.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ coreUpload <- function(children=NULL, id=NULL, contents=NULL, filename=NULL, las
1111
)
1212

1313
component$props <- filter_null(component$props)
14-
15-
structure(component, class = c('dash_component', 'list'))
14+
15+
structure(component, class = c('dash_component', 'list'))
1616
}

dash_core_components/Graph.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ class Graph(Component):
2323
when the user zooms or pans on the plot
2424
- figure (dict; optional): Plotly `figure` object. See schema:
2525
https://plot.ly/javascript/reference
26+
Only supports `data` array and `layout` object.
27+
`config` is set separately by the `config` property,
28+
and `frames` is not supported.
2629
- style (dict; optional): Generic style overrides on the plot div
2730
- className (string; optional): className of the parent div
2831
- animate (boolean; optional): Beta: If true, animate between updates using

dash_core_components/dash_core_components.dev.js

Lines changed: 6 additions & 4 deletions
Large diffs are not rendered by default.

dash_core_components/dash_core_components.dev.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_core_components/dash_core_components.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_core_components/dash_core_components.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_core_components/metadata.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

inst/deps/dash_core_components.dev.js

Lines changed: 6 additions & 4 deletions
Large diffs are not rendered by default.

inst/deps/dash_core_components.dev.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/deps/dash_core_components.min.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inst/deps/dash_core_components.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/coreGraph.Rd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ data from the last point that was hovered over.}
3535
when the user zooms or pans on the plot}
3636

3737
\item{figure}{Plotly `figure` object. See schema:
38-
https://plot.ly/javascript/reference}
38+
https://plot.ly/javascript/reference
39+
Only supports `data` array and `layout` object.
40+
`config` is set separately by the `config` property,
41+
and `frames` is not supported.}
3942

4043
\item{style}{Generic style overrides on the plot div}
4144

src/components/Graph.react.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ const graphPropTypes = {
264264
/**
265265
* Plotly `figure` object. See schema:
266266
* https://plot.ly/javascript/reference
267+
* Only supports `data` array and `layout` object.
268+
* `config` is set separately by the `config` property,
269+
* and `frames` is not supported.
267270
*/
268271
figure: PropTypes.object,
269272

test/test_integration.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,9 +1555,8 @@ def update_output(value):
15551555
self.assertEqual(
15561556
call_count.value,
15571557
# an initial call to retrieve the first value
1558-
1 +
1559-
# one for each hello world character # noqa: W504
1560-
len('hello world')
1558+
# plus one for each hello world character
1559+
1 + len('hello world')
15611560
)
15621561

15631562
def test_store_type_updates(self):

0 commit comments

Comments
 (0)