Skip to content

Commit 7e63f28

Browse files
docs: improved Plotly.makeTemplate clarity
1 parent 2fd0fdc commit 7e63f28

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,13 +394,14 @@ <h4 id="plotly-makeTemplate"><a href="{{ BASE_URL }}/javascript/plotlyjs-functio
394394

395395
var template = Plotly.makeTemplate(figure);
396396

397-
newData = [{
397+
var newData = [{
398398
type:'bar',
399399
y:[3,2,5,8]
400400
}]
401-
layoutWithTemplate = {template:template}
402401

403-
Plotly.newPlot(graphDiv,newData,layoutTemplate)
402+
var layout = {template:template}
403+
404+
Plotly.newPlot(graphDiv,newData,layout)
404405

405406
</code></pre>
406407

0 commit comments

Comments
 (0)