@operato/scene-chartjs 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +21 -0
  3. package/README.md +21 -0
  4. package/assets/bar-chart.png +0 -0
  5. package/assets/doughnut-chart.png +0 -0
  6. package/assets/horizontal-bar-chart.png +0 -0
  7. package/assets/line-chart.png +0 -0
  8. package/assets/mixed-chart.png +0 -0
  9. package/assets/pie-chart.png +0 -0
  10. package/assets/polar-area-chart.png +0 -0
  11. package/assets/radar-chart.png +0 -0
  12. package/demo/bar.html +266 -0
  13. package/demo/chartjs.html +73 -0
  14. package/demo/index.html +547 -0
  15. package/demo/legend.html +267 -0
  16. package/demo/things-scene-chartjs.html +7 -0
  17. package/dist/chartjs.d.ts +27 -0
  18. package/dist/chartjs.js +109 -0
  19. package/dist/chartjs.js.map +1 -0
  20. package/dist/config-converter.d.ts +1 -0
  21. package/dist/config-converter.js +343 -0
  22. package/dist/config-converter.js.map +1 -0
  23. package/dist/editors/index.d.ts +5 -0
  24. package/dist/editors/index.js +11 -0
  25. package/dist/editors/index.js.map +1 -0
  26. package/dist/editors/property-editor-chartjs-abstract.d.ts +44 -0
  27. package/dist/editors/property-editor-chartjs-abstract.js +250 -0
  28. package/dist/editors/property-editor-chartjs-abstract.js.map +1 -0
  29. package/dist/editors/property-editor-chartjs-hbar.d.ts +9 -0
  30. package/dist/editors/property-editor-chartjs-hbar.js +160 -0
  31. package/dist/editors/property-editor-chartjs-hbar.js.map +1 -0
  32. package/dist/editors/property-editor-chartjs-mixed.d.ts +20 -0
  33. package/dist/editors/property-editor-chartjs-mixed.js +193 -0
  34. package/dist/editors/property-editor-chartjs-mixed.js.map +1 -0
  35. package/dist/editors/property-editor-chartjs-multi-series-abstract.d.ts +31 -0
  36. package/dist/editors/property-editor-chartjs-multi-series-abstract.js +373 -0
  37. package/dist/editors/property-editor-chartjs-multi-series-abstract.js.map +1 -0
  38. package/dist/editors/property-editor-chartjs-pie.d.ts +14 -0
  39. package/dist/editors/property-editor-chartjs-pie.js +70 -0
  40. package/dist/editors/property-editor-chartjs-pie.js.map +1 -0
  41. package/dist/editors/property-editor-chartjs-radar.d.ts +10 -0
  42. package/dist/editors/property-editor-chartjs-radar.js +42 -0
  43. package/dist/editors/property-editor-chartjs-radar.js.map +1 -0
  44. package/dist/editors/property-editor-chartjs-styles.d.ts +1 -0
  45. package/dist/editors/property-editor-chartjs-styles.js +165 -0
  46. package/dist/editors/property-editor-chartjs-styles.js.map +1 -0
  47. package/dist/editors/property-editor-chartjs.d.ts +14 -0
  48. package/dist/editors/property-editor-chartjs.js +83 -0
  49. package/dist/editors/property-editor-chartjs.js.map +1 -0
  50. package/dist/index.d.ts +5 -0
  51. package/dist/index.js +8 -0
  52. package/dist/index.js.map +1 -0
  53. package/dist/ox-chart.d.ts +20 -0
  54. package/dist/ox-chart.js +137 -0
  55. package/dist/ox-chart.js.map +1 -0
  56. package/dist/plugins/chart-series-highlight.d.ts +5 -0
  57. package/dist/plugins/chart-series-highlight.js +37 -0
  58. package/dist/plugins/chart-series-highlight.js.map +1 -0
  59. package/dist/plugins/chartjs-plugin-data-binder.d.ts +5 -0
  60. package/dist/plugins/chartjs-plugin-data-binder.js +111 -0
  61. package/dist/plugins/chartjs-plugin-data-binder.js.map +1 -0
  62. package/helps/scene/component/chartjs.ko.md +332 -0
  63. package/helps/scene/component/chartjs.md +333 -0
  64. package/helps/scene/component/chartjs.zh.md +331 -0
  65. package/helps/scene/images/chart-bar-01.png +0 -0
  66. package/helps/scene/images/chart-bar-02.png +0 -0
  67. package/helps/scene/images/chart-bar-03.png +0 -0
  68. package/helps/scene/images/chart-bar-08.png +0 -0
  69. package/helps/scene/images/chart-bar-12.png +0 -0
  70. package/helps/scene/images/chart-data-01.png +0 -0
  71. package/helps/scene/images/chart-data-04.png +0 -0
  72. package/helps/scene/images/chart-doughnut-01.png +0 -0
  73. package/helps/scene/images/chart-horizontal-bar-01.png +0 -0
  74. package/helps/scene/images/chart-line-01.png +0 -0
  75. package/helps/scene/images/chart-mix-01.png +0 -0
  76. package/helps/scene/images/chart-mix-02.png +0 -0
  77. package/helps/scene/images/chart-pie-01.png +0 -0
  78. package/helps/scene/images/chart-polar-01.png +0 -0
  79. package/helps/scene/images/chart-radar-01.png +0 -0
  80. package/package.json +78 -0
  81. package/src/chartjs.ts +134 -0
  82. package/src/config-converter.ts +401 -0
  83. package/src/editors/index.ts +11 -0
  84. package/src/editors/property-editor-chartjs-abstract.ts +301 -0
  85. package/src/editors/property-editor-chartjs-hbar.ts +163 -0
  86. package/src/editors/property-editor-chartjs-mixed.ts +204 -0
  87. package/src/editors/property-editor-chartjs-multi-series-abstract.ts +393 -0
  88. package/src/editors/property-editor-chartjs-pie.ts +79 -0
  89. package/src/editors/property-editor-chartjs-radar.ts +43 -0
  90. package/src/editors/property-editor-chartjs-styles.ts +165 -0
  91. package/src/editors/property-editor-chartjs.ts +88 -0
  92. package/src/index.ts +7 -0
  93. package/src/ox-chart.ts +150 -0
  94. package/src/plugins/chart-series-highlight.ts +43 -0
  95. package/src/plugins/chartjs-plugin-data-binder.ts +138 -0
  96. package/src/scene-chart.d.ts +152 -0
  97. package/templates/bar-chart.js +124 -0
  98. package/templates/doughnut-chart.js +58 -0
  99. package/templates/horizontal-bar-chart.js +121 -0
  100. package/templates/index.js +22 -0
  101. package/templates/line-chart.js +155 -0
  102. package/templates/mixed-chart.js +152 -0
  103. package/templates/pie-chart.js +58 -0
  104. package/templates/polar-area-chart.js +92 -0
  105. package/templates/radar-chart.js +98 -0
  106. package/test/basic-test.html +61 -0
  107. package/test/index.html +20 -0
  108. package/things-scene.config.js +7 -0
  109. package/translations/en.json +5 -0
  110. package/translations/ko.json +5 -0
  111. package/translations/ms.json +5 -0
  112. package/translations/zh.json +5 -0
  113. package/tsconfig.json +22 -0
  114. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,58 @@
