Skip to content

Commit 659714f

Browse files
committed
Merge branch 'master' into plotly-js-3-docs
2 parents 945f4da + 3bf2815 commit 659714f

File tree

234 files changed

+1189
-594
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+1189
-594
lines changed

CODE_OF_CONDUCT.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/), and may also be found online at <https://community.plotly.com/pub/code-of-conduct>.

_includes/layouts/webinar_plug.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
<a href="https://plotly.com/careers/?utm_medium=graphing_libraries&utm_content=sidebar" target="_blank">
3-
<img src="https://images.prismic.io/plotly-marketing-website/a9ba884c-ee2c-40f9-9c39-809ea1b5aac7_dash_doc_banner_career-01+%281%29.jpg?auto=compress,format"
4-
style="width: 200px; height: 200px; position: fixed; bottom: 10px; left: 50px" alt="View all the positions that Plotly is hiring for!">
2+
<a href="https://go.plotly.com/dash-club?utm_source=Dash+Club+2022&utm_medium=graphing_libraries&utm_content=sidebar" target="_blank">
3+
<img src="https://images.prismic.io/plotly-marketing-website-2/7953022d-73b1-481e-8f6b-9ce9bd80e588_Dash+Club.jpeg?auto=compress,format"
4+
style="width: 200px; height: 200px; position: fixed; bottom: 10px; left: 50px" alt="Sign up to Dash Club to get two free cheat sheets as well as tips and tricks, community apps, and deep dives delivered every two months">
55
</a>

_posts/csharp/indexes/2021-08-04-statistic-index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
permalink: csharp/statistical-charts/
3-
description: Plotly's C# graphing library makes interactive, publication-quality graphs online. Examples of how to make statistical charts such as box plots, histograms, and distrubution plots.
3+
description: Plotly's C# graphing library makes interactive, publication-quality graphs online. Examples of how to make statistical charts such as box plots, histograms, and distribution plots.
44
name: Statistical Charts
55
layout: langindex
66
language: csharp

_posts/fsharp/indexes/2021-08-04-statistic-index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
permalink: fsharp/statistical-charts/
3-
description: Plotly's F# graphing library makes interactive, publication-quality graphs online. Examples of how to make statistical charts such as box plots, histograms, and distrubution plots.
3+
description: Plotly's F# graphing library makes interactive, publication-quality graphs online. Examples of how to make statistical charts such as box plots, histograms, and distribution plots.
44
name: Statistical Charts
55
layout: langindex
66
language: fsharp

_posts/ggplot2/indexes/2021-08-04-statistic-index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
permalink: ggplot2/statistical-charts/
3-
description: Plotly's ggplot2 graphing library makes interactive, publication-quality graphs online. Examples of how to make statistical charts such as box plots, histograms, and distrubution plots.
3+
description: Plotly's ggplot2 graphing library makes interactive, publication-quality graphs online. Examples of how to make statistical charts such as box plots, histograms, and distribution plots.
44
name: Statistical Charts
55
layout: langindex
66
language: ggplot2

_posts/julia/indexes/2021-08-04-statistic-index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
permalink: julia/statistical-charts/
3-
description: Plotly's Julia graphing library makes interactive, publication-quality graphs online. Examples of how to make statistical charts such as box plots, histograms, and distrubution plots.
3+
description: Plotly's Julia graphing library makes interactive, publication-quality graphs online. Examples of how to make statistical charts such as box plots, histograms, and distribution plots.
44
name: Statistical Charts
55
layout: langindex
66
language: julia

_posts/matlab/indexes/2021-08-04-statistic-index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
permalink: matlab/statistical-charts/
3-
description: Plotly's MATLAB<sup>&reg;</sup> graphing library makes interactive, publication-quality graphs online. Examples of how to make statistical charts such as box plots, histograms, and distrubution plots.
3+
description: Plotly's MATLAB<sup>&reg;</sup> graphing library makes interactive, publication-quality graphs online. Examples of how to make statistical charts such as box plots, histograms, and distribution plots.
44
name: Statistical Charts
55
layout: langindex
66
language: matlab

_posts/nodejs/histogram/2015-04-09-overlaid-histogram.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Overlaid Histgram
2+
name: Overlaid Histogram
33
plot_url: https://plotly.com/~PlotBot/54
44
arrangement: horizontal
55
language: nodejs

_posts/plotly_js/2015-04-05-plotly_js-index.html

