Skip to content

Commit ba18717

Browse files
Merge pull request #1470 from lucasconstantino/patch-1
docs: improved Plotly.makeTemplate clarity
2 parents 421b113 + 7e63f28 commit ba18717

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)