-
Notifications
You must be signed in to change notification settings - Fork 18
/
example-freeboard.json
184 lines (184 loc) · 6 KB
/
example-freeboard.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
{
"version": 1,
"allow_edit": true,
"plugins": [],
"panes": [
{
"title": "Line 1",
"width": 1,
"row": {
"3": 1,
"4": 1,
"5": 1,
"6": 1
},
"col": {
"3": 1,
"4": 1,
"5": 1,
"6": 2
},
"col_width": 1,
"widgets": [
{
"type": "jqPlotWidget",
"settings": {
"id": "chart1",
"data": "[[1,2,3]]",
"chartHeight": 300,
"chartWidth": 300,
"height": 5
}
}
]
},
{
"title": "Line 2",
"width": 1,
"row": {
"3": 1,
"4": 1,
"5": 1,
"6": 1
},
"col": {
"3": 2,
"4": 2,
"5": 2,
"6": 3
},
"col_width": 1,
"widgets": [
{
"type": "jqPlotWidget",
"settings": {
"id": "chart2",
"data": "[[3,7,9,1,4,6,8,2,5]]",
"options": "{\n series: [ {color:'orange'} ]\n}",
"chartHeight": 300,
"chartWidth": 300,
"height": 5
}
}
]
},
{
"title": "bar (horizontal)",
"width": 1,
"row": {
"3": 1,
"4": 1,
"5": 1,
"6": 1
},
"col": {
"3": 3,
"4": 3,
"5": 3,
"6": 4
},
"col_width": 1,
"widgets": [
{
"type": "jqPlotWidget",
"settings": {
"id": "chart3",
"data": "[[3,7,9,1,4,6,8,2,5]]",
"options": "{\n seriesDefaults: {\n renderer:$.jqplot.BarRenderer,\n // Show point labels to the right ('e'ast) of each bar.\n // edgeTolerance of -15 allows labels flow outside the grid\n // up to 15 pixels. If they flow out more than that, they \n // will be hidden.\n pointLabels: { show: true, location: 'e', edgeTolerance: -15 },\n // Rotate the bar shadow as if bar is lit from top right.\n shadowAngle: 135,\n // Here's where we tell the chart it is oriented horizontally.\n rendererOptions: {\n barDirection: 'horizontal'\n }\n },\n axes: {\n yaxis: {\n renderer: $.jqplot.CategoryAxisRenderer\n }\n }\n }",
"chartHeight": 300,
"chartWidth": 300,
"height": 5
}
}
]
},
{
"title": "bar (vertical)",
"width": 1,
"row": {
"3": 1,
"4": 1,
"5": 1,
"6": 1
},
"col": {
"3": 3,
"4": 4,
"5": 4,
"6": 5
},
"col_width": 1,
"widgets": [
{
"type": "jqPlotWidget",
"settings": {
"id": "chart4",
"data": "[[1,2,3]]",
"options": "{\n series: [ {color:'red'} ],\n seriesDefaults: {\n renderer:$.jqplot.BarRenderer,\n // Show point labels to the right ('e'ast) of each bar.\n // edgeTolerance of -15 allows labels flow outside the grid\n // up to 15 pixels. If they flow out more than that, they \n // will be hidden.\n pointLabels: { show: true, location: 'e', edgeTolerance: -15 },\n // Rotate the bar shadow as if bar is lit from top right.\n shadowAngle: 135,\n // Here's where we tell the chart it is oriented horizontally.\n rendererOptions: {\n barDirection: 'vertical'\n }\n },\n axes: {\n yaxis: {\n renderer: $.jqplot.CategoryAxisRenderer\n }\n }\n }",
"chartHeight": 300,
"chartWidth": 300,
"height": 5
}
}
]
},
{
"title": "Pie",
"width": 1,
"row": {
"3": 1,
"5": 13,
"6": 1
},
"col": {
"3": 3,
"5": 1,
"6": 6
},
"col_width": 2,
"widgets": [
{
"type": "jqPlotWidget",
"settings": {
"id": "chart5",
"data": "[[\n ['Heavy Industry', 12],['Retail', 9], ['Light Industry', 14], \n ['Out of home', 16],['Commuting', 7], ['Orientation', 9]\n ]]",
"options": "{ \n seriesDefaults: {\n // Make this a pie chart.\n renderer: $.jqplot.PieRenderer, \n rendererOptions: {\n // Put data labels on the pie slices.\n // By default, labels show the percentage of the slice.\n showDataLabels: true\n }\n }, \n legend: { show: true, location: 'e' }\n }",
"chartHeight": 300,
"chartWidth": 600,
"height": 5
}
}
]
},
{
"title": "line style options",
"width": 1,
"row": {
"3": 13,
"4": 13,
"5": 13
},
"col": {
"3": 2,
"4": 3,
"5": 3
},
"col_width": 2,
"widgets": [
{
"type": "jqPlotWidget",
"settings": {
"id": "chart6",
"data": " var cosPoints = [];\n for (var i=0; i<2*Math.PI; i+=0.4){ \n cosPoints.push([i, Math.cos(i)]); \n }\n \n var sinPoints = []; \n for (var i=0; i<2*Math.PI; i+=0.4){ \n sinPoints.push([i, 2*Math.sin(i-.8)]); \n }\n \n var powPoints1 = []; \n for (var i=0; i<2*Math.PI; i+=0.4) { \n powPoints1.push([i, 2.5 + Math.pow(i/4, 2)]); \n }\n \n var powPoints2 = []; \n for (var i=0; i<2*Math.PI; i+=0.4) { \n powPoints2.push([i, -2.5 - Math.pow(i/4, 2)]); \n } \n\n\n\n\nreturn [cosPoints, sinPoints, powPoints1, powPoints2];",
"options": "",
"chartHeight": 300,
"chartWidth": 600,
"height": 5
}
}
]
}
],
"datasources": [],
"columns": 5
}