+24-4
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,25 @@ <h1>Plotly JavaScript Open Source Graphing Library</h1>
5151
reversescale: true, zmax: 2.5, zmin: -2.5
5252
};
5353
var layout = {
54-
title: 'turbulence simulation',
55-
xaxis: {title: 'radial direction', showline: true, mirror: 'allticks', ticks: 'inside'},
56-
yaxis: {title: 'vertical direction', showline: true, mirror: 'allticks', ticks: 'inside'},
54+
title: {
55+
text: 'turbulence simulation'
56+
},
57+
xaxis: {
58+
title: {
59+
text: 'radial direction'
60+
},
61+
showline: true,
62+
mirror: 'allticks',
63+
ticks: 'inside'
64+
},
65+
yaxis: {
66+
title: {
67+
text: 'vertical direction'
68+
},
69+
showline: true,
70+
mirror: 'allticks',
71+
ticks: 'inside'
72+
},
5773
margin: {l: 40, b: 40, t: 60},
5874
annotations: [{
5975
showarrow: false,
@@ -97,7 +113,11 @@ <h1>Plotly JavaScript Open Source Graphing Library</h1>
97113
};
98114

99115
var layout = {
100-
yaxis: {title: "Wind Speed"}, // set the y axis title
116+
yaxis: {
117+
title: {
118+
text: "Wind Speed"
119+
}
120+
}, // set the y axis title
101121
xaxis: {
102122
showgrid: false, // remove the x-axis grid lines
103123
tickformat: "%B, %Y" // customize the date format to "month, day"

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

+16-8
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,20 @@ <h4 id="plotly-newplot"><a href="{{ BASE_URL }}/javascript/plotlyjs-function-ref
8484
}];
8585

8686
var layout = {
87-
title: 'Sales Growth',
87+
title: {
88+
text: 'Sales Growth'
89+
},
8890
xaxis: {
89-
title: 'Year',
91+
title: {
92+
text: 'Year'
93+
},
9094
showgrid: false,
9195
zeroline: false
9296
},
9397
yaxis: {
94-
title: 'Percent',
98+
title: {
99+
text: 'Percent'
100+
},
95101
showline: false
96102
}
97103
};
@@ -252,7 +258,7 @@ <h4 id="plotly-relayout"><a href="{{ BASE_URL }}/javascript/plotlyjs-function-re
252258
<pre><code class="language-javascript hljs" data-lang="javascript">
253259
// update only values within nested objects
254260
var update = {
255-
title: 'some new title', // updates the title
261+
title: {text: 'some new title'}, // updates the title
256262
'xaxis.range': [0, 5], // updates the xaxis range
257263
'yaxis.range[1]': 15 // updates the end of the yaxis range
258264
};
@@ -290,7 +296,7 @@ <h4 id="plotly-update"><a href="{{ BASE_URL }}/javascript/plotlyjs-function-refe
290296
<pre><code class="language-javascript hljs" data-lang="javascript">
291297
//update the layout and all the traces
292298
var layout_update = {
293-
title: 'some new title', // updates the title
299+
title: {text: 'some new title'}, // updates the title
294300
};
295301
var data_update = {
296302
'marker.color': 'red'
@@ -299,7 +305,7 @@ <h4 id="plotly-update"><a href="{{ BASE_URL }}/javascript/plotlyjs-function-refe
299305

300306
//update the layout and a single trace
301307
var layout_update = {
302-
title: 'some new title', // updates the title
308+
title: {text: 'some new title'}, // updates the title
303309
};
304310
var data_update = {
305311
'marker.color': 'red'
@@ -308,7 +314,7 @@ <h4 id="plotly-update"><a href="{{ BASE_URL }}/javascript/plotlyjs-function-refe
308314

309315
//update the layout and two specific traces
310316
var layout_update = {
311-
title: 'some new title', // updates the title
317+
title: {text: 'some new title'}, // updates the title
312318
};
313319
var data_update = {
314320
'marker.color': 'red'
@@ -380,7 +386,9 @@ <h4 id="plotly-makeTemplate"><a href="{{ BASE_URL }}/javascript/plotlyjs-functio
380386
y: [2, 1, 3, 2],
381387
}],
382388
layout:{
383-
title: 'Quarterly Earnings'
389+
title: {
390+
text: 'Quarterly Earnings'
391+
}
384392
}
385393
};
386394

_posts/plotly_js/3d/3d-cluster/2015-08-10-3d-point-cluster.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@
7070
zeroline: false
7171
}
7272
},
73-
title: '3d point clustering',
73+
title: {
74+
text: '3d point clustering'
75+
},
7476
width: 477
7577
};
7678

_posts/plotly_js/3d/3d-line/2015-04-09-random-walk.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@
7474

7575
var data = [trace1, trace2, trace3];
7676
var layout = {
77-
title: '3D Line Plot',
77+
title: {
78+
text: '3D Line Plot'
79+
},
7880
autosize: false,
7981
width: 500,
8082
height: 500,

_posts/plotly_js/3d/3d-surface/2015-04-09-elevations-3d-surface.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
}];
2525

2626
var layout = {
27-
title: 'Mt Bruno Elevation',
27+
title: {
28+
text: 'Mt Bruno Elevation'
29+
},
2830
autosize: false,
2931
width: 500,
3032
height: 500,

_posts/plotly_js/3d/3d-surface/2018-10-09-surface-contours.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
}];
3535

