Skip to content

Commit

Permalink
Merge pull request plotly#905 from Andries-Smit/source-design-merge
Browse files Browse the repository at this point in the history
Fix make sample js strict
  • Loading branch information
cldougl authored Aug 8, 2018
2 parents ac4e635 + 9c222d7 commit 521e77b
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 49 deletions.
4 changes: 2 additions & 2 deletions _posts/plotly_js/layout/3d-axes/2015-08-12-3d_axes_range.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

function getrandom(num , mul)
{
var value = [ ]
var value = [ ];
for(i=0;i<=num;i++)
{
rand = Math.random() * mul;
var rand = Math.random() * mul;
value.push(rand);
}
return value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

function getrandom(num , mul)
{
var value = [ ]
var value = [ ];
for(i=0;i<=num;i++)
{
rand = Math.random() * mul;
var rand = Math.random() * mul;
value.push(rand);
}
return value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
---
function getrandom(num , mul)
{
var value = [ ]
var value = [ ];
for(i=0;i<=num;i++)
{
rand = Math.random() * mul;
var rand = Math.random() * mul;
value.push(rand);
}
return value;
Expand Down
4 changes: 2 additions & 2 deletions _posts/plotly_js/layout/3d-axes/2015-08-12-camera.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

function getrandom(num , mul)
{
var value = [ ]
var value = [ ];
for(i=0;i<=num;i++)
{
rand = Math.random() * mul;
var rand = Math.random() * mul;
value.push(rand);
}
return value;
Expand Down
4 changes: 2 additions & 2 deletions _posts/plotly_js/layout/3d-axes/2015-08-12-title.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
arrangement: horizontal
---
function getrandom(num , mul) {
var value = [ ]
var value = [ ];
for(i=0;i<=num;i++)
{
rand = Math.random() * mul;
var rand = Math.random() * mul;
value.push(rand);
}
return value;}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,21 @@
'Blake&lt;br&gt;Griffin', 'David&lt;br&gt;Lee',
'Demar&lt;br&gt;Derozan'];

function getrandom(num , mul)
{
var value = [ ]
for(i=0;i<=num;i++)
{
rand = Math.random() * mul;
value.push(rand);
}
return value;
}
function getrandom(num , mul) {
var value = [ ];
for ( i = 0; i <= num; i++ ) {
var rand = Math.random() * mul;
value.push(rand);
}
return value;
}

var yData = [
var yData = [
getrandom(30 ,10),
getrandom(30, 20),
getrandom(30, 20),
getrandom(30, 25),
getrandom(30, 40),
getrandom(30, 45),
getrandom(30, 45),
getrandom(30, 30),
getrandom(30, 20),
getrandom(30, 15),
Expand All @@ -41,22 +39,22 @@
var data = [];

for ( var i = 0; i &lt; xData.length; i ++ ) {
var result = {
type: 'box',
y: yData[i],
name: xData[i],
boxpoints: 'all',
jitter: 0.5,
whiskerwidth: 0.2,
fillcolor: 'cls',
marker: {
size: 2
},
line: {
width: 1
}
};
data.push(result);
var result = {
type: 'box',
y: yData[i],
name: xData[i],
boxpoints: 'all',
jitter: 0.5,
whiskerwidth: 0.2,
fillcolor: 'cls',
marker: {
size: 2
},
line: {
width: 1
}
};
data.push(result);
};

layout = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@

function random_number(num , mul)
{
var value = [ ]
var value = [ ];
for(i=0;i&lt;=num;i++)
{
rand = Math.random() * mul;
var rand = Math.random() * mul;
value.push(rand);
}
return value;
Expand Down
16 changes: 8 additions & 8 deletions _posts/plotly_js/subplot/3d-subplots/2015-08-12-subplots.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
arrangement: horizontal
---

function getrandom(num , mul){
var value = [ ]
for(i=0;i<=num;i++)
{
rand = Math.random() * mul;
value.push(rand);
}
return value;}
function getrandom(num , mul) {
var value = [ ];
for ( i=0; i <= num; i++ ) {
var rand = Math.random() * mul;
value.push(rand);
}
return value;
}

var trace1 = {
opacity: 0.5,
Expand Down

0 comments on commit 521e77b

Please sign in to comment.