Skip to content

Commit eb115a1

Browse files
committed
fix tab to 2
1 parent d9b0a99 commit eb115a1

File tree

4 files changed

+81
-82
lines changed

4 files changed

+81
-82
lines changed

demo/src/highmaps.jsx

Lines changed: 45 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -11,66 +11,65 @@ import './style.css'
1111
import './tomorrow.css'
1212

1313

14-
1514
const config = {
16-
chart: {
17-
spacingBottom: 20
18-
},
19-
title: {
20-
text: 'Europe time zones'
21-
},
22-
23-
legend: {
24-
enabled: true
25-
},
15+
chart: {
16+
spacingBottom: 20
17+
},
18+
title: {
19+
text: 'Europe time zones'
20+
},
2621

27-
plotOptions: {
28-
map: {
29-
allAreas: false,
30-
joinBy: ['iso-a2', 'code'],
31-
dataLabels: {
32-
enabled: true,
33-
color: 'white',
34-
style: {
35-
fontWeight: 'bold'
36-
}
37-
},
38-
mapData: maps,
39-
tooltip: {
40-
headerFormat: '',
41-
pointFormat: '{point.name}: <b>{series.name}</b>'
42-
}
22+
legend: {
23+
enabled: true
24+
},
4325

26+
plotOptions: {
27+
map: {
28+
allAreas: false,
29+
joinBy: ['iso-a2', 'code'],
30+
dataLabels: {
31+
enabled: true,
32+
color: 'white',
33+
style: {
34+
fontWeight: 'bold'
4435
}
45-
},
36+
},
37+
mapData: maps,
38+
tooltip: {
39+
headerFormat: '',
40+
pointFormat: '{point.name}: <b>{series.name}</b>'
41+
}
42+
43+
}
44+
},
4645

47-
series: [{
48-
name: 'UTC',
49-
data: ['IE', 'IS', 'GB', 'PT'].map(function (code) {
50-
return {code: code};
51-
})
52-
}, {
53-
name: 'UTC + 1',
54-
data: ['NO', 'SE', 'DK', 'DE', 'NL', 'BE', 'LU', 'ES', 'FR', 'PL', 'CZ', 'AT', 'CH', 'LI', 'SK', 'HU',
55-
'SI', 'IT', 'SM', 'HR', 'BA', 'YF', 'ME', 'AL', 'MK'].map(function (code) {
56-
return {code: code};
57-
})
58-
}]
46+
series: [{
47+
name: 'UTC',
48+
data: ['IE', 'IS', 'GB', 'PT'].map(function (code) {
49+
return {code: code};
50+
})
51+
}, {
52+
name: 'UTC + 1',
53+
data: ['NO', 'SE', 'DK', 'DE', 'NL', 'BE', 'LU', 'ES', 'FR', 'PL', 'CZ', 'AT', 'CH', 'LI', 'SK', 'HU',
54+
'SI', 'IT', 'SM', 'HR', 'BA', 'YF', 'ME', 'AL', 'MK'].map(function (code) {
55+
return {code: code};
56+
})
57+
}]
5958
};
6059

6160
ReactDOM.render(
62-
<ReactHighmaps config={config} />,
63-
document.getElementById('test')
61+
<ReactHighmaps config={config}/>,
62+
document.getElementById('test')
6463
);
6564

6665
ReactDOM.render(
67-
<PrismCode component="pre" className="language-javascript">{require("!!raw-loader!./highmaps.jsx")}</PrismCode>,
68-
document.getElementById('code-js')
66+
<PrismCode component="pre" className="language-javascript">{require("!!raw-loader!./highmaps.jsx")}</PrismCode>,
67+
document.getElementById('code-js')
6968
);
7069

7170
ReactDOM.render(
72-
<PrismCode component="pre" className="language-markup">{require("raw-loader!./highmaps.html")}</PrismCode>,
73-
document.getElementById('code-html')
71+
<PrismCode component="pre" className="language-markup">{require("raw-loader!./highmaps.html")}</PrismCode>,
72+
document.getElementById('code-html')
7473
);
7574

7675
require("file-loader?name=[name].[ext]!./highmaps.html");

demo/src/highstock.jsx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,38 @@ import './tomorrow.css'
1111

1212

1313
const data = [
14-
[1220832000000, 22.56], [1220918400000, 21.67], [1221004800000, 21.66], [1221091200000, 21.81], [1221177600000, 21.28], [1221436800000, 20.05], [1221523200000, 19.98], [1221609600000, 18.26], [1221696000000, 19.16], [1221782400000, 20.13], [1222041600000, 18.72], [1222128000000, 18.12], [1222214400000, 18.39], [1222300800000, 18.85], [1222387200000, 18.32], [1222646400000, 15.04], [1222732800000, 16.24], [1222819200000, 15.59], [1222905600000, 14.3], [1222992000000, 13.87], [1223251200000, 14.02], [1223337600000, 12.74], [1223424000000, 12.83], [1223510400000, 12.68], [1223596800000, 13.8], [1223856000000, 15.75], [1223942400000, 14.87], [1224028800000, 13.99], [1224115200000, 14.56], [1224201600000, 13.91], [1224460800000, 14.06], [1224547200000, 13.07], [1224633600000, 13.84], [1224720000000, 14.03], [1224806400000, 13.77], [1225065600000, 13.16], [1225152000000, 14.27], [1225238400000, 14.94], [1225324800000, 15.86], [1225411200000, 15.37], [1225670400000, 15.28], [1225756800000, 15.86], [1225843200000, 14.76], [1225929600000, 14.16], [1226016000000, 14.03], [1226275200000, 13.7], [1226361600000, 13.54], [1226448000000, 12.87], [1226534400000, 13.78], [1226620800000, 12.89], [1226880000000, 12.59], [1226966400000, 12.84], [1227052800000, 12.33], [1227139200000, 11.5], [1227225600000, 11.8], [1227484800000, 13.28], [1227571200000, 12.97], [1227657600000, 13.57], [1227830400000, 13.24], [1228089600000, 12.7], [1228176000000, 13.21], [1228262400000, 13.7], [1228348800000, 13.06], [1228435200000, 13.43], [1228694400000, 14.25], [1228780800000, 14.29], [1228867200000, 14.03], [1228953600000, 13.57], [1229040000000, 14.04], [1229299200000, 13.54]
14+
[1220832000000, 22.56], [1220918400000, 21.67], [1221004800000, 21.66], [1221091200000, 21.81], [1221177600000, 21.28], [1221436800000, 20.05], [1221523200000, 19.98], [1221609600000, 18.26], [1221696000000, 19.16], [1221782400000, 20.13], [1222041600000, 18.72], [1222128000000, 18.12], [1222214400000, 18.39], [1222300800000, 18.85], [1222387200000, 18.32], [1222646400000, 15.04], [1222732800000, 16.24], [1222819200000, 15.59], [1222905600000, 14.3], [1222992000000, 13.87], [1223251200000, 14.02], [1223337600000, 12.74], [1223424000000, 12.83], [1223510400000, 12.68], [1223596800000, 13.8], [1223856000000, 15.75], [1223942400000, 14.87], [1224028800000, 13.99], [1224115200000, 14.56], [1224201600000, 13.91], [1224460800000, 14.06], [1224547200000, 13.07], [1224633600000, 13.84], [1224720000000, 14.03], [1224806400000, 13.77], [1225065600000, 13.16], [1225152000000, 14.27], [1225238400000, 14.94], [1225324800000, 15.86], [1225411200000, 15.37], [1225670400000, 15.28], [1225756800000, 15.86], [1225843200000, 14.76], [1225929600000, 14.16], [1226016000000, 14.03], [1226275200000, 13.7], [1226361600000, 13.54], [1226448000000, 12.87], [1226534400000, 13.78], [1226620800000, 12.89], [1226880000000, 12.59], [1226966400000, 12.84], [1227052800000, 12.33], [1227139200000, 11.5], [1227225600000, 11.8], [1227484800000, 13.28], [1227571200000, 12.97], [1227657600000, 13.57], [1227830400000, 13.24], [1228089600000, 12.7], [1228176000000, 13.21], [1228262400000, 13.7], [1228348800000, 13.06], [1228435200000, 13.43], [1228694400000, 14.25], [1228780800000, 14.29], [1228867200000, 14.03], [1228953600000, 13.57], [1229040000000, 14.04], [1229299200000, 13.54]
1515
];
1616

1717
const config = {
18-
rangeSelector: {
19-
selected: 1
20-
},
21-
title: {
22-
text: 'AAPL Stock Price'
23-
},
24-
series: [{
25-
name: 'AAPL',
26-
data: data,
27-
tooltip: {
28-
valueDecimals: 2
29-
}
30-
}]
18+
rangeSelector: {
19+
selected: 1
20+
},
21+
title: {
22+
text: 'AAPL Stock Price'
23+
},
24+
series: [{
25+
name: 'AAPL',
26+
data: data,
27+
tooltip: {
28+
valueDecimals: 2
29+
}
30+
}]
3131
};
3232

3333
ReactDOM.render(
34-
<ReactHighstock config={config} />,
35-
document.getElementById('test')
34+
<ReactHighstock config={config}/>,
35+
document.getElementById('test')
3636
);
3737

3838
ReactDOM.render(
39-
<PrismCode component="pre" className="language-javascript">{require("!!raw-loader!./highstock.jsx")}</PrismCode>,
40-
document.getElementById('code-js')
39+
<PrismCode component="pre" className="language-javascript">{require("!!raw-loader!./highstock.jsx")}</PrismCode>,
40+
document.getElementById('code-js')
4141
);
4242

4343
ReactDOM.render(
44-
<PrismCode component="pre" className="language-markup">{require("raw-loader!./highstock.html")}</PrismCode>,
45-
document.getElementById('code-html')
44+
<PrismCode component="pre" className="language-markup">{require("raw-loader!./highstock.html")}</PrismCode>,
45+
document.getElementById('code-html')
4646
);
4747

4848
require("file-loader?name=[name].[ext]!./highstock.html");

demo/src/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const config = {
2020
};
2121

2222
ReactDOM.render(
23-
<ReactHighcharts config={config} />,
23+
<ReactHighcharts config={config}/>,
2424
document.getElementById('test')
2525
);
2626
ReactDOM.render(

demo/src/more.jsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@ import './tomorrow.css'
2121

2222

2323
var config = {
24-
chart: {
25-
polar: true
26-
},
27-
xAxis: {
28-
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
29-
},
30-
series: [{
31-
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
32-
}]
24+
chart: {
25+
polar: true
26+
},
27+
xAxis: {
28+
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
29+
},
30+
series: [{
31+
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
32+
}]
3333
};
3434

3535
ReactDOM.render(
36-
<ReactHighcharts config={config}> </ReactHighcharts>,
37-
document.getElementById('test')
36+
<ReactHighcharts config={config}> </ReactHighcharts>,
37+
document.getElementById('test')
3838
);
3939
ReactDOM.render(
40-
<PrismCode component="pre" className="language-javascript">{require("!!raw-loader!./more.jsx")}</PrismCode>,
41-
document.getElementById('code-js')
40+
<PrismCode component="pre" className="language-javascript">{require("!!raw-loader!./more.jsx")}</PrismCode>,
41+
document.getElementById('code-js')
4242
);
4343
ReactDOM.render(
44-
<PrismCode component="pre" className="language-markup">{require("raw-loader!./more.html")}</PrismCode>,
45-
document.getElementById('code-html')
44+
<PrismCode component="pre" className="language-markup">{require("raw-loader!./more.html")}</PrismCode>,
45+
document.getElementById('code-html')
4646
);

0 commit comments

Comments
 (0)