1
+ /*
2
+ * Copyright © HatioLab Inc. All rights reserved.
3
+ */
4
+ import icon from '../assets/doughnut-chart.png'
5
+
6
+ export default {
7
+ type: 'doughnut chart',
8
+ description: 'ChartJS - doughnut',
9
+ icon: icon,
10
+ group: 'chartAndGauge',
11
+ /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
12
+ model: {
13
+ type: 'chartjs',
14
+ top: 0,
15
+ left: 0,
16
+ width: 200,
17
+ height: 200,
18
+ chart: {
19
+ type: 'doughnut',
20
+ data: {
21
+ labels: [],
22
+ datasets: [
23
+ {
24
+ data: [],
25
+ backgroundColor: ['#FF6384', '#36A2EB', '#FFCE56'],
26
+ borderWidth: 0,
27
+ dataKey: 'value'
28
+ }
29
+ ],
30
+ labelDataKey: 'label'
31
+ },
32
+ options: {
33
+ theme: 'dark',
34
+ legend: {
35
+ display: true,
36
+ position: 'top'
37
+ },
38
+ animation: {
39
+ animateScale: true
40
+ }
41
+ }
42
+ },
43
+ data: [
44
+ {
45
+ label: 'Red',
46
+ value: 300
47
+ },
48
+ {
49
+ label: 'Blue',
50
+ value: 50
51
+ },
52
+ {
53
+ label: 'Yellow',
54
+ value: 100
55
+ }
56
+ ]
57
+ }
58
+ }
@@ -0,0 +1,121 @@
1
+ /*
2
+ * Copyright © HatioLab Inc. All rights reserved.
3
+ */
4
+ import icon from '../assets/horizontal-bar-chart.png'
5
+
6
+ export default {
7
+ type: 'horizontal bar chart',
8
+ description: 'ChartJS - horizontal barchart',
9
+ icon: icon,
10
+ group: 'chartAndGauge',
11
+ /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
12
+ model: {
13
+ type: 'chartjs',
14
+ top: 200,
15
+ left: 300,
16
+ width: 200,
17
+ height: 200,
18
+ chart: {
19
+ type: 'horizontalBar',
20
+ data: {
21
+ labels: [],
22
+ datasets: [
23
+ {
24
+ label: 'series 1',
25
+ data: [],
26
+ backgroundColor: 'rgb(66, 110, 164)',
27
+ borderColor: 'rgb(66, 110, 164)',
28
+ borderWidth: 0,
29
+ dataKey: 'value1'
30
+ },
31
+ {
32
+ label: 'series 2',
33
+ data: [],
34
+ backgroundColor: 'rgb(62, 196, 221)',
35
+ borderColor: 'rgb(62, 196, 221)',
36
+ borderWidth: 0,
37
+ dataKey: 'value2'
38
+ }
39
+ ],
40
+ labelDataKey: 'color'
41
+ },
42
+ options: {
43
+ theme: 'dark',
44
+ xGridLine: true,
45
+ yGridLine: false,
46
+ legend: {
47
+ display: true,
48
+ position: 'top'
49
+ },
50
+ scales: {
51
+ xAxes: [
52
+ {
53
+ gridLines: {
54
+ display: true
55
+ },
56
+ scaleLabel: {
57
+ labelString: '',
58
+ display: false
59
+ },
60
+ ticks: {
61
+ autoMin: true,
62
+ autoMax: true,
63
+ display: true
64
+ }
65
+ }
66
+ ],
67
+ yAxes: [
68
+ {
69
+ id: 'left',
70
+ position: 'left',
71
+ gridLines: {
72
+ display: false
73
+ },
74
+ scaleLabel: {
75
+ labelString: '',
76
+ display: false
77
+ },
78
+ ticks: {
79
+ autoMin: true,
80
+ autoMax: true,
81
+ display: true
82
+ }
83
+ }
84
+ ]
85
+ }
86
+ }
87
+ },
88
+ data: [
89
+ {
90
+ color: 'Red',
91
+ value1: 12,
92
+ value2: 24
93
+ },
94
+ {
95
+ color: 'Blue',
96
+ value1: 19,
97
+ value2: 9
98
+ },
99
+ {
100
+ color: 'Yellow',
101
+ value1: 3,
102
+ value2: 6
103
+ },
104
+ {
105
+ color: 'Green',
106
+ value1: 5,
107
+ value2: 2
108
+ },
109
+ {
110
+ color: 'Purple',
111
+ value1: 2,
112
+ value2: 4
113
+ },
114
+ {
115
+ color: 'Orange',
116
+ value1: 3,
117
+ value2: 1
118
+ }
119
+ ]
120
+ }
121
+ }
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright © HatioLab Inc. All rights reserved.
3
+ */
4
+ import barChart from './bar-chart'
5
+ import doughnutChart from './doughnut-chart'
6
+ import horizontalBarChart from './horizontal-bar-chart'
7
+ import lineChart from './line-chart'
8
+ import mixedChart from './mixed-chart'
9
+ import pieChart from './pie-chart'
10
+ import polarAreaChart from './polar-area-chart'
11
+ import radarChart from './radar-chart'
12
+
13
+ export default [
14
+ barChart,
15
+ horizontalBarChart,
16
+ lineChart,
17
+ mixedChart,
18
+ pieChart,
19
+ doughnutChart,
20
+ polarAreaChart,
21
+ radarChart
22
+ ]
@@ -0,0 +1,155 @@
1
+ /*
2
+ * Copyright © HatioLab Inc. All rights reserved.
3
+ */
4
+ import icon from '../assets/line-chart.png'
5
+
6
+ export default {
7
+ type: 'line chart',
8
+ description: 'ChartJS - line chart',
9
+ icon: icon,
10
+ group: 'chartAndGauge',
11
+ /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
12
+ model: {
13
+ type: 'chartjs',
14
+ top: 0,
15
+ left: 0,
16
+ width: 200,
17
+ height: 200,
18
+ chart: {
19
+ type: 'line',
20
+ data: {
21
+ labels: [],
22
+ datasets: [
23
+ {
24
+ label: 'series 1',
25
+ type: 'line',
26
+ backgroundColor: 'rgb(66, 110, 164)',
27
+ borderColor: 'rgb(66, 110, 164)',
28
+ borderWidth: 3,
29
+ pointBorderColor: 'rgb(66, 110, 164)',
30
+ pointBorderWidth: 3,
31
+ pointBackgroundColor: 'rgba(255,255,255,1)',
32
+ lineTension: 0.4,
33
+ yAxisID: 'left',
34
+ data: [],
35
+ dataKey: 'value1',
36
+ fill: false
37
+ },
38
+ {
39
+ label: 'series 2',
40
+ type: 'line',
41
+ backgroundColor: 'rgb(62, 196, 221)',
42
+ borderColor: 'rgb(62, 196, 221)',
43
+ borderWidth: 3,
44
+ pointBorderColor: 'rgb(62, 196, 221)',
45
+ pointBorderWidth: 3,
46
+ pointBackgroundColor: 'rgba(255,255,255,1)',
47
+ lineTension: 0.4,
48
+ yAxisID: 'left',
49
+ data: [],
50
+ dataKey: 'value2',
51
+ fill: false
52
+ }
53
+ ],
54
+ labelDataKey: 'data'
55
+ },
56
+ options: {
57
+ theme: 'dark',
58
+ xGridLine: false,
59
+ yGridLine: true,
60
+ legend: {
61
+ display: true,
62
+ position: 'top'
63
+ },
64
+ scales: {
65
+ xAxes: [
66
+ {
67
+ gridLines: {
68
+ display: false
69
+ },
70
+ scaleLabel: {
71
+ labelString: '',
72
+ display: false
73
+ },
74
+ ticks: {
75
+ display: true
76
+ }
77
+ }
78
+ ],
79
+ yAxes: [
80
+ {
81
+ id: 'left',
82
+ position: 'left',
83
+ gridLines: {
84
+ display: true
85
+ },
86
+ scaleLabel: {
87
+ labelString: '',
88
+ display: false
89
+ },
90
+ ticks: {
91
+ autoMin: true,
92
+ autoMax: true,
93
+ display: true
94
+ }
95
+ },
96
+ {
97
+ id: 'right',
98
+ position: 'right',
99
+ display: false,
100
+ gridLines: {
101
+ display: false
102
+ },
103
+ scaleLabel: {
104
+ labelString: '',
105
+ display: false
106
+ },
107
+ ticks: {
108
+ autoMin: true,
109
+ autoMax: true,
110
+ display: true
111
+ }
112
+ }
113
+ ]
114
+ }
115
+ }
116
+ },
117
+ data: [
118
+ {
119
+ data: 'Data 1',
120
+ value1: 20,
121
+ value2: 60
122
+ },
123
+ {
124
+ data: 'Data 2',
125
+ value1: 30,
126
+ value2: 10
127
+ },
128
+ {
129
+ data: 'Data 3',
130
+ value1: 80,
131
+ value2: 40
132
+ },
133
+ {
134
+ data: 'Data 4',
135
+ value1: 20,
136
+ value2: 30
137
+ },
138
+ {
139
+ data: 'Data 5',
140
+ value1: 40,
141
+ value2: 80
142
+ },
143
+ {
144
+ data: 'Data 6',
145
+ value1: 10,
146
+ value2: 30
147
+ },
148
+ {
149
+ data: 'Data 7',
150
+ value1: 60,
151
+ value2: 20
152
+ }
153
+ ]
154
+ }
155
+ }
@@ -0,0 +1,152 @@
1
+ /*
2
+ * Copyright © HatioLab Inc. All rights reserved.
3
+ */
4
+ import icon from '../assets/mixed-chart.png'
5
+
6
+ export default {
7
+ type: 'mixed chart',
8
+ description: 'ChartJS - mixed chart',
9
+ icon: icon,
10
+ group: 'chartAndGauge',
11
+ /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
12
+ model: {
13
+ type: 'chartjs',
14
+ top: 0,
15
+ left: 0,
16
+ width: 200,
17
+ height: 200,
18
+ chart: {
19
+ type: 'bar',
20
+ subType: 'mixed',
21
+ data: {
22
+ labels: [],
23
+ datasets: [
24
+ {
25
+ type: 'line',
26
+ label: 'series 1',
27
+ backgroundColor: 'rgb(66, 110, 164)',
28
+ borderColor: 'rgb(66, 110, 164)',
29
+ borderWidth: 3,
30
+ pointBorderColor: 'rgb(66, 110, 164)',
31
+ pointBorderWidth: 3,
32
+ pointBackgroundColor: 'rgba(255,255,255,1)',
33
+ lineTension: 0.4,
34
+ fill: false,
35
+ yAxisID: 'left',
36
+ data: [],
37
+ dataKey: 'value1'
38
+ },
39
+ {
40
+ type: 'bar',
41
+ label: 'series 2',
42
+ backgroundColor: 'rgb(62, 196, 221)',
43
+ borderColor: 'rgb(62, 196, 221)',
44
+ borderWidth: 0,
45
+ yAxisID: 'right',
46
+ data: [],
47
+ dataKey: 'value2'
48
+ }
49
+ ],
50
+ labelDataKey: 'data'
51
+ },
52
+ options: {
53
+ theme: 'dark',
54
+ multiAxis: true,
55
+ xGridLine: false,
56
+ yGridLine: true,
57
+ legend: {
58
+ display: true,
59
+ position: 'top'
60
+ },
61
+ scales: {
62
+ xAxes: [
63
+ {
64
+ gridLines: {
65
+ display: false
66
+ },
67
+ scaleLabel: {
68
+ labelString: '',
69
+ display: false
70
+ },
71
+ ticks: {
72
+ display: true
73
+ }
74
+ }
75
+ ],
76
+ yAxes: [
77
+ {
78
+ position: 'left',
79
+ id: 'left',
80
+ gridLines: {
81
+ display: true
82
+ },
83
+ scaleLabel: {
84
+ labelString: '',
85
+ display: false
86
+ },
87
+ ticks: {
88
+ autoMin: true,
89
+ autoMax: true,
90
+ display: true
91
+ }
92
+ },
93
+ {
94
+ id: 'right',
95
+ position: 'right',
96
+ display: true,
97
+ gridLines: {
98
+ display: false
99
+ },
100
+ scaleLabel: {
101
+ labelString: '',
102
+ display: false
103
+ },
104
+ ticks: {
105
+ autoMin: true,
106
+ autoMax: true,
107
+ display: true
108
+ }
109
+ }
110
+ ]
111
+ }
112
+ }
113
+ },
114
+ data: [
115
+ {
116
+ data: 'Data 1',
117
+ value1: 20,
118
+ value2: 60
119
+ },
120
+ {
121
+ data: 'Data 2',
122
+ value1: 30,
123
+ value2: 10
124
+ },
125
+ {
126
+ data: 'Data 3',
127
+ value1: 80,
128
+ value2: 40
129
+ },
130
+ {
131
+ data: 'Data 4',
132
+ value1: 20,
133
+ value2: 30
134
+ },
135
+ {
136
+ data: 'Data 5',
137
+ value1: 40,
138
+ value2: 80
139
+ },
140
+ {
141
+ data: 'Data 6',
142
+ value1: 10,
143
+ value2: 30
144
+ },
145
+ {
146
+ data: 'Data 7',
147
+ value1: 60,
148
+ value2: 20
149
+ }
150
+ ]
151
+ }
152
+ }
@@ -0,0 +1,58 @@
1
+ /*
2
+ * Copyright © HatioLab Inc. All rights reserved.
3
+ */
4
+ import icon from '../assets/pie-chart.png'
5
+
6
+ export default {
7
+ type: 'pie chart',
8
+ description: 'ChartJS - pie chart',
9
+ icon: icon,
10
+ group: 'chartAndGauge',
11
+ /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
12
+ model: {
13
+ type: 'chartjs',
14
+ top: 0,
15
+ left: 0,
16
+ width: 200,
17
+ height: 200,
18
+ chart: {
19
+ type: 'pie',
20
+ data: {
21
+ labels: [],
22
+ datasets: [
23
+ {
24
+ data: [],
25
+ backgroundColor: ['#FF6384', '#36A2EB', '#FFCE56'],
26
+ borderWidth: 0,
27
+ dataKey: 'value'
28
+ }
29
+ ],
30
+ labelDataKey: 'label'
31
+ },
32
+ options: {
33
+ theme: 'dark',
34
+ legend: {
35
+ display: true,
36
+ position: 'top'
37
+ },
38
+ animation: {
39
+ animateScale: true
40
+ }
41
+ }
42
+ },
43
+ data: [
44
+ {
45
+ label: 'A',
46
+ value: 80
47
+ },
48
+ {
49
+ label: 'B',
50
+ value: 15
51
+ },
52
+ {
53
+ label: 'C',
54
+ value: 15
55
+ }
56
+ ]
57
+ }
58
+ }
@@ -0,0 +1,92 @@
1
+ /*
2
+ * Copyright © HatioLab Inc. All rights reserved.
3
+ */
4
+ import icon from '../assets/polar-area-chart.png'
5
+
6
+ export default {
7
+ type: 'polar area chart',
8
+ description: 'ChartJS - ploar area chart',
9
+ icon: icon,
10
+ group: 'chartAndGauge',
11
+ /* line|shape|textAndMedia|chartAndGauge|table|container|dataSource|IoT|3D|warehouse|form|etc */
12
+ model: {
13
+ type: 'chartjs',
14
+ top: 0,
15
+ left: 0,
16
+ width: 200,
17
+ height: 200,
18
+ chart: {
19
+ type: 'polarArea',
20
+ data: {
21
+ labels: [],
22
+ datasets: [
23
+ {
24
+ label: 'My First dataset',
25
+ backgroundColor: [
26
+ 'rgba(248, 42, 18, 1)',
27
+ 'rgba(255,99,132,1)',
28
+ 'rgba(9, 64, 169, 1)',
29
+ 'rgba(24, 185, 87, 1)',
30
+ 'rgba(216, 100, 19, 1)',
31
+ 'rgba(82, 8, 99, 1)',
32
+ 'rgba(225, 102, 234, 1)'
33
+ ],
34
+ borderColor: 'rgba(179,181,198,1)',
35
+ borderWidth: 0,
36
+ data: [],
37
+ dataKey: 'rate1'
38
+ }
39
+ ],
40
+ labelDataKey: 'hobby'
41
+ },
42
+ options: {
43
+ theme: 'dark',
44
+ legend: {
45
+ display: true,
46
+ position: 'top'
47
+ },
48
+ scale: {
49
+ ticks: {},
50
+ pointLabels: {}
51
+ }
52
+ }
53
+ },
54
+ data: [
55
+ {
56
+ hobby: 'Eating',
57
+ rate1: 65,
58
+ rate2: 28
59
+ },
60
+ {
61
+ hobby: 'Drinking',
62
+ rate1: 59,
63
+ rate2: 48
64
+ },
65
+ {
66
+ hobby: 'Sleeping',
67
+ rate1: 90,
68
+ rate2: 40
69
+ },
70
+ {
71
+ hobby: 'Designing',
72
+ rate1: 81,
73
+ rate2: 19
74
+ },
75
+ {
76
+ hobby: 'Coding',
77
+ rate1: 56,
78
+ rate2: 96
79
+ },
80
+ {
81
+ hobby: 'Cycling',
82
+ rate1: 55,
83
+ rate2: 27
84
+ },
85
+ {
86
+ hobby: 'Running',
87
+ rate1: 40,
88
+ rate2: 100
89
+ }
90
+ ]
91
+ }
92
+ }