Calendar chart Since 0.7.0
Show activity over the course of a long span of time, such as months or years.
Usage
To use this component in a Nunjucks template you would add the following (assumes you've loaded OI Lume Viz into componentNamespace: 'oi'
):
{% comp 'oi.chart.calendar', { "config": config } %}{% endcomp %}
where config
is replaced by an object that contains some or all of these variables:
data
- Either a reference to a CSV file in the Lume site or an array of rows with named attributescolumns
- As with many of the visualisation types you can optionally add virtual columns.colours
- Define some visualisation-specific named colours.value
- The title of the column that will be used to set the colour of the day. This can be a hex code or a number if used withscale
.key
- The title of the column that contains the dates. These should be formatted in ISO8601 format e.g. "2024-02-06"scale
- A colour scale to use to colour the days based on thevalue
.min
- Used withscale
andmax
to define the colour scale.max
- Used withscale
andmin
to define the colour scale.tooltip
- This is to add tooltips to days. Either provide the name of an existing/virtual column in the data or construct one using string templates.order
- Set the order of the years to eitherchronological
(earliest year first) orreverse
(latest year first).startofweek
- Set the first day of the week. Use0
for Sunday,1
for Monday etc.attribution
- Add a line of attribution text under the visualisation.
Examples
- Basic calendar chart
- Colour using a defined scale
- Add a tooltip
- Reverse the order of the years
- Set the first day of the week
- Add a legend
- Limit rows used
1. Basic calendar chart§
This is a basic calendar chart showing a dataset with daily data.
This example was made with config
:
data:
- date: '2021-10-04'
colour: '#FF6700'
- date: '2021-10-06'
colour: '#FF6700'
- date: '2021-10-18'
colour: '#FF6700'
- date: '2021-10-19'
colour: '#FF6700'
- date: '2021-10-20'
colour: '#FF6700'
- date: '2021-11-04'
colour: '#FF6700'
- date: '2021-11-22'
colour: '#FF6700'
- date: '2021-12-22'
colour: '#FF6700'
- date: '2022-01-04'
colour: '#FF6700'
- date: '2022-01-05'
colour: '#FF6700'
- date: '2022-01-18'
colour: '#FF6700'
- date: '2022-01-20'
colour: '#FF6700'
- date: '2022-01-23'
colour: '#FF6700'
- date: '2022-01-24'
colour: '#FF6700'
- date: '2022-01-26'
colour: '#FF6700'
- date: '2022-02-03'
colour: '#FF6700'
- date: '2022-02-16'
colour: '#FF6700'
- date: '2022-02-21'
colour: '#FF6700'
- date: '2022-02-28'
colour: '#FF6700'
- date: '2022-03-02'
colour: '#FF6700'
- date: '2022-03-07'
colour: '#FF6700'
- date: '2022-03-09'
colour: '#FF6700'
- date: '2022-03-10'
colour: '#FF6700'
- date: '2022-03-11'
colour: '#FF6700'
- date: '2022-03-15'
colour: '#FF6700'
- date: '2022-03-16'
colour: '#FF6700'
- date: '2022-03-17'
colour: '#FF6700'
- date: '2022-03-24'
colour: '#FF6700'
- date: '2022-03-28'
colour: '#FF6700'
- date: '2022-03-31'
colour: '#FF6700'
- date: '2022-04-05'
colour: '#FF6700'
- date: '2022-04-06'
colour: '#FF6700'
- date: '2022-04-12'
colour: '#FF6700'
- date: '2022-05-04'
colour: '#FF6700'
- date: '2022-05-05'
colour: '#FF6700'
- date: '2022-05-11'
colour: '#FF6700'
- date: '2022-05-18'
colour: '#FF6700'
- date: '2022-06-04'
colour: '#FF6700'
- date: '2022-06-07'
colour: '#FF6700'
- date: '2022-06-15'
colour: '#FF6700'
- date: '2022-06-20'
colour: '#FF6700'
- date: '2022-06-28'
colour: '#FF6700'
value: colour
key: date
{
"data": [{
"date": "2021-10-04",
"colour": "#FF6700"
},{
"date": "2021-10-06",
"colour": "#FF6700"
},{
"date": "2021-10-18",
"colour": "#FF6700"
},{
"date": "2021-10-19",
"colour": "#FF6700"
},{
"date": "2021-10-20",
"colour": "#FF6700"
},{
"date": "2021-11-04",
"colour": "#FF6700"
},{
"date": "2021-11-22",
"colour": "#FF6700"
},{
"date": "2021-12-22",
"colour": "#FF6700"
},{
"date": "2022-01-04",
"colour": "#FF6700"
},{
"date": "2022-01-05",
"colour": "#FF6700"
},{
"date": "2022-01-18",
"colour": "#FF6700"
},{
"date": "2022-01-20",
"colour": "#FF6700"
},{
"date": "2022-01-23",
"colour": "#FF6700"
},{
"date": "2022-01-24",
"colour": "#FF6700"
},{
"date": "2022-01-26",
"colour": "#FF6700"
},{
"date": "2022-02-03",
"colour": "#FF6700"
},{
"date": "2022-02-16",
"colour": "#FF6700"
},{
"date": "2022-02-21",
"colour": "#FF6700"
},{
"date": "2022-02-28",
"colour": "#FF6700"
},{
"date": "2022-03-02",
"colour": "#FF6700"
},{
"date": "2022-03-07",
"colour": "#FF6700"
},{
"date": "2022-03-09",
"colour": "#FF6700"
},{
"date": "2022-03-10",
"colour": "#FF6700"
},{
"date": "2022-03-11",
"colour": "#FF6700"
},{
"date": "2022-03-15",
"colour": "#FF6700"
},{
"date": "2022-03-16",
"colour": "#FF6700"
},{
"date": "2022-03-17",
"colour": "#FF6700"
},{
"date": "2022-03-24",
"colour": "#FF6700"
},{
"date": "2022-03-28",
"colour": "#FF6700"
},{
"date": "2022-03-31",
"colour": "#FF6700"
},{
"date": "2022-04-05",
"colour": "#FF6700"
},{
"date": "2022-04-06",
"colour": "#FF6700"
},{
"date": "2022-04-12",
"colour": "#FF6700"
},{
"date": "2022-05-04",
"colour": "#FF6700"
},{
"date": "2022-05-05",
"colour": "#FF6700"
},{
"date": "2022-05-11",
"colour": "#FF6700"
},{
"date": "2022-05-18",
"colour": "#FF6700"
},{
"date": "2022-06-04",
"colour": "#FF6700"
},{
"date": "2022-06-07",
"colour": "#FF6700"
},{
"date": "2022-06-15",
"colour": "#FF6700"
},{
"date": "2022-06-20",
"colour": "#FF6700"
},{
"date": "2022-06-28",
"colour": "#FF6700"
}],
"value": "colour",
"key": "date"
}
2. Colour using a defined scale§
In this example we've processed a dataset from Data Mill North to find the total daily counts for the St Peters Street (Lane 1) cycle counter in Leeds. We set the value
of each day to the Counts
field in the data and then colour each day using a defined colour scale
(Viridis
). If min
and max
are not set, the scale will use the range in the data.
This example was made with config
:
attribution: >
Data: <a
href="https://open-innovations.github.io/traffic-growth/data/leeds/cycle-100642-1.csv">processed</a>
(Open Innovations); <a
href="https://datamillnorth.org/dataset/leeds-annual-cycle-growth-">source</a>
(Leeds City Council)
data: test.data.cycle-100643-1
value: Counts
key: Date
scale: Viridis
{
"attribution": "Data: <a href=\"https://open-innovations.github.io/traffic-growth/data/leeds/cycle-100642-1.csv\">processed</a> (Open Innovations); <a href=\"https://datamillnorth.org/dataset/leeds-annual-cycle-growth-\">source</a> (Leeds City Council)\n",
"data": "test.data.cycle-100643-1",
"value": "Counts",
"key": "Date",
"scale": "Viridis"
}
3. Add a tooltip§
A tooltip
can be set as either the name of a column/virtual column in the data or be a string template. The string template can contain replacement values and other content. For instance, we've included a bicycle icon (from Bootstrap Icons) and formated the Date
value using {{ Date | strftime("%e %B %Y") }}
.
This example was made with config
:
data: test.data.cycle-100643-1
value: Counts
key: Date
scale: Viridis
tooltip: >-
<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px"
fill="currentColor" class="bi bi-bicycle" viewBox="0 0 16 16"
style="margin:auto;display:block;" preserveAspectRatio="xMidYMid slice"><path
d="M4 4.5a.5.5 0 0 1 .5-.5H6a.5.5 0 0 1 0 1v.5h4.14l.386-1.158A.5.5 0 0 1 11
4h1a.5.5 0 0 1 0 1h-.64l-.311.935.807 1.29a3 3 0 1 1-.848.53l-.508-.812-2.076
3.322A.5.5 0 0 1 8 10.5H5.959a3 3 0 1 1-1.815-3.274L5 5.856V5h-.5a.5.5 0 0
1-.5-.5zm1.5 2.443-.508.814c.5.444.85 1.054.967 1.743h1.139L5.5 6.943zM8 9.057
9.598 6.5H6.402L8 9.057zM4.937 9.5a1.997 1.997 0 0
0-.487-.877l-.548.877h1.035zM3.603 8.092A2 2 0 1 0 4.937 10.5H3a.5.5 0 0
1-.424-.765l1.027-1.643zm7.947.53a2 2 0 1 0 .848-.53l1.026 1.643a.5.5 0 1
1-.848.53L11.55 8.623z"/></svg>{{ Date | strftime("%e %B %Y") }} <br />{{
Counts }} counts
{
"data": "test.data.cycle-100643-1",
"value": "Counts",
"key": "Date",
"scale": "Viridis",
"tooltip": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32px\" height=\"32px\" fill=\"currentColor\" class=\"bi bi-bicycle\" viewBox=\"0 0 16 16\" style=\"margin:auto;display:block;\" preserveAspectRatio=\"xMidYMid slice\"><path d=\"M4 4.5a.5.5 0 0 1 .5-.5H6a.5.5 0 0 1 0 1v.5h4.14l.386-1.158A.5.5 0 0 1 11 4h1a.5.5 0 0 1 0 1h-.64l-.311.935.807 1.29a3 3 0 1 1-.848.53l-.508-.812-2.076 3.322A.5.5 0 0 1 8 10.5H5.959a3 3 0 1 1-1.815-3.274L5 5.856V5h-.5a.5.5 0 0 1-.5-.5zm1.5 2.443-.508.814c.5.444.85 1.054.967 1.743h1.139L5.5 6.943zM8 9.057 9.598 6.5H6.402L8 9.057zM4.937 9.5a1.997 1.997 0 0 0-.487-.877l-.548.877h1.035zM3.603 8.092A2 2 0 1 0 4.937 10.5H3a.5.5 0 0 1-.424-.765l1.027-1.643zm7.947.53a2 2 0 1 0 .848-.53l1.026 1.643a.5.5 0 1 1-.848.53L11.55 8.623z\"/></svg>{{ Date | strftime(\"%e %B %Y\") }} <br />{{ Counts }} counts"
}
4. Reverse the order of the years§
We can set the order
of the years to either chronological
(earliest year first) or reverse
(latest year first).
68 counts
89 counts
86 counts
102 counts
116 counts
91 counts
88 counts
95 counts
160 counts
169 counts
142 counts
126 counts
77 counts
98 counts
162 counts
186 counts
178 counts
181 counts
186 counts
103 counts
117 counts
180 counts
184 counts
186 counts
164 counts
168 counts
114 counts
110 counts
194 counts
230 counts
219 counts
220 counts
183 counts
90 counts
109 counts
188 counts
219 counts
224 counts
234 counts
184 counts
87 counts
77 counts
195 counts
200 counts
252 counts
220 counts
204 counts
117 counts
65 counts
180 counts
188 counts
127 counts
169 counts
84 counts
78 counts
38 counts
124 counts
158 counts
179 counts
139 counts
194 counts
104 counts
92 counts
176 counts
245 counts
179 counts
194 counts
143 counts
126 counts
113 counts
192 counts
225 counts
230 counts
218 counts
188 counts
122 counts
131 counts
207 counts
242 counts
206 counts
238 counts
220 counts
169 counts
126 counts
222 counts
270 counts
242 counts
272 counts
235 counts
172 counts
133 counts
215 counts
238 counts
166 counts
149 counts
173 counts
119 counts
116 counts
163 counts
180 counts
174 counts
158 counts
157 counts
128 counts
116 counts
158 counts
170 counts
200 counts
194 counts
139 counts
122 counts
94 counts
130 counts
222 counts
257 counts
251 counts
234 counts
132 counts
124 counts
229 counts
252 counts
268 counts
264 counts
225 counts
141 counts
114 counts
128 counts
215 counts
262 counts
261 counts
220 counts
148 counts
153 counts
230 counts
263 counts
261 counts
265 counts
224 counts
157 counts
133 counts
202 counts
278 counts
303 counts
307 counts
228 counts
183 counts
176 counts
258 counts
292 counts
266 counts
260 counts
226 counts
153 counts
138 counts
193 counts
163 counts
202 counts
180 counts
137 counts
165 counts
111 counts
221 counts
293 counts
245 counts
273 counts
259 counts
210 counts
190 counts
254 counts
315 counts
318 counts
283 counts
249 counts
156 counts
151 counts
289 counts
291 counts
271 counts
322 counts
253 counts
165 counts
130 counts
242 counts
290 counts
245 counts
269 counts
228 counts
162 counts
132 counts
251 counts
288 counts
245 counts
266 counts
269 counts
160 counts
157 counts
255 counts
294 counts
279 counts
276 counts
240 counts
172 counts
145 counts
222 counts
208 counts
276 counts
277 counts
199 counts
148 counts
128 counts
230 counts
231 counts
307 counts
246 counts
200 counts
161 counts
133 counts
238 counts
236 counts
274 counts
257 counts
257 counts
166 counts
166 counts
245 counts
262 counts
295 counts
251 counts
230 counts
151 counts
134 counts
241 counts
238 counts
258 counts
236 counts
258 counts
180 counts
139 counts
225 counts
275 counts
283 counts
264 counts
247 counts
162 counts
154 counts
163 counts
270 counts
258 counts
287 counts
268 counts
163 counts
124 counts
256 counts
270 counts
271 counts
239 counts
243 counts
154 counts
137 counts
252 counts
323 counts
285 counts
286 counts
248 counts
143 counts
137 counts
134 counts
316 counts
292 counts
287 counts
264 counts
186 counts
151 counts
247 counts
329 counts
316 counts
308 counts
219 counts
148 counts
184 counts
308 counts
277 counts
247 counts
296 counts
219 counts
193 counts
140 counts
267 counts
307 counts
275 counts
300 counts
249 counts
145 counts
147 counts
275 counts
317 counts
292 counts
197 counts
183 counts
128 counts
91 counts
236 counts
244 counts
248 counts
231 counts
216 counts
138 counts
144 counts
278 counts
260 counts
249 counts
268 counts
256 counts
148 counts
133 counts
256 counts
281 counts
265 counts
297 counts
258 counts
168 counts
141 counts
243 counts
220 counts
244 counts
172 counts
210 counts
114 counts
135 counts
209 counts
249 counts
216 counts
232 counts
228 counts
150 counts
134 counts
227 counts
240 counts
251 counts
72 counts
65 counts
70 counts
59 counts
48 counts
44 counts
33 counts
98 counts
99 counts
94 counts
87 counts
70 counts
69 counts
67 counts
91 counts
117 counts
75 counts
22 counts
21 counts
29 counts
71 counts
88 counts
82 counts
82 counts
85 counts
143 counts
92 counts
66 counts
90 counts
88 counts
107 counts
80 counts
127 counts
108 counts
95 counts
108 counts
24 counts
84 counts
103 counts
144 counts
40 counts
58 counts
66 counts
71 counts
70 counts
97 counts
98 counts
99 counts
80 counts
120 counts
134 counts
123 counts
101 counts
118 counts
97 counts
92 counts
106 counts
120 counts
118 counts
156 counts
169 counts
148 counts
119 counts
115 counts
142 counts
145 counts
135 counts
158 counts
139 counts
142 counts
145 counts
156 counts
117 counts
134 counts
152 counts
96 counts
79 counts
149 counts
178 counts
170 counts
168 counts
186 counts
138 counts
133 counts
169 counts
169 counts
200 counts
202 counts
168 counts
148 counts
93 counts
172 counts
227 counts
216 counts
181 counts
151 counts
120 counts
103 counts
99 counts
120 counts
154 counts
147 counts
190 counts
135 counts
111 counts
188 counts
185 counts
199 counts
204 counts
217 counts
165 counts
163 counts
215 counts
216 counts
213 counts
243 counts
255 counts
179 counts
151 counts
203 counts
189 counts
236 counts
189 counts
202 counts
151 counts
167 counts
87 counts
145 counts
215 counts
179 counts
208 counts
80 counts
140 counts
185 counts
190 counts
238 counts
225 counts
215 counts
119 counts
91 counts
185 counts
232 counts
235 counts
146 counts
136 counts
139 counts
94 counts
187 counts
190 counts
153 counts
241 counts
230 counts
158 counts
141 counts
173 counts
225 counts
213 counts
205 counts
229 counts
185 counts
162 counts
218 counts
260 counts
274 counts
284 counts
230 counts
168 counts
151 counts
235 counts
249 counts
261 counts
218 counts
206 counts
185 counts
149 counts
221 counts
271 counts
260 counts
247 counts
178 counts
157 counts
144 counts
220 counts
233 counts
281 counts
269 counts
252 counts
97 counts
103 counts
203 counts
194 counts
217 counts
238 counts
207 counts
139 counts
138 counts
114 counts
223 counts
247 counts
238 counts
240 counts
168 counts
155 counts
238 counts
233 counts
251 counts
246 counts
243 counts
156 counts
158 counts
237 counts
187 counts
171 counts
150 counts
251 counts
219 counts
202 counts
170 counts
139 counts
124 counts
219 counts
229 counts
232 counts
233 counts
246 counts
138 counts
143 counts
199 counts
227 counts
237 counts
216 counts
242 counts
97 counts
131 counts
206 counts
222 counts
244 counts
228 counts
208 counts
162 counts
152 counts
130 counts
224 counts
224 counts
262 counts
221 counts
160 counts
186 counts
228 counts
261 counts
310 counts
238 counts
237 counts
163 counts
150 counts
261 counts
206 counts
265 counts
277 counts
273 counts
196 counts
166 counts
272 counts
308 counts
285 counts
268 counts
241 counts
170 counts
192 counts
190 counts
231 counts
277 counts
216 counts
230 counts
91 counts
130 counts
273 counts
202 counts
318 counts
281 counts
254 counts
165 counts
153 counts
237 counts
273 counts
280 counts
256 counts
243 counts
183 counts
132 counts
228 counts
222 counts
221 counts
230 counts
204 counts
160 counts
151 counts
219 counts
231 counts
215 counts
210 counts
173 counts
150 counts
98 counts
190 counts
267 counts
260 counts
249 counts
215 counts
107 counts
130 counts
248 counts
250 counts
264 counts
258 counts
220 counts
154 counts
165 counts
261 counts
256 counts
301 counts
247 counts
236 counts
144 counts
123 counts
256 counts
268 counts
261 counts
246 counts
162 counts
70 counts
51 counts
127 counts
205 counts
216 counts
208 counts
218 counts
101 counts
100 counts
167 counts
166 counts
167 counts
197 counts
172 counts
121 counts
110 counts
137 counts
185 counts
188 counts
167 counts
169 counts
100 counts
97 counts
134 counts
145 counts
112 counts
105 counts
82 counts
31 counts
44 counts
68 counts
89 counts
86 counts
102 counts
116 counts
91 counts
88 counts
77 counts
72 counts
55 counts
112 counts
104 counts
68 counts
57 counts
185 counts
167 counts
207 counts
194 counts
147 counts
69 counts
60 counts
157 counts
152 counts
214 counts
173 counts
162 counts
74 counts
67 counts
183 counts
218 counts
214 counts
70 counts
4 counts
1 counts
2 counts
107 counts
172 counts
191 counts
168 counts
139 counts
83 counts
65 counts
172 counts
194 counts
221 counts
196 counts
156 counts
71 counts
24 counts
100 counts
122 counts
166 counts
151 counts
135 counts
43 counts
32 counts
130 counts
140 counts
152 counts
126 counts
106 counts
53 counts
73 counts
109 counts
153 counts
185 counts
183 counts
117 counts
59 counts
70 counts
187 counts
187 counts
237 counts
213 counts
178 counts
81 counts
73 counts
189 counts
166 counts
196 counts
161 counts
157 counts
87 counts
74 counts
202 counts
152 counts
113 counts
113 counts
125 counts
99 counts
70 counts
106 counts
89 counts
86 counts
95 counts
92 counts
69 counts
52 counts
60 counts
74 counts
77 counts
68 counts
82 counts
82 counts
87 counts
87 counts
91 counts
114 counts
91 counts
98 counts
95 counts
63 counts
63 counts
118 counts
110 counts
123 counts
97 counts
76 counts
96 counts
98 counts
91 counts
121 counts
134 counts
118 counts
95 counts
118 counts
105 counts
87 counts
74 counts
89 counts
109 counts
138 counts
92 counts
98 counts
104 counts
151 counts
140 counts
132 counts
152 counts
53 counts
92 counts
97 counts
137 counts
157 counts
155 counts
130 counts
109 counts
111 counts
143 counts
203 counts
138 counts
139 counts
104 counts
108 counts
158 counts
165 counts
172 counts
157 counts
176 counts
147 counts
175 counts
155 counts
180 counts
84 counts
121 counts
127 counts
85 counts
78 counts
143 counts
144 counts
82 counts
103 counts
72 counts
140 counts
148 counts
150 counts
186 counts
166 counts
102 counts
111 counts
144 counts
87 counts
167 counts
205 counts
209 counts
198 counts
144 counts
79 counts
79 counts
105 counts
164 counts
167 counts
114 counts
134 counts
90 counts
54 counts
157 counts
120 counts
152 counts
127 counts
141 counts
92 counts
80 counts
131 counts
182 counts
145 counts
165 counts
151 counts
122 counts
145 counts
165 counts
185 counts
194 counts
155 counts
163 counts
93 counts
124 counts
113 counts
167 counts
200 counts
157 counts
206 counts
140 counts
121 counts
165 counts
137 counts
174 counts
162 counts
202 counts
141 counts
95 counts
199 counts
188 counts
200 counts
175 counts
172 counts
117 counts
88 counts
145 counts
174 counts
141 counts
199 counts
143 counts
98 counts
98 counts
185 counts
92 counts
149 counts
149 counts
110 counts
116 counts
112 counts
112 counts
201 counts
164 counts
194 counts
174 counts
144 counts
100 counts
139 counts
171 counts
197 counts
185 counts
189 counts
135 counts
151 counts
221 counts
251 counts
227 counts
240 counts
199 counts
136 counts
129 counts
224 counts
221 counts
134 counts
149 counts
154 counts
121 counts
100 counts
187 counts
201 counts
144 counts
201 counts
175 counts
50 counts
83 counts
172 counts
208 counts
201 counts
168 counts
194 counts
117 counts
127 counts
137 counts
186 counts
190 counts
202 counts
226 counts
136 counts
122 counts
169 counts
201 counts
197 counts
222 counts
200 counts
106 counts
127 counts
130 counts
149 counts
157 counts
122 counts
179 counts
98 counts
82 counts
152 counts
182 counts
203 counts
180 counts
174 counts
135 counts
99 counts
173 counts
200 counts
212 counts
184 counts
192 counts
122 counts
114 counts
133 counts
176 counts
162 counts
157 counts
172 counts
116 counts
127 counts
167 counts
164 counts
159 counts
175 counts
163 counts
105 counts
111 counts
156 counts
185 counts
191 counts
153 counts
127 counts
134 counts
72 counts
131 counts
136 counts
150 counts
147 counts
126 counts
117 counts
60 counts
159 counts
169 counts
128 counts
157 counts
138 counts
97 counts
70 counts
113 counts
124 counts
83 counts
79 counts
22 counts
43 counts
65 counts
72 counts
65 counts
70 counts
59 counts
48 counts
44 counts
33 counts
101 counts
162 counts
57 counts
48 counts
155 counts
155 counts
157 counts
160 counts
151 counts
61 counts
76 counts
140 counts
175 counts
163 counts
169 counts
107 counts
68 counts
60 counts
157 counts
180 counts
138 counts
157 counts
105 counts
69 counts
67 counts
150 counts
199 counts
196 counts
167 counts
162 counts
111 counts
59 counts
73 counts
161 counts
154 counts
186 counts
148 counts
64 counts
95 counts
162 counts
165 counts
153 counts
171 counts
143 counts
86 counts
66 counts
138 counts
189 counts
174 counts
160 counts
137 counts
79 counts
66 counts
156 counts
181 counts
193 counts
186 counts
162 counts
92 counts
51 counts
186 counts
131 counts
209 counts
171 counts
144 counts
93 counts
45 counts
168 counts
152 counts
220 counts
183 counts
117 counts
81 counts
61 counts
143 counts
201 counts
175 counts
163 counts
143 counts
91 counts
56 counts
175 counts
189 counts
176 counts
178 counts
131 counts
80 counts
76 counts
177 counts
183 counts
203 counts
187 counts
121 counts
58 counts
62 counts
133 counts
155 counts
158 counts
160 counts
101 counts
51 counts
66 counts
153 counts
177 counts
187 counts
115 counts
130 counts
69 counts
76 counts
157 counts
149 counts
201 counts
149 counts
118 counts
77 counts
52 counts
172 counts
166 counts
171 counts
176 counts
122 counts
38 counts
59 counts
143 counts
164 counts
137 counts
156 counts
146 counts
59 counts
43 counts
152 counts
186 counts
195 counts
162 counts
132 counts
73 counts
55 counts
180 counts
154 counts
175 counts
128 counts
120 counts
51 counts
53 counts
149 counts
151 counts
128 counts
121 counts
98 counts
43 counts
46 counts
74 counts
57 counts
14 counts
33 counts
50 counts
56 counts
57 counts
77 counts
72 counts
55 counts
112 counts
104 counts
68 counts
57 counts
This example was made with config
:
data: test.data.cycle-100643-1
value: Counts
key: Date
scale: Viridis
order: reverse
tooltip: '{{ Date | strftime("%e %B %Y") }} <br />{{ Counts }} counts'
{
"data": "test.data.cycle-100643-1",
"value": "Counts",
"key": "Date",
"scale": "Viridis",
"order": "reverse",
"tooltip": "{{ Date | strftime(\"%e %B %Y\") }} <br />{{ Counts }} counts"
}
5. Set the first day of the week§
By default we start the week on a Monday but sometimes you may want to use a different day. You can set the startofweek
value to 0
for Sunday, 1
for Monday etc. Let's start the week on a Sunday.
This example was made with config
:
data: test.data.cycle-100643-1
value: Counts
key: Date
scale: Viridis
startofweek: 0
{
"data": "test.data.cycle-100643-1",
"value": "Counts",
"key": "Date",
"scale": "Viridis",
"startofweek": 0
}
6. Add a legend§
In this example we will add a legend
and therefore will also most likely need to specify a min
and max
.
101 counts
162 counts
57 counts
48 counts
155 counts
155 counts
157 counts
160 counts
151 counts
61 counts
76 counts
140 counts
175 counts
163 counts
169 counts
107 counts
68 counts
60 counts
157 counts
180 counts
138 counts
157 counts
105 counts
69 counts
67 counts
150 counts
199 counts
196 counts
167 counts
162 counts
111 counts
59 counts
73 counts
161 counts
154 counts
186 counts
148 counts
64 counts
95 counts
162 counts
165 counts
153 counts
171 counts
143 counts
86 counts
66 counts
138 counts
189 counts
174 counts
160 counts
137 counts
79 counts
66 counts
156 counts
181 counts
193 counts
186 counts
162 counts
92 counts
51 counts
186 counts
131 counts
209 counts
171 counts
144 counts
93 counts
45 counts
168 counts
152 counts
220 counts
183 counts
117 counts
81 counts
61 counts
143 counts
201 counts
175 counts
163 counts
143 counts
91 counts
56 counts
175 counts
189 counts
176 counts
178 counts
131 counts
80 counts
76 counts
177 counts
183 counts
203 counts
187 counts
121 counts
58 counts
62 counts
133 counts
155 counts
158 counts
160 counts
101 counts
51 counts
66 counts
153 counts
177 counts
187 counts
115 counts
130 counts
69 counts
76 counts
157 counts
149 counts
201 counts
149 counts
118 counts
77 counts
52 counts
172 counts
166 counts
171 counts
176 counts
122 counts
38 counts
59 counts
143 counts
164 counts
137 counts
156 counts
146 counts
59 counts
43 counts
152 counts
186 counts
195 counts
162 counts
132 counts
73 counts
55 counts
180 counts
154 counts
175 counts
128 counts
120 counts
51 counts
53 counts
149 counts
151 counts
128 counts
121 counts
98 counts
43 counts
46 counts
74 counts
57 counts
14 counts
33 counts
50 counts
56 counts
57 counts
77 counts
72 counts
55 counts
112 counts
104 counts
68 counts
57 counts
77 counts
72 counts
55 counts
112 counts
104 counts
68 counts
57 counts
185 counts
167 counts
207 counts
194 counts
147 counts
69 counts
60 counts
157 counts
152 counts
214 counts
173 counts
162 counts
74 counts
67 counts
183 counts
218 counts
214 counts
70 counts
4 counts
1 counts
2 counts
107 counts
172 counts
191 counts
168 counts
139 counts
83 counts
65 counts
172 counts
194 counts
221 counts
196 counts
156 counts
71 counts
24 counts
100 counts
122 counts
166 counts
151 counts
135 counts
43 counts
32 counts
130 counts
140 counts
152 counts
126 counts
106 counts
53 counts
73 counts
109 counts
153 counts
185 counts
183 counts
117 counts
59 counts
70 counts
187 counts
187 counts
237 counts
213 counts
178 counts
81 counts
73 counts
189 counts
166 counts
196 counts
161 counts
157 counts
87 counts
74 counts
202 counts
152 counts
113 counts
113 counts
125 counts
99 counts
70 counts
106 counts
89 counts
86 counts
95 counts
92 counts
69 counts
52 counts
60 counts
74 counts
77 counts
68 counts
82 counts
82 counts
87 counts
87 counts
91 counts
114 counts
91 counts
98 counts
95 counts
63 counts
63 counts
118 counts
110 counts
123 counts
97 counts
76 counts
96 counts
98 counts
91 counts
121 counts
134 counts
118 counts
95 counts
118 counts
105 counts
87 counts
74 counts
89 counts
109 counts
138 counts
92 counts
98 counts
104 counts
151 counts
140 counts
132 counts
152 counts
53 counts
92 counts
97 counts
137 counts
157 counts
155 counts
130 counts
109 counts
111 counts
143 counts
203 counts
138 counts
139 counts
104 counts
108 counts
158 counts
165 counts
172 counts
157 counts
176 counts
147 counts
175 counts
155 counts
180 counts
84 counts
121 counts
127 counts
85 counts
78 counts
143 counts
144 counts
82 counts
103 counts
72 counts
140 counts
148 counts
150 counts
186 counts
166 counts
102 counts
111 counts
144 counts
87 counts
167 counts
205 counts
209 counts
198 counts
144 counts
79 counts
79 counts
105 counts
164 counts
167 counts
114 counts
134 counts
90 counts
54 counts
157 counts
120 counts
152 counts
127 counts
141 counts
92 counts
80 counts
131 counts
182 counts
145 counts
165 counts
151 counts
122 counts
145 counts
165 counts
185 counts
194 counts
155 counts
163 counts
93 counts
124 counts
113 counts
167 counts
200 counts
157 counts
206 counts
140 counts
121 counts
165 counts
137 counts
174 counts
162 counts
202 counts
141 counts
95 counts
199 counts
188 counts
200 counts
175 counts
172 counts
117 counts
88 counts
145 counts
174 counts
141 counts
199 counts
143 counts
98 counts
98 counts
185 counts
92 counts
149 counts
149 counts
110 counts
116 counts
112 counts
112 counts
201 counts
164 counts
194 counts
174 counts
144 counts
100 counts
139 counts
171 counts
197 counts
185 counts
189 counts
135 counts
151 counts
221 counts
251 counts
227 counts
240 counts
199 counts
136 counts
129 counts
224 counts
221 counts
134 counts
149 counts
154 counts
121 counts
100 counts
187 counts
201 counts
144 counts
201 counts
175 counts
50 counts
83 counts
172 counts
208 counts
201 counts
168 counts
194 counts
117 counts
127 counts
137 counts
186 counts
190 counts
202 counts
226 counts
136 counts
122 counts
169 counts
201 counts
197 counts
222 counts
200 counts
106 counts
127 counts
130 counts
149 counts
157 counts
122 counts
179 counts
98 counts
82 counts
152 counts
182 counts
203 counts
180 counts
174 counts
135 counts
99 counts
173 counts
200 counts
212 counts
184 counts
192 counts
122 counts
114 counts
133 counts
176 counts
162 counts
157 counts
172 counts
116 counts
127 counts
167 counts
164 counts
159 counts
175 counts
163 counts
105 counts
111 counts
156 counts
185 counts
191 counts
153 counts
127 counts
134 counts
72 counts
131 counts
136 counts
150 counts
147 counts
126 counts
117 counts
60 counts
159 counts
169 counts
128 counts
157 counts
138 counts
97 counts
70 counts
113 counts
124 counts
83 counts
79 counts
22 counts
43 counts
65 counts
72 counts
65 counts
70 counts
59 counts
48 counts
44 counts
33 counts
72 counts
65 counts
70 counts
59 counts
48 counts
44 counts
33 counts
98 counts
99 counts
94 counts
87 counts
70 counts
69 counts
67 counts
91 counts
117 counts
75 counts
22 counts
21 counts
29 counts
71 counts
88 counts
82 counts
82 counts
85 counts
143 counts
92 counts
66 counts
90 counts
88 counts
107 counts
80 counts
127 counts
108 counts
95 counts
108 counts
24 counts
84 counts
103 counts
144 counts
40 counts
58 counts
66 counts
71 counts
70 counts
97 counts
98 counts
99 counts
80 counts
120 counts
134 counts
123 counts
101 counts
118 counts
97 counts
92 counts
106 counts
120 counts
118 counts
156 counts
169 counts
148 counts
119 counts
115 counts
142 counts
145 counts
135 counts
158 counts
139 counts
142 counts
145 counts
156 counts
117 counts
134 counts
152 counts
96 counts
79 counts
149 counts
178 counts
170 counts
168 counts
186 counts
138 counts
133 counts
169 counts
169 counts
200 counts
202 counts
168 counts
148 counts
93 counts
172 counts
227 counts
216 counts
181 counts
151 counts
120 counts
103 counts
99 counts
120 counts
154 counts
147 counts
190 counts
135 counts
111 counts
188 counts
185 counts
199 counts
204 counts
217 counts
165 counts
163 counts
215 counts
216 counts
213 counts
243 counts
255 counts
179 counts
151 counts
203 counts
189 counts
236 counts
189 counts
202 counts
151 counts
167 counts
87 counts
145 counts
215 counts
179 counts
208 counts
80 counts
140 counts
185 counts
190 counts
238 counts
225 counts
215 counts
119 counts
91 counts
185 counts
232 counts
235 counts
146 counts
136 counts
139 counts
94 counts
187 counts
190 counts
153 counts
241 counts
230 counts
158 counts
141 counts
173 counts
225 counts
213 counts
205 counts
229 counts
185 counts
162 counts
218 counts
260 counts
274 counts
284 counts
230 counts
168 counts
151 counts
235 counts
249 counts
261 counts
218 counts
206 counts
185 counts
149 counts
221 counts
271 counts
260 counts
247 counts
178 counts
157 counts
144 counts
220 counts
233 counts
281 counts
269 counts
252 counts
97 counts
103 counts
203 counts
194 counts
217 counts
238 counts
207 counts
139 counts
138 counts
114 counts
223 counts
247 counts
238 counts
240 counts
168 counts
155 counts
238 counts
233 counts
251 counts
246 counts
243 counts
156 counts
158 counts
237 counts
187 counts
171 counts
150 counts
251 counts
219 counts
202 counts
170 counts
139 counts
124 counts
219 counts
229 counts
232 counts
233 counts
246 counts
138 counts
143 counts
199 counts
227 counts
237 counts
216 counts
242 counts
97 counts
131 counts
206 counts
222 counts
244 counts
228 counts
208 counts
162 counts
152 counts
130 counts
224 counts
224 counts
262 counts
221 counts
160 counts
186 counts
228 counts
261 counts
310 counts
238 counts
237 counts
163 counts
150 counts
261 counts
206 counts
265 counts
277 counts
273 counts
196 counts
166 counts
272 counts
308 counts
285 counts
268 counts
241 counts
170 counts
192 counts
190 counts
231 counts
277 counts
216 counts
230 counts
91 counts
130 counts
273 counts
202 counts
318 counts
281 counts
254 counts
165 counts
153 counts
237 counts
273 counts
280 counts
256 counts
243 counts
183 counts
132 counts
228 counts
222 counts
221 counts
230 counts
204 counts
160 counts
151 counts
219 counts
231 counts
215 counts
210 counts
173 counts
150 counts
98 counts
190 counts
267 counts
260 counts
249 counts
215 counts
107 counts
130 counts
248 counts
250 counts
264 counts
258 counts
220 counts
154 counts
165 counts
261 counts
256 counts
301 counts
247 counts
236 counts
144 counts
123 counts
256 counts
268 counts
261 counts
246 counts
162 counts
70 counts
51 counts
127 counts
205 counts
216 counts
208 counts
218 counts
101 counts
100 counts
167 counts
166 counts
167 counts
197 counts
172 counts
121 counts
110 counts
137 counts
185 counts
188 counts
167 counts
169 counts
100 counts
97 counts
134 counts
145 counts
112 counts
105 counts
82 counts
31 counts
44 counts
68 counts
89 counts
86 counts
102 counts
116 counts
91 counts
88 counts
68 counts
89 counts
86 counts
102 counts
116 counts
91 counts
88 counts
95 counts
160 counts
169 counts
142 counts
126 counts
77 counts
98 counts
162 counts
186 counts
178 counts
181 counts
186 counts
103 counts
117 counts
180 counts
184 counts
186 counts
164 counts
168 counts
114 counts
110 counts
194 counts
230 counts
219 counts
220 counts
183 counts
90 counts
109 counts
188 counts
219 counts
224 counts
234 counts
184 counts
87 counts
77 counts
195 counts
200 counts
252 counts
220 counts
204 counts
117 counts
65 counts
180 counts
188 counts
127 counts
169 counts
84 counts
78 counts
38 counts
124 counts
158 counts
179 counts
139 counts
194 counts
104 counts
92 counts
176 counts
245 counts
179 counts
194 counts
143 counts
126 counts
113 counts
192 counts
225 counts
230 counts
218 counts
188 counts
122 counts
131 counts
207 counts
242 counts
206 counts
238 counts
220 counts
169 counts
126 counts
222 counts
270 counts
242 counts
272 counts
235 counts
172 counts
133 counts
215 counts
238 counts
166 counts
149 counts
173 counts
119 counts
116 counts
163 counts
180 counts
174 counts
158 counts
157 counts
128 counts
116 counts
158 counts
170 counts
200 counts
194 counts
139 counts
122 counts
94 counts
130 counts
222 counts
257 counts
251 counts
234 counts
132 counts
124 counts
229 counts
252 counts
268 counts
264 counts
225 counts
141 counts
114 counts
128 counts
215 counts
262 counts
261 counts
220 counts
148 counts
153 counts
230 counts
263 counts
261 counts
265 counts
224 counts
157 counts
133 counts
202 counts
278 counts
303 counts
307 counts
228 counts
183 counts
176 counts
258 counts
292 counts
266 counts
260 counts
226 counts
153 counts
138 counts
193 counts
163 counts
202 counts
180 counts
137 counts
165 counts
111 counts
221 counts
293 counts
245 counts
273 counts
259 counts
210 counts
190 counts
254 counts
315 counts
318 counts
283 counts
249 counts
156 counts
151 counts
289 counts
291 counts
271 counts
322 counts
253 counts
165 counts
130 counts
242 counts
290 counts
245 counts
269 counts
228 counts
162 counts
132 counts
251 counts
288 counts
245 counts
266 counts
269 counts
160 counts
157 counts
255 counts
294 counts
279 counts
276 counts
240 counts
172 counts
145 counts
222 counts
208 counts
276 counts
277 counts
199 counts
148 counts
128 counts
230 counts
231 counts
307 counts
246 counts
200 counts
161 counts
133 counts
238 counts
236 counts
274 counts
257 counts
257 counts
166 counts
166 counts
245 counts
262 counts
295 counts
251 counts
230 counts
151 counts
134 counts
241 counts
238 counts
258 counts
236 counts
258 counts
180 counts
139 counts
225 counts
275 counts
283 counts
264 counts
247 counts
162 counts
154 counts
163 counts
270 counts
258 counts
287 counts
268 counts
163 counts
124 counts
256 counts
270 counts
271 counts
239 counts
243 counts
154 counts
137 counts
252 counts
323 counts
285 counts
286 counts
248 counts
143 counts
137 counts
134 counts
316 counts
292 counts
287 counts
264 counts
186 counts
151 counts
247 counts
329 counts
316 counts
308 counts
219 counts
148 counts
184 counts
308 counts
277 counts
247 counts
296 counts
219 counts
193 counts
140 counts
267 counts
307 counts
275 counts
300 counts
249 counts
145 counts
147 counts
275 counts
317 counts
292 counts
197 counts
183 counts
128 counts
91 counts
236 counts
244 counts
248 counts
231 counts
216 counts
138 counts
144 counts
278 counts
260 counts
249 counts
268 counts
256 counts
148 counts
133 counts
256 counts
281 counts
265 counts
297 counts
258 counts
168 counts
141 counts
243 counts
220 counts
244 counts
172 counts
210 counts
114 counts
135 counts
209 counts
249 counts
216 counts
232 counts
228 counts
150 counts
134 counts
227 counts
240 counts
251 counts
This example was made with config
:
data: test.data.cycle-100643-1
value: Counts
key: Date
scale: Viridis
min: 0
max: 300
legend:
show: true
position: top
items:
- value: 300
label: '300'
- value: 200
label: '200'
- value: 100
label: '100'
- value: 0
label: '0'
tooltip: '{{ Date | strftime("%e %B %Y") }} <br />{{ Counts }} counts'
{
"data": "test.data.cycle-100643-1",
"value": "Counts",
"key": "Date",
"scale": "Viridis",
"min": 0,
"max": 300,
"legend": {
"show": true,
"position": "top",
"items": [{
"value": 300,
"label": "300"
},{
"value": 200,
"label": "200"
},{
"value": 100,
"label": "100"
},{
"value": 0,
"label": "0"
}]
},
"tooltip": "{{ Date | strftime(\"%e %B %Y\") }} <br />{{ Counts }} counts"
}
7. Limit rows used Since 0.16.5§
In this example we will limit the data rows to only include those where
the Date
value is on or after the 1st January 2021.
48 counts
44 counts
33 counts
98 counts
99 counts
94 counts
87 counts
70 counts
69 counts
67 counts
91 counts
117 counts
75 counts
22 counts
21 counts
29 counts
71 counts
88 counts
82 counts
82 counts
85 counts
143 counts
92 counts
66 counts
90 counts
88 counts
107 counts
80 counts
127 counts
108 counts
95 counts
108 counts
24 counts
84 counts
103 counts
144 counts
40 counts
58 counts
66 counts
71 counts
70 counts
97 counts
98 counts
99 counts
80 counts
120 counts
134 counts
123 counts
101 counts
118 counts
97 counts
92 counts
106 counts
120 counts
118 counts
156 counts
169 counts
148 counts
119 counts
115 counts
142 counts
145 counts
135 counts
158 counts
139 counts
142 counts
145 counts
156 counts
117 counts
134 counts
152 counts
96 counts
79 counts
149 counts
178 counts
170 counts
168 counts
186 counts
138 counts
133 counts
169 counts
169 counts
200 counts
202 counts
168 counts
148 counts
93 counts
172 counts
227 counts
216 counts
181 counts
151 counts
120 counts
103 counts
99 counts
120 counts
154 counts
147 counts
190 counts
135 counts
111 counts
188 counts
185 counts
199 counts
204 counts
217 counts
165 counts
163 counts
215 counts
216 counts
213 counts
243 counts
255 counts
179 counts
151 counts
203 counts
189 counts
236 counts
189 counts
202 counts
151 counts
167 counts
87 counts
145 counts
215 counts
179 counts
208 counts
80 counts
140 counts
185 counts
190 counts
238 counts
225 counts
215 counts
119 counts
91 counts
185 counts
232 counts
235 counts
146 counts
136 counts
139 counts
94 counts
187 counts
190 counts
153 counts
241 counts
230 counts
158 counts
141 counts
173 counts
225 counts
213 counts
205 counts
229 counts
185 counts
162 counts
218 counts
260 counts
274 counts
284 counts
230 counts
168 counts
151 counts
235 counts
249 counts
261 counts
218 counts
206 counts
185 counts
149 counts
221 counts
271 counts
260 counts
247 counts
178 counts
157 counts
144 counts
220 counts
233 counts
281 counts
269 counts
252 counts
97 counts
103 counts
203 counts
194 counts
217 counts
238 counts
207 counts
139 counts
138 counts
114 counts
223 counts
247 counts
238 counts
240 counts
168 counts
155 counts
238 counts
233 counts
251 counts
246 counts
243 counts
156 counts
158 counts
237 counts
187 counts
171 counts
150 counts
251 counts
219 counts
202 counts
170 counts
139 counts
124 counts
219 counts
229 counts
232 counts
233 counts
246 counts
138 counts
143 counts
199 counts
227 counts
237 counts
216 counts
242 counts
97 counts
131 counts
206 counts
222 counts
244 counts
228 counts
208 counts
162 counts
152 counts
130 counts
224 counts
224 counts
262 counts
221 counts
160 counts
186 counts
228 counts
261 counts
310 counts
238 counts
237 counts
163 counts
150 counts
261 counts
206 counts
265 counts
277 counts
273 counts
196 counts
166 counts
272 counts
308 counts
285 counts
268 counts
241 counts
170 counts
192 counts
190 counts
231 counts
277 counts
216 counts
230 counts
91 counts
130 counts
273 counts
202 counts
318 counts
281 counts
254 counts
165 counts
153 counts
237 counts
273 counts
280 counts
256 counts
243 counts
183 counts
132 counts
228 counts
222 counts
221 counts
230 counts
204 counts
160 counts
151 counts
219 counts
231 counts
215 counts
210 counts
173 counts
150 counts
98 counts
190 counts
267 counts
260 counts
249 counts
215 counts
107 counts
130 counts
248 counts
250 counts
264 counts
258 counts
220 counts
154 counts
165 counts
261 counts
256 counts
301 counts
247 counts
236 counts
144 counts
123 counts
256 counts
268 counts
261 counts
246 counts
162 counts
70 counts
51 counts
127 counts
205 counts
216 counts
208 counts
218 counts
101 counts
100 counts
167 counts
166 counts
167 counts
197 counts
172 counts
121 counts
110 counts
137 counts
185 counts
188 counts
167 counts
169 counts
100 counts
97 counts
134 counts
145 counts
112 counts
105 counts
82 counts
31 counts
44 counts
68 counts
89 counts
86 counts
102 counts
116 counts
91 counts
88 counts
68 counts
89 counts
86 counts
102 counts
116 counts
91 counts
88 counts
95 counts
160 counts
169 counts
142 counts
126 counts
77 counts
98 counts
162 counts
186 counts
178 counts
181 counts
186 counts
103 counts
117 counts
180 counts
184 counts
186 counts
164 counts
168 counts
114 counts
110 counts
194 counts
230 counts
219 counts
220 counts
183 counts
90 counts
109 counts
188 counts
219 counts
224 counts
234 counts
184 counts
87 counts
77 counts
195 counts
200 counts
252 counts
220 counts
204 counts
117 counts
65 counts
180 counts
188 counts
127 counts
169 counts
84 counts
78 counts
38 counts
124 counts
158 counts
179 counts
139 counts
194 counts
104 counts
92 counts
176 counts
245 counts
179 counts
194 counts
143 counts
126 counts
113 counts
192 counts
225 counts
230 counts
218 counts
188 counts
122 counts
131 counts
207 counts
242 counts
206 counts
238 counts
220 counts
169 counts
126 counts
222 counts
270 counts
242 counts
272 counts
235 counts
172 counts
133 counts
215 counts
238 counts
166 counts
149 counts
173 counts
119 counts
116 counts
163 counts
180 counts
174 counts
158 counts
157 counts
128 counts
116 counts
158 counts
170 counts
200 counts
194 counts
139 counts
122 counts
94 counts
130 counts
222 counts
257 counts
251 counts
234 counts
132 counts
124 counts
229 counts
252 counts
268 counts
264 counts
225 counts
141 counts
114 counts
128 counts
215 counts
262 counts
261 counts
220 counts
148 counts
153 counts
230 counts
263 counts
261 counts
265 counts
224 counts
157 counts
133 counts
202 counts
278 counts
303 counts
307 counts
228 counts
183 counts
176 counts
258 counts
292 counts
266 counts
260 counts
226 counts
153 counts
138 counts
193 counts
163 counts
202 counts
180 counts
137 counts
165 counts
111 counts
221 counts
293 counts
245 counts
273 counts
259 counts
210 counts
190 counts
254 counts
315 counts
318 counts
283 counts
249 counts
156 counts
151 counts
289 counts
291 counts
271 counts
322 counts
253 counts
165 counts
130 counts
242 counts
290 counts
245 counts
269 counts
228 counts
162 counts
132 counts
251 counts
288 counts
245 counts
266 counts
269 counts
160 counts
157 counts
255 counts
294 counts
279 counts
276 counts
240 counts
172 counts
145 counts
222 counts
208 counts
276 counts
277 counts
199 counts
148 counts
128 counts
230 counts
231 counts
307 counts
246 counts
200 counts
161 counts
133 counts
238 counts
236 counts
274 counts
257 counts
257 counts
166 counts
166 counts
245 counts
262 counts
295 counts
251 counts
230 counts
151 counts
134 counts
241 counts
238 counts
258 counts
236 counts
258 counts
180 counts
139 counts
225 counts
275 counts
283 counts
264 counts
247 counts
162 counts
154 counts
163 counts
270 counts
258 counts
287 counts
268 counts
163 counts
124 counts
256 counts
270 counts
271 counts
239 counts
243 counts
154 counts
137 counts
252 counts
323 counts
285 counts
286 counts
248 counts
143 counts
137 counts
134 counts
316 counts
292 counts
287 counts
264 counts
186 counts
151 counts
247 counts
329 counts
316 counts
308 counts
219 counts
148 counts
184 counts
308 counts
277 counts
247 counts
296 counts
219 counts
193 counts
140 counts
267 counts
307 counts
275 counts
300 counts
249 counts
145 counts
147 counts
275 counts
317 counts
292 counts
197 counts
183 counts
128 counts
91 counts
236 counts
244 counts
248 counts
231 counts
216 counts
138 counts
144 counts
278 counts
260 counts
249 counts
268 counts
256 counts
148 counts
133 counts
256 counts
281 counts
265 counts
297 counts
258 counts
168 counts
141 counts
243 counts
220 counts
244 counts
172 counts
210 counts
114 counts
135 counts
209 counts
249 counts
216 counts
232 counts
228 counts
150 counts
134 counts
227 counts
240 counts
251 counts
This example was made with config
:
data: test.data.cycle-100643-1
value: Counts
key: Date
scale: Viridis
min: 0
max: 300
legend:
show: true
position: top
items:
- value: 300
label: '300'
- value: 200
label: '200'
- value: 100
label: '100'
- value: 0
label: '0'
tooltip: '{{ Date | strftime("%e %B %Y") }} <br />{{ Counts }} counts'
where: '"Date">="2021-01-01"'
{
"data": "test.data.cycle-100643-1",
"value": "Counts",
"key": "Date",
"scale": "Viridis",
"min": 0,
"max": 300,
"legend": {
"show": true,
"position": "top",
"items": [{
"value": 300,
"label": "300"
},{
"value": 200,
"label": "200"
},{
"value": 100,
"label": "100"
},{
"value": 0,
"label": "0"
}]
},
"tooltip": "{{ Date | strftime(\"%e %B %Y\") }} <br />{{ Counts }} counts",
"where": "\"Date\">=\"2021-01-01\""
}