Skip to content

Commit 471de46

Browse files
committed
documentation update
1 parent e630f5e commit 471de46

2 files changed

Lines changed: 19 additions & 15 deletions

File tree

documentation/troubleshooting-faq.md

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,28 @@ Note that there are some subtle differences between objects specified directly
1212
in JavaScript and valid JSON. For example, the plot data that could be specified
1313
in a JavaScript code snippet as
1414

15-
var data = [
16-
{
17-
x: ['2013-10-04 22:23:00', '2013-11-04 22:23:00', '2013-12-04 22:23:00'],
18-
y: [1, 3, 6],
19-
type: 'scatter'
20-
}
21-
];
22-
23-
Plotly.newPlot('myDiv', data);
15+
```js
16+
var data = [
17+
{
18+
x: ['2013-10-04 22:23:00', '2013-11-04 22:23:00', '2013-12-04 22:23:00'],
19+
y: [1, 3, 6],
20+
type: 'scatter'
21+
}
22+
];
23+
24+
Plotly.newPlot('myDiv', data);
25+
```
2426

2527
corresponds to the following JSON to generate the same plot on the export
2628
server:
2729

28-
{
29-
"x": ["2013-10-04 22:23:00", "2013-11-04 22:23:00", "2013-12-04 22:23:00"],
30-
"y": [1, 3, 6],
31-
"type": "scatter"
32-
}
30+
```json
31+
{
32+
"x": ["2013-10-04 22:23:00", "2013-11-04 22:23:00", "2013-12-04 22:23:00"],
33+
"y": [1, 3, 6],
34+
"type": "scatter"
35+
}
36+
```
3337

3438
The notable differences are:
3539

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ A version history is available in [changelog.md](./changelog.md).
119119

120120
## Copyright and Licensing
121121

122-
Copyright 2018, 2020, 2021 Dirk Stolle
122+
Copyright 2018, 2020, 2021, 2022 Dirk Stolle
123123

124124
This program is free software: you can redistribute it and/or modify
125125
it under the terms of the GNU General Public License as published by

0 commit comments

Comments
 (0)