Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 886552b

Browse files
authored
Merge pull request plotly#1139 from plotly/templates
add DOM to makeTemplate call sig in js function reference.
2 parents c7e6875 + c7b465c commit 886552b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_posts/reference_pages/2016-06-03-plotly_js_function_ref.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,9 @@ <h4 id="plotly-makeTemplate"><a href="{{ BASE_URL }}/javascript/plotlyjs-functio
371371
<dt><code>Plotly.makeTemplate(figure)</code></dt>
372372
<dd>
373373
<dl>
374-
<dt><code>figure</code></dt>
375-
<dd>a plot object, with <code>{data, layout}</code> members
374+
<dt><code>figure</code> or <code>DOM Node</code></dt>
375+
<dd>where <code>figure</code> is a plot object, with <code>{data, layout}</code> members. If a DOM node is used
376+
it must be a div element already containing a plot.
376377
</dl>
377378
</dd>
378379
</dl>

0 commit comments

Comments
 (0)