Skip to content

Fix typos #1117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _posts/plotly_js/basic/area/2015-04-09-basic-area.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@

var data = [trace1, trace2];

Plotly.newPlot('myDiv', data, layout);
Plotly.newPlot('myDiv', data);
2 changes: 1 addition & 1 deletion _posts/plotly_js/basic/area/2015-04-09-stacked-area.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
{x: [1,2,3], y: [3,0,2], stackgroup: 'one'}
];

Plotly.newPlot(plotDiv, traces), {title: 'stacked and filled line chart'});
Plotly.newPlot(plotDiv, traces, {title: 'stacked and filled line chart'});
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
{x: [1,2,3], y: [3,0,2], stackgroup: 'one'}
];

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

Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
x: xValue,
y: yValue,
type: 'bar',
text: yValue,
text: yValue.map(String),
textposition: 'auto',
hoverinfo: 'none',
marker: {
color: 'rgb(158,202,225)',
opacity: 0.6,
line: {
color: 'rbg(8,48,107)',
color: 'rgb(8,48,107)',
width: 1.5
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
x: xValue,
y: yValue,
type: 'bar',
text: yValue,
text: yValue.map(String),
textposition: 'auto',
hoverinfo: 'none',
opacity: 0.5,
marker: {
color: 'rgb(158,202,225)',
line: {
color: 'rbg(8,48,107)',
color: 'rgb(8,48,107)',
width: 1.5
}
}
Expand All @@ -34,13 +34,13 @@
x: xValue,
y: yValue2,
type: 'bar',
text: yValue2,
text: yValue2.map(String),
textposition: 'auto',
hoverinfo: 'none',
marker: {
color: 'rgba(58,200,225,.5)',
line: {
color: 'rbg(8,48,107)',
color: 'rgb(8,48,107)',
width: 1.5
}
}
Expand Down
4 changes: 3 additions & 1 deletion _posts/plotly_js/basic/bar/2018-02-27-bar-base.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
arrangement: horizontal
---

data = [
var data = [
{
type: 'bar',
x: ['2016','2017','2018'],
Expand All @@ -29,3 +29,5 @@
},
name: 'revenue'
}]

Plotly.newPlot('myDiv', data);
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
order: 1
sitemap: false
---
var y0 = [];
var y1 = [];
for (var i = 0; i < 50; i ++) {
y0[i] = Math.random();
y1[i] = Math.random() + 1;
Expand Down