3636
var layout = {
37-
title: 'Mt Bruno Elevation With Projected Contours',
37+
title: {
38+
text: 'Mt Bruno Elevation With Projected Contours'
39+
},
3840
scene: {camera: {eye: {x: 1.87, y: 0.88, z: -0.64}}},
3941
autosize: false,
4042
width: 500,

_posts/plotly_js/3d/ribbon-plots/2015-08-12-ribbon-plot-example.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,17 @@
5757
var data = [trace1, trace2, trace3, trace4, trace5, trace6, trace7];
5858

5959
var layout = {
60-
title: 'Ribbon Plot',
60+
title: {
61+
text: 'Ribbon Plot'
62+
},
6163
showlegend: false,
6264
autosize: true,
6365
width: 600,
6466
height: 600,
6567
scene: {
66-
xaxis: {title: 'Sample #'},
67-
yaxis: {title: 'Wavelength'},
68-
zaxis: {title: 'OD'}
68+
xaxis: {title: {text: 'Sample #'}},
69+
yaxis: {title: {text: 'Wavelength'}},
70+
zaxis: {title: {text: 'OD'}}
6971
}
7072
};
7173
Plotly.newPlot('myDiv', data, layout);

_posts/plotly_js/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ order: 5
5050

5151
## Create A New Example Post:
5252

53-
1. In the folder containing the examples for the chart type you are writing documenation for, create a file named: `yyyy-mm-dd-example-title.html`.
53+
1. In the folder containing the examples for the chart type you are writing documentation for, create a file named: `yyyy-mm-dd-example-title.html`.
5454

5555
2. Copy the example post template below and write JavaScript code to demonstrate the feature you are documenting.
5656
- If `plot_url` front-matter is not present, then the resulting chart will be displayed inline and a `Try It Codepen` button will be automatically generated.

_posts/plotly_js/animations/animations-slider/2017-08-22-adding-sliders.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@
106106

107107
var layout = {
108108
xaxis: {
109-
title: 'Life Expectancy',
109+
title: {text: 'Life Expectancy'},
110110
range: [30, 85]
111111
},
112112
yaxis: {
113-
title: 'GDP per Capita',
113+
title: {text: 'GDP per Capita'},
114114
type: 'log'
115115
},
116116
hovermode: 'closest',

_posts/plotly_js/animations/filled-area-animations/2017-08-22-filled-area-animations.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
mode: 'lines',
3434
line: {color: 'green'}
3535
}], {
36-
title: "Filled-Area Animation",
36+
title: {
37+
text: "Filled-Area Animation"
38+
},
3739
xaxis: {
3840
type: 'date',
3941
range: [

_posts/plotly_js/animations/filled-area-animations/2017-08-22-multiple-filled-area-animations.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@
5151
var data = [trace1,trace2];
5252

5353
var layout = {
54-
title: 'Multiple Trace Filled-Area Animation',
54+
title: {
55+
text: 'Multiple Trace Filled-Area Animation'
56+
},
5557
xaxis: {
5658
range: [frames[99].data[0].x[0], frames[99].data[0].x[99]],
5759
showgrid: false

_posts/plotly_js/animations/map-animations/2017-08-22-choropleth-animation.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@
4747

4848
}];
4949
var layout = {
50-
title: 'World Life Expectency<br>1952 - 2007',
50+
title: {
51+
text: 'World Life Expectency<br>1952 - 2007'
52+
},
5153
geo:{
5254
scope: 'world',
5355
countrycolor: 'rgb(255, 255, 255)',

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
}]
3535

3636
var layout = {
37-
title: 'Hover on <i>points</i> or <i>fill</i>',
37+
title: {
38+
text: 'Hover on <i>points</i> or <i>fill</i>'
39+
},
3840
xaxis: {
3941
range: [0,5]
4042
},
@@ -43,4 +45,4 @@
4345
}
4446
}
4547

46-
Plotly.newPlot('myDiv', data, layout)
48+
Plotly.newPlot('myDiv', data, layout)

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
{x: [1,2,3], y: [3,0,2], stackgroup: 'one'}
1414
];
1515

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

_posts/plotly_js/basic/area/2015-08-10-overlaid-area-char-without-boundary-lines.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
};
2525

2626
var layout = {
27-
title: 'Overlaid Chart Without Boundary Lines'
27+
title: {
28+
text: 'Overlaid Chart Without Boundary Lines'
29+
}
2830
};
2931

3032
var data = [trace1, trace2];

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
{x: [1,2,3], y: [3,0,2], stackgroup: 'one'}
1414
];
1515

16-
Plotly.newPlot('myDiv', traces, {title: 'Normalized stacked and filled line chart'});
16+
Plotly.newPlot('myDiv', traces, {title: {text: 'Normalized stacked and filled line chart'}});
1717

_posts/plotly_js/basic/bar/2015-04-09-bar-marker-array.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
var data = [trace1];
1919

2020
var layout = {
21-
title: 'Least Used Feature'
21+
title: {
22+
text: 'Least Used Feature'
23+
}
2224
};
2325

2426
Plotly.newPlot('myDiv', data, layout);

0 commit comments

Comments
 (0)