File tree 1 file changed +26
-13
lines changed
_posts/plotly_js/layout/labels
1 file changed +26
-13
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
name: Styling Names
3
- plot_url: https://codepen.io/plotly/embed/9c5d7e597190632c7a29dcaddaf69236 /?height=547&theme-id=15263&default-tab=result
3
+ plot_url: https://codepen.io/plotly/embed/LMxqEM /?height=547&theme-id=15263&default-tab=result
4
4
language: plotly_js
5
5
suite: labels
6
6
order: 0
21
21
};
22
22
var data = [trace1, trace2];
23
23
var layout = {
24
- title: 'Plot Title',
25
- xaxis: {
26
- title: 'x Axis',
27
- titlefont: {
24
+ title: {
25
+ text:'Plot Title',
26
+ font: {
28
27
family: 'Courier New, monospace',
29
- size: 18,
30
- color: '#7f7f7f'
31
- }
28
+ size: 24
29
+ },
30
+ xref: 'paper',
31
+ x: 0.05,
32
+ },
33
+ xaxis: {
34
+ title: {
35
+ text: 'x Axis',
36
+ font: {
37
+ family: 'Courier New, monospace',
38
+ size: 18,
39
+ color: '#7f7f7f'
40
+ }
41
+ },
32
42
},
33
43
yaxis: {
34
- title: 'y Axis',
35
- titlefont: {
36
- family: 'Courier New, monospace',
37
- size: 18,
38
- color: '#7f7f7f'
44
+ title: {
45
+ text: 'y Axis',
46
+ font: {
47
+ family: 'Courier New, monospace',
48
+ size: 18,
49
+ color: '#7f7f7f'
50
+ }
39
51
}
40
52
}
41
53
};
54
+
42
55
Plotly.newPlot('myDiv', data, layout);
You can’t perform that action at this time.
0 commit comments