Skip to content

Commit cf4dda0

Browse files
depth chart is implemented using react-native-highchart.
1 parent 1c50de9 commit cf4dda0

File tree

5 files changed

+1035
-483
lines changed

5 files changed

+1035
-483
lines changed

DepthChart/index.html

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<!DOCTYPE html>
2+
3+
<html lang="en">
4+
5+
<head>
6+
<meta charset="utf-8">
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
<meta name="description" content="Chromelink Solutions">
10+
<meta name="Chromelink Solutions" content="">
11+
<title>chartjs vault
12+
</title>
13+
14+
<script src="js/highcharts.js"></script>
15+
16+
<body>
17+
<div id="container" style="margin: 0px auto; width: 100%; height: 500px;"></div>
18+
19+
<script>
20+
21+
window.addEventListener("error", handleWindowError); function handleWindowError(e) {alert(e.error)}
22+
23+
function Drawchart(){
24+
25+
Highcharts.chart('container', {
26+
chart: {
27+
type: 'column'
28+
},
29+
title: {
30+
text: 'Browser market shares. January, 2018'
31+
},
32+
subtitle: {
33+
text: 'Click the columns to view versions. Source: <a href="http://statcounter.com" target="_blank">statcounter.com</a>'
34+
},
35+
xAxis: {
36+
type: 'category'
37+
},
38+
yAxis: {
39+
title: {
40+
text: 'Total percent market share'
41+
}
42+
43+
},
44+
legend: {
45+
enabled: false
46+
},
47+
plotOptions: {
48+
series: {
49+
borderWidth: 0,
50+
dataLabels: {
51+
enabled: true,
52+
format: '{point.y:.1f}%'
53+
}
54+
}
55+
},
56+
57+
tooltip: {
58+
headerFormat: '<span style="font-size:11px">{series.name}</span><br>',
59+
pointFormat: '<span style="color:{point.color}">{point.name}</span>: <b>{point.y:.2f}%</b> of total<br/>'
60+
},
61+
62+
"series": [
63+
{
64+
"name": "Browsers",
65+
"colorByPoint": true,
66+
"data": [
67+
{
68+
"name": "Chrome",
69+
"y": 62.74,
70+
"drilldown": "Chrome"
71+
},
72+
{
73+
"name": "Firefox",
74+
"y": 10.57,
75+
"drilldown": "Firefox"
76+
},
77+
{
78+
"name": "Internet Explorer",
79+
"y": 7.23,
80+
"drilldown": "Internet Explorer"
81+
}
82+
]
83+
}
84+
]
85+
});
86+
}
87+
</script>
88+
89+
90+
91+
92+
</body>
93+
94+
</html>

0 commit comments

Comments
 (0)