@ons/design-system 72.10.5 → 72.10.7
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.
- package/components/button/_button.scss +8 -6
- package/components/char-check-limit/_macro.njk +5 -4
- package/components/char-check-limit/_macro.spec.js +167 -7
- package/components/char-check-limit/character-check.js +23 -17
- package/components/char-check-limit/character-check.spec.js +106 -1
- package/components/chart/_chart.scss +33 -5
- package/components/chart/_macro.njk +172 -140
- package/components/chart/_macro.spec.js +378 -22
- package/components/chart/annotations-options.js +1 -1
- package/components/chart/bar-chart.js +1 -0
- package/components/chart/chart-iframe-resize.dom.js +8 -0
- package/components/chart/chart-iframe-resize.js +16 -0
- package/components/chart/chart.js +5 -0
- package/components/chart/example-area-chart-with-axis-min-and-max-values.njk +72 -0
- package/components/chart/example-bar-chart-with-axis-min-and-max-values.njk +59 -0
- package/components/chart/example-bar-chart.njk +4 -0
- package/components/chart/example-column-chart-with-axis-min-and-max-values.njk +59 -0
- package/components/chart/example-iframe-chart.njk +32 -0
- package/components/chart/example-line-chart-with-annotations.njk +3 -1
- package/components/chart/example-line-chart-with-axis-min-and-max-values.njk +227 -0
- package/components/chart/example-line-chart.njk +4 -0
- package/components/chart/example-scatter-chart-with-axis-min-and-max-values.njk +98 -0
- package/components/chart/example-scatter-chart.njk +4 -0
- package/components/chart/range-annotations-options.js +1 -1
- package/components/chart/reference-line-annotations-options.js +1 -1
- package/components/chart/specific-chart-options.js +19 -0
- package/components/checkboxes/_macro.spec.js +3 -3
- package/components/details-panel/_details-panel.scss +4 -0
- package/components/details-panel/_macro.njk +17 -13
- package/components/details-panel/_macro.spec.js +17 -0
- package/components/details-panel/example-details-panel-open.njk +2 -1
- package/components/details-panel/example-details-panel.njk +2 -1
- package/components/header/_header.scss +40 -24
- package/components/header/_macro.njk +103 -89
- package/components/header/_macro.spec.js +130 -2
- package/components/header/example-header-basic-with-search-and-language.njk +207 -0
- package/components/header/{example-header-with-search-button.njk → example-header-basic-with-search-button.njk} +1 -0
- package/components/header/example-header-basic.njk +1 -0
- package/components/hero/_macro.njk +9 -2
- package/components/hero/_macro.spec.js +22 -0
- package/components/hero/example-hero-grey.njk +2 -1
- package/components/input/_macro.njk +1 -2
- package/components/input/_macro.spec.js +2 -22
- package/components/input/example-input-search-with-character-check.njk +0 -1
- package/components/language-selector/_macro.njk +1 -1
- package/components/language-selector/_macro.spec.js +45 -0
- package/components/navigation/navigation.js +24 -17
- package/components/pagination/_macro.njk +17 -7
- package/components/pagination/_macro.spec.js +191 -17
- package/components/textarea/_macro.njk +19 -3
- package/components/textarea/_macro.spec.js +76 -3
- package/components/textarea/example-textarea-with-word-limit.njk +20 -0
- package/css/main.css +1 -1
- package/js/main.js +2 -0
- package/package.json +3 -2
- package/scripts/main.es5.js +3 -1
- package/scripts/main.js +3 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{% from "components/list/_macro.njk" import onsList %}
|
|
2
|
+
{% from "components/details/_macro.njk" import onsDetails %}
|
|
2
3
|
|
|
3
4
|
{% macro onsChart(params) %}
|
|
4
5
|
{% set supportedChartTypes = ['line', 'bar', 'column', 'scatter', 'area', 'columnrange', 'boxplot'] %}
|
|
5
6
|
{% set supportedChartTypesWithLine = ['column'] %}
|
|
6
7
|
{% set supportedChartTypesWithScatter = ['columnrange'] %}
|
|
8
|
+
{% set supportedChartTypesWithXAxisMinAndMax = ['scatter'] %}
|
|
9
|
+
{% set supportedChartTypesWithYAxisMinAndMax = ['line', 'bar', 'column', 'scatter', 'area', 'columnrange', 'boxplot'] %}
|
|
7
10
|
{% set headingLevel = params.headingLevel | default(2) %}
|
|
8
11
|
{% set openingTitleTag = "<h" ~ headingLevel %}
|
|
9
12
|
{% set closingTitleTag = "</h" ~ headingLevel ~ ">" %}
|
|
@@ -12,38 +15,37 @@
|
|
|
12
15
|
{% set openingDownloadTitleTag = "<h" ~ (headingLevel + 2) %}
|
|
13
16
|
{% set closingDownloadTitleTag = "</h" ~ (headingLevel + 2) ~ ">" %}
|
|
14
17
|
<div
|
|
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
|
-
data-highcharts-custom-reference-line-value="{{ params.yAxis.customReferenceLineValue }}"
|
|
18
|
+
{% if not params.iframeUrl %}
|
|
19
|
+
data-highcharts-base-chart data-highcharts-type="{{ params.chartType }}" data-highcharts-theme="{{ params.theme }}"
|
|
20
|
+
data-highcharts-title="{{ params.title }}" data-highcharts-id="{{ params.id }}"
|
|
21
|
+
{% if params.useStackedLayout %}data-highcharts-use-stacked-layout="{{ params.useStackedLayout }}"{% endif %}
|
|
22
|
+
{% if params.percentageHeightDesktop and params.chartType != 'bar' %}
|
|
23
|
+
data-highcharts-percentage-height-desktop="{{ params.percentageHeightDesktop }}"
|
|
24
|
+
{% endif %}
|
|
25
|
+
{% if params.percentageHeightMobile and params.chartType != 'bar' %}
|
|
26
|
+
data-highcharts-percentage-height-mobile="{{ params.percentageHeightMobile }}"
|
|
27
|
+
{% endif %}
|
|
28
|
+
{% if params.xAxis.tickIntervalMobile %}
|
|
29
|
+
data-highcharts-x-axis-tick-interval-mobile="{{ params.xAxis.tickIntervalMobile }}"
|
|
30
|
+
{% endif %}
|
|
31
|
+
{% if params.xAxis.tickIntervalDesktop %}
|
|
32
|
+
data-highcharts-x-axis-tick-interval-desktop="{{ params.xAxis.tickIntervalDesktop }}"
|
|
33
|
+
{% endif %}
|
|
34
|
+
{% if params.yAxis.tickIntervalMobile %}
|
|
35
|
+
data-highcharts-y-axis-tick-interval-mobile="{{ params.yAxis.tickIntervalMobile }}"
|
|
36
|
+
{% endif %}
|
|
37
|
+
{% if params.yAxis.tickIntervalDesktop %}
|
|
38
|
+
data-highcharts-y-axis-tick-interval-desktop="{{ params.yAxis.tickIntervalDesktop }}"
|
|
39
|
+
{% endif %}
|
|
40
|
+
{% if params.estimateLineLabel %}
|
|
41
|
+
data-highcharts-estimate-line-label="{{ params.estimateLineLabel }}"
|
|
42
|
+
{% endif %}
|
|
43
|
+
{% if params.uncertaintyRangeLabel %}
|
|
44
|
+
data-highcharts-uncertainty-range-label="{{ params.uncertaintyRangeLabel }}"
|
|
45
|
+
{% endif %}
|
|
46
|
+
{% if params.yAxis.customReferenceLineValue %}
|
|
47
|
+
data-highcharts-custom-reference-line-value="{{ params.yAxis.customReferenceLineValue }}"
|
|
48
|
+
{% endif %}
|
|
47
49
|
{% endif %}
|
|
48
50
|
>
|
|
49
51
|
<figure class="ons-chart">
|
|
@@ -52,52 +54,59 @@
|
|
|
52
54
|
{{ openingSubtitleTag | safe }}
|
|
53
55
|
class="ons-chart__subtitle">{{ params.subtitle }}{{ closingSubtitleTag | safe }}
|
|
54
56
|
{% endif %}
|
|
55
|
-
|
|
56
57
|
{% if params.description %}
|
|
57
58
|
<p class="ons-u-vh">{{ params.description }}</p>
|
|
58
59
|
{% endif %}
|
|
59
|
-
{% if params.
|
|
60
|
-
<div
|
|
61
|
-
{
|
|
62
|
-
<div class="ons-chart__boxplot-legend-item">
|
|
63
|
-
<span class="ons-chart__boxplot-legend-item ons-chart__boxplot-legend-item--uncertainty"></span>
|
|
64
|
-
<span class="ons-chart__boxplot-legend-label">{{ params.uncertaintyRangeLabel }}</span>
|
|
65
|
-
</div>
|
|
66
|
-
{% endif %}
|
|
67
|
-
{% if params.estimateLineLabel %}
|
|
68
|
-
<div class="ons-chart__boxplot-legend-item">
|
|
69
|
-
<span class="ons-chart__boxplot-legend-item ons-chart__boxplot-legend-item--estimate"></span>
|
|
70
|
-
<span class="ons-chart__boxplot-legend-label">{{ params.estimateLineLabel }}</span>
|
|
71
|
-
</div>
|
|
72
|
-
{% endif %}
|
|
60
|
+
{% if params.iframeUrl %}
|
|
61
|
+
<div data-chart-iframe id="{{ params.id }}" data-url="{{ params.iframeUrl }}" data-title="{{ params.title }}">
|
|
62
|
+
<iframe src="{{ params.iframeUrl }}" title="{{ params.title }}" class="ons-chart__iframe"> </iframe>
|
|
73
63
|
</div>
|
|
74
|
-
{% endif %}
|
|
75
|
-
{% if params.chartType in supportedChartTypes %}
|
|
76
|
-
<div data-highcharts-chart></div>
|
|
77
64
|
{% else %}
|
|
78
|
-
|
|
65
|
+
{% if params.chartType == 'boxplot' and (params.estimateLineLabel or params.uncertaintyRangeLabel) and params.legend == true %}
|
|
66
|
+
<div class="ons-chart__boxplot-legend">
|
|
67
|
+
{% if params.uncertaintyRangeLabel %}
|
|
68
|
+
<div class="ons-chart__boxplot-legend-item">
|
|
69
|
+
<span class="ons-chart__boxplot-legend-item ons-chart__boxplot-legend-item--uncertainty"></span>
|
|
70
|
+
<span class="ons-chart__boxplot-legend-label">{{ params.uncertaintyRangeLabel }}</span>
|
|
71
|
+
</div>
|
|
72
|
+
{% endif %}
|
|
73
|
+
{% if params.estimateLineLabel %}
|
|
74
|
+
<div class="ons-chart__boxplot-legend-item">
|
|
75
|
+
<span class="ons-chart__boxplot-legend-item ons-chart__boxplot-legend-item--estimate"></span>
|
|
76
|
+
<span class="ons-chart__boxplot-legend-label">{{ params.estimateLineLabel }}</span>
|
|
77
|
+
</div>
|
|
78
|
+
{% endif %}
|
|
79
|
+
</div>
|
|
80
|
+
{% endif %}
|
|
81
|
+
{% if params.chartType in supportedChartTypes %}
|
|
82
|
+
<div data-highcharts-chart class="ons-chart__chart"></div>
|
|
83
|
+
{% else %}
|
|
84
|
+
<p data-invalid-chart-type data-unsupported-chart-text>
|
|
85
|
+
<b>{{ '"' + params.chartType + '" - ' + (params.unsupportedChartText or 'chart type is not supported') }}</b>
|
|
86
|
+
</p>
|
|
87
|
+
{% endif %}
|
|
79
88
|
{% endif %}
|
|
80
89
|
{#
|
|
81
90
|
Footnotes for the annotations at mobile
|
|
82
91
|
Hidden from screen readers because the full text will be read out where they appear in the chart
|
|
83
92
|
#}
|
|
84
|
-
{% if params.annotations or params.rangeAnnotations or params.referenceLineAnnotations %}
|
|
85
|
-
<ul class="ons-
|
|
93
|
+
{% if (params.annotations or params.rangeAnnotations or params.referenceLineAnnotations) and not params.iframeUrl %}
|
|
94
|
+
<ul class="ons-chart__annotations-footnotes" aria-hidden="true" data-annotations-footnotes>
|
|
86
95
|
{% for annotation in params.annotations %}
|
|
87
|
-
<li class="ons-
|
|
88
|
-
<span class="ons-
|
|
96
|
+
<li class="ons-chart__annotations-footnotes_item">
|
|
97
|
+
<span class="ons-chart__annotations-footnotes-number">{{ loop.index }}</span>
|
|
89
98
|
{{ annotation.text }}
|
|
90
99
|
</li>
|
|
91
100
|
{% endfor %}
|
|
92
101
|
{% for rangeAnnotation in params.rangeAnnotations %}
|
|
93
|
-
<li class="ons-
|
|
94
|
-
<span class="ons-
|
|
102
|
+
<li class="ons-chart__annotations-footnotes_item">
|
|
103
|
+
<span class="ons-chart__annotations-footnotes-number">{{ loop.index + params.annotations | length }}</span>
|
|
95
104
|
{{ rangeAnnotation.text }}
|
|
96
105
|
</li>
|
|
97
106
|
{% endfor %}
|
|
98
107
|
{% for referenceLineAnnotation in params.referenceLineAnnotations %}
|
|
99
|
-
<li class="ons-
|
|
100
|
-
<span class="ons-
|
|
108
|
+
<li class="ons-chart__annotations-footnotes_item">
|
|
109
|
+
<span class="ons-chart__annotations-footnotes-number"
|
|
101
110
|
>{{ loop.index + params.annotations | length + params.rangeAnnotations | length }}</span
|
|
102
111
|
>
|
|
103
112
|
{{ referenceLineAnnotation.text }}
|
|
@@ -105,7 +114,6 @@
|
|
|
105
114
|
{% endfor %}
|
|
106
115
|
</ul>
|
|
107
116
|
{% endif %}
|
|
108
|
-
|
|
109
117
|
{% if params.caption %}
|
|
110
118
|
<figcaption class="ons-chart__caption">{{ params.caption }}</figcaption>
|
|
111
119
|
{% endif %}
|
|
@@ -121,94 +129,118 @@
|
|
|
121
129
|
})
|
|
122
130
|
}}
|
|
123
131
|
{% endif %}
|
|
124
|
-
|
|
125
|
-
{%
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
{
|
|
129
|
-
{
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
|
|
133
|
+
{% if params.footnotes %}
|
|
134
|
+
{% set footnotesId = ["footnotes--", params.id] | join %}
|
|
135
|
+
|
|
136
|
+
{{
|
|
137
|
+
onsDetails({
|
|
138
|
+
"id": footnotesId,
|
|
139
|
+
"title": params.footnotes.title,
|
|
140
|
+
"content": params.footnotes.content,
|
|
141
|
+
"headingLevel": headingLevel + 2,
|
|
142
|
+
"classes": "ons-u-mt-xl"
|
|
143
|
+
})
|
|
144
|
+
}}
|
|
145
|
+
{% endif %}
|
|
146
|
+
|
|
147
|
+
{% if (params.chartType in supportedChartTypes) and not params.iframeUrl %}
|
|
148
|
+
{% set series = [] %}
|
|
149
|
+
{% set lineSeriesCount = 0 %}
|
|
150
|
+
{% for item in params.series %}
|
|
151
|
+
{% if item.type == 'line' and lineSeriesCount > 0 %}
|
|
152
|
+
{# skip extra line series as the DS guidelines only allow for one extra line series #}
|
|
153
|
+
{% else %}
|
|
154
|
+
{%
|
|
155
|
+
set seriesItem = {
|
|
156
|
+
"name": item.name if item.name else '',
|
|
157
|
+
"data": item.data if item.data else [],
|
|
158
|
+
"marker": {
|
|
159
|
+
"enabled": true if (item.type == 'scatter' or params.chartType == 'scatter' or item.marker == true) else false
|
|
160
|
+
},
|
|
161
|
+
"dataLabels": {
|
|
162
|
+
"enabled": item.dataLabels if item.dataLabels else false
|
|
163
|
+
},
|
|
164
|
+
"connectNulls": item.connectNulls if item.connectNulls else false,
|
|
165
|
+
"type": item.type if item.type and (item.type == 'line' and params.chartType in supportedChartTypesWithLine) or (item.type == 'scatter' and params.chartType in supportedChartTypesWithScatter) else params.chartType
|
|
166
|
+
}
|
|
167
|
+
%}
|
|
168
|
+
{# Use `set` tag to avoid printing the return value of extend #}
|
|
169
|
+
{% set _ = extend(series, seriesItem) %}
|
|
170
|
+
{% endif %}
|
|
171
|
+
{% if item.type == 'line' %}
|
|
172
|
+
{% set lineSeriesCount = lineSeriesCount + 1 %}
|
|
173
|
+
{% endif %}
|
|
174
|
+
{% endfor %}
|
|
175
|
+
{# Set the legend value to true by default #}
|
|
176
|
+
{% set legendValue = true %}
|
|
177
|
+
{% if params.legend is defined %}
|
|
178
|
+
{# if a legend parameter has been provided, check that it is a boolean #}
|
|
179
|
+
{% if params.legend == true or params.legend == false %}
|
|
180
|
+
{# legend value is a boolean - use the value passed in #}
|
|
181
|
+
{% set legendValue = params.legend %}
|
|
182
|
+
{% endif %}
|
|
183
|
+
{% endif %}
|
|
184
|
+
{%
|
|
185
|
+
set config = {
|
|
186
|
+
"chart": {
|
|
187
|
+
"type": params.chartType
|
|
188
|
+
},
|
|
189
|
+
"legend": {
|
|
190
|
+
"enabled" : legendValue
|
|
191
|
+
},
|
|
192
|
+
"yAxis": {
|
|
193
|
+
"title": {
|
|
194
|
+
"text": params.yAxis.title
|
|
137
195
|
},
|
|
138
|
-
"
|
|
139
|
-
"
|
|
196
|
+
"labels": {
|
|
197
|
+
"format": params.yAxis.labelFormat
|
|
140
198
|
},
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
{# Use `set` tag to avoid printing the return value of extend #}
|
|
146
|
-
{% set _ = extend(series, seriesItem) %}
|
|
147
|
-
{% endif %}
|
|
148
|
-
{% if item.type == 'line' %}
|
|
149
|
-
{% set lineSeriesCount = lineSeriesCount + 1 %}
|
|
150
|
-
{% endif %}
|
|
151
|
-
{% endfor %}
|
|
152
|
-
{# Set the legend value to true by default #}
|
|
153
|
-
{% set legendValue = true %}
|
|
154
|
-
{% if params.legend is defined %}
|
|
155
|
-
{# if a legend parameter has been provided, check that it is a boolean #}
|
|
156
|
-
{% if params.legend == true or params.legend == false %}
|
|
157
|
-
{# legend value is a boolean - use the value passed in #}
|
|
158
|
-
{% set legendValue = params.legend %}
|
|
159
|
-
{% endif %}
|
|
160
|
-
{% endif %}
|
|
161
|
-
{%
|
|
162
|
-
set config = {
|
|
163
|
-
"chart": {
|
|
164
|
-
"type": params.chartType
|
|
165
|
-
},
|
|
166
|
-
"legend": {
|
|
167
|
-
"enabled" : legendValue
|
|
168
|
-
},
|
|
169
|
-
"yAxis": {
|
|
170
|
-
"title": {
|
|
171
|
-
"text": params.yAxis.title
|
|
199
|
+
"min": params.yAxis.min if params.yAxis.min is defined and params.chartType in supportedChartTypesWithYAxisMinAndMax else undefined,
|
|
200
|
+
"max": params.yAxis.max if params.yAxis.max is defined and params.chartType in supportedChartTypesWithYAxisMinAndMax else undefined,
|
|
201
|
+
"startOnTick": params.yAxis.startOnTick if params.yAxis.startOnTick is defined and params.chartType in supportedChartTypesWithYAxisMinAndMax else undefined,
|
|
202
|
+
"endOnTick": params.yAxis.endOnTick if params.yAxis.endOnTick is defined and params.chartType in supportedChartTypesWithYAxisMinAndMax else undefined
|
|
172
203
|
},
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
"
|
|
204
|
+
"xAxis": {
|
|
205
|
+
"title": {
|
|
206
|
+
"text": params.xAxis.title
|
|
207
|
+
},
|
|
208
|
+
"categories": params.xAxis.categories,
|
|
209
|
+
"type": params.xAxis.type,
|
|
210
|
+
"labels": {
|
|
211
|
+
"format": params.xAxis.labelFormat
|
|
212
|
+
},
|
|
213
|
+
"min": params.xAxis.min if params.xAxis.min is defined and params.chartType in supportedChartTypesWithXAxisMinAndMax else undefined,
|
|
214
|
+
"max": params.xAxis.max if params.xAxis.max is defined and params.chartType in supportedChartTypesWithXAxisMinAndMax else undefined,
|
|
215
|
+
"startOnTick": params.xAxis.startOnTick if params.xAxis.startOnTick is defined and params.chartType in supportedChartTypesWithXAxisMinAndMax else undefined,
|
|
216
|
+
"endOnTick": params.xAxis.endOnTick if params.xAxis.endOnTick is defined and params.chartType in supportedChartTypesWithXAxisMinAndMax else undefined
|
|
180
217
|
},
|
|
181
|
-
"
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
"format": params.xAxis.labelFormat
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"series": series
|
|
188
|
-
}
|
|
189
|
-
%}
|
|
218
|
+
"series": series
|
|
219
|
+
}
|
|
220
|
+
%}
|
|
190
221
|
|
|
191
|
-
|
|
192
|
-
|
|
222
|
+
<!-- Set scripts to pass the config values as json to the javascript -->
|
|
223
|
+
<!-- prettier-ignore-start -->
|
|
193
224
|
<script type="application/json" data-highcharts-config--{{ params.id }}>
|
|
194
225
|
{{ config | tojson }}
|
|
195
226
|
</script>
|
|
227
|
+
|
|
228
|
+
{% if params.annotations %}
|
|
229
|
+
<script type="application/json" data-highcharts-annotations--{{ params.id }}>
|
|
230
|
+
{{ params.annotations | tojson }}
|
|
231
|
+
</script>
|
|
232
|
+
{% endif %}
|
|
233
|
+
{% if params.rangeAnnotations %}
|
|
234
|
+
<script type="application/json" data-highcharts-range-annotations--{{ params.id }}>
|
|
235
|
+
{{ params.rangeAnnotations | tojson }}
|
|
236
|
+
</script>
|
|
237
|
+
{% endif %}
|
|
238
|
+
{% if params.referenceLineAnnotations %}
|
|
239
|
+
<script type="application/json" data-highcharts-reference-line-annotations--{{ params.id }}>
|
|
240
|
+
{{ params.referenceLineAnnotations | tojson }}
|
|
241
|
+
</script>
|
|
242
|
+
{% endif %}
|
|
243
|
+
<!-- prettier-ignore-end -->
|
|
196
244
|
{% endif %}
|
|
197
|
-
{% if params.annotations %}
|
|
198
|
-
<script type="application/json" data-highcharts-annotations--{{ params.id }}>
|
|
199
|
-
{{ params.annotations | tojson }}
|
|
200
|
-
</script>
|
|
201
|
-
{% endif %}
|
|
202
|
-
{% if params.rangeAnnotations %}
|
|
203
|
-
<script type="application/json" data-highcharts-range-annotations--{{ params.id }}>
|
|
204
|
-
{{ params.rangeAnnotations | tojson }}
|
|
205
|
-
</script>
|
|
206
|
-
{% endif %}
|
|
207
|
-
{% if params.referenceLineAnnotations %}
|
|
208
|
-
<script type="application/json" data-highcharts-reference-line-annotations--{{ params.id }}>
|
|
209
|
-
{{ params.referenceLineAnnotations | tojson }}
|
|
210
|
-
</script>
|
|
211
|
-
{% endif %}
|
|
212
|
-
<!-- prettier-ignore-end -->
|
|
213
245
|
</div>
|
|
214
246
|
{% endmacro %}
|