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

Skip to content

Commit 0f423d0

Browse files
authored
Merge pull request plotly#1117 from alexarchambault/topic/typo
Fix typos
2 parents cc00176 + ef7ce85 commit 0f423d0

7 files changed

+14
-10
lines changed

_posts/plotly_js/basic/area/2015-04-09-basic-area.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323

2424
var data = [trace1, trace2];
2525

26-
Plotly.newPlot('myDiv', data, layout);
26+
Plotly.newPlot('myDiv', data);

_posts/plotly_js/basic/area/2015-04-09-stacked-area.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
{x: [1,2,3], y: [3,0,2], stackgroup: 'one'}
1515
];
1616

17-
Plotly.newPlot(plotDiv, traces), {title: 'stacked and filled line chart'});
17+
Plotly.newPlot(plotDiv, traces, {title: 'stacked and filled line chart'});

_posts/plotly_js/basic/area/2018-09-18-normalized-stacked-area.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
{x: [1,2,3], y: [3,0,2], stackgroup: 'one'}
1515
];
1616

17-
Plotly.newPlot(stacksDiv, traces, {title: 'Normalized stacked and filled line chart'});
17+
Plotly.newPlot(plotDiv, traces, {title: 'Normalized stacked and filled line chart'});
1818

_posts/plotly_js/basic/bar/2015-08-07-barchart-direct-labels.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
x: xValue,
1717
y: yValue,
1818
type: 'bar',
19-
text: yValue,
19+
text: yValue.map(String),
2020
textposition: 'auto',
2121
hoverinfo: 'none',
2222
marker: {
2323
color: 'rgb(158,202,225)',
2424
opacity: 0.6,
2525
line: {
26-
color: 'rbg(8,48,107)',
26+
color: 'rgb(8,48,107)',
2727
width: 1.5
2828
}
2929
}

_posts/plotly_js/basic/bar/2017-08-30-barchart-direct-labels-grouped.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
x: xValue,
1818
y: yValue,
1919
type: 'bar',
20-
text: yValue,
20+
text: yValue.map(String),
2121
textposition: 'auto',
2222
hoverinfo: 'none',
2323
opacity: 0.5,
2424
marker: {
2525
color: 'rgb(158,202,225)',
2626
line: {
27-
color: 'rbg(8,48,107)',
27+
color: 'rgb(8,48,107)',
2828
width: 1.5
2929
}
3030
}
@@ -34,13 +34,13 @@
3434
x: xValue,
3535
y: yValue2,
3636
type: 'bar',
37-
text: yValue2,
37+
text: yValue2.map(String),
3838
textposition: 'auto',
3939
hoverinfo: 'none',
4040
marker: {
4141
color: 'rgba(58,200,225,.5)',
4242
line: {
43-
color: 'rbg(8,48,107)',
43+
color: 'rgb(8,48,107)',
4444
width: 1.5
4545
}
4646
}

_posts/plotly_js/basic/bar/2018-02-27-bar-base.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
arrangement: horizontal
99
---
1010

11-
data = [
11+
var data = [
1212
{
1313
type: 'bar',
1414
x: ['2016','2017','2018'],
@@ -29,3 +29,5 @@
2929
},
3030
name: 'revenue'
3131
}]
32+
33+
Plotly.newPlot('myDiv', data);

_posts/plotly_js/statistical/box/2015-04-09-basic-box-plot.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
order: 1
88
sitemap: false
99
---
10+
var y0 = [];
11+
var y1 = [];
1012
for (var i = 0; i < 50; i ++) {
1113
y0[i] = Math.random();
1214
y1[i] = Math.random() + 1;

0 commit comments

Comments
 (0)