File tree Expand file tree Collapse file tree 4 files changed +44
-1
lines changed
src/main/resources/io/jenkins/plugins Expand file tree Collapse file tree 4 files changed +44
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,13 @@ Then you can use ECharts in your jelly files using the following snippet:
23
23
``` xml
24
24
<st : adjunct includes =" io.jenkins.plugins.echarts" />
25
25
```
26
+ If you don't need all charts, you can also use one of
27
+ ``` xml
28
+ <st : adjunct includes =" io.jenkins.plugins.echarts-common" />
29
+ <st : adjunct includes =" io.jenkins.plugins.echarts-simple" />
30
+ ```
31
+ which provide smaller .js files, but also fewer charts. See the [ echarts documentation] ( https://echarts.apache.org/en/tutorial.html#Create%20Custom%20Build%20of%20ECharts )
32
+ for more information.
26
33
27
34
You can find several examples of Jenkins views that use ECharts in the
28
35
[ Warnings Next Generation plugin] ( https://github.com/jenkinsci/warnings-ng-plugin ) .
Original file line number Diff line number Diff line change
1
+ <?jelly escape-by-default =' true' ?>
2
+ <!--
3
+ Use it like <st:adjunct includes="io.jenkins.plugins.echarts-common"/>
4
+ -->
5
+ <j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" >
6
+
7
+ <j : new var =" h" className =" hudson.Functions" />
8
+ ${h.initPageVariables(context)}
9
+
10
+ <script type =" text/javascript" src =" ${resURL}/plugin/echarts-api/webjars/echarts-en.common.min.js" />
11
+
12
+ <st : adjunct includes =" io.jenkins.plugins.jquery3" />
13
+
14
+ <script type =" text/javascript" src =" ${resURL}/plugin/echarts-api/js/trend-chart.js" />
15
+ <script type =" text/javascript" src =" ${resURL}/plugin/echarts-api/js/zoomable-trend-chart.js" />
16
+ <script type =" text/javascript" src =" ${resURL}/plugin/echarts-api/js/pie-chart.js" />
17
+
18
+ </j : jelly >
Original file line number Diff line number Diff line change
1
+ <?jelly escape-by-default =' true' ?>
2
+ <!--
3
+ Use it like <st:adjunct includes="io.jenkins.plugins.echarts-simple"/>
4
+ -->
5
+ <j : jelly xmlns : j =" jelly:core" xmlns : st =" jelly:stapler" >
6
+
7
+ <j : new var =" h" className =" hudson.Functions" />
8
+ ${h.initPageVariables(context)}
9
+
10
+ <script type =" text/javascript" src =" ${resURL}/plugin/echarts-api/webjars/echarts-en.simple.min.js" />
11
+
12
+ <st : adjunct includes =" io.jenkins.plugins.jquery3" />
13
+
14
+ <script type =" text/javascript" src =" ${resURL}/plugin/echarts-api/js/trend-chart.js" />
15
+ <script type =" text/javascript" src =" ${resURL}/plugin/echarts-api/js/zoomable-trend-chart.js" />
16
+ <script type =" text/javascript" src =" ${resURL}/plugin/echarts-api/js/pie-chart.js" />
17
+
18
+ </j : jelly >
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Use it like <st:adjunct includes="io.jenkins.plugins.echarts"/>
7
7
<j : new var =" h" className =" hudson.Functions" />
8
8
${h.initPageVariables(context)}
9
9
10
- <script type =" text/javascript" src =" ${resURL}/plugin/echarts-api/webjars/echarts-en.common. min.js" />
10
+ <script type =" text/javascript" src =" ${resURL}/plugin/echarts-api/webjars/echarts-en.min.js" />
11
11
12
12
<st : adjunct includes =" io.jenkins.plugins.jquery3" />
13
13
You can’t perform that action at this time.
0 commit comments