wumumu commited on
Commit
fd73b6f
·
verified ·
1 Parent(s): 7cc4d9f

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. web/AnyChart/bar/_deps/cdn.anychart.com/ACDVF/button-bg.png +3 -0
  2. web/AnyChart/bar/_deps/cdn.anychart.com/ACDVF/editortoolbar.png +3 -0
  3. web/AnyChart/bar/_deps/ssl.gstatic.com/editor/button-bg.png +3 -0
  4. web/AnyChart/bar/_deps/ssl.gstatic.com/editor/editortoolbar.png +3 -0
  5. web/AnyChart/box/_deps/cdn.anychart.com/ACDVF/button-bg.png +3 -0
  6. web/AnyChart/box/_deps/cdn.anychart.com/ACDVF/editortoolbar.png +3 -0
  7. web/AnyChart/box/_deps/ssl.gstatic.com/editor/button-bg.png +3 -0
  8. web/AnyChart/box/_deps/ssl.gstatic.com/editor/editortoolbar.png +3 -0
  9. web/AnyChart/heatmap/_deps/cdn.anychart.com/ACDVF/button-bg.png +3 -0
  10. web/AnyChart/heatmap/_deps/cdn.anychart.com/ACDVF/editortoolbar.png +3 -0
  11. web/AnyChart/line/7_1.jpg +3 -0
  12. web/AnyChart/line/_deps/cdn.anychart.com/ACDVF/button-bg.png +3 -0
  13. web/AnyChart/line/_deps/cdn.anychart.com/ACDVF/editortoolbar.png +3 -0
  14. web/AnyChart/other/_deps/cdn.anychart.com/ACDVF/button-bg.png +3 -0
  15. web/AnyChart/other/_deps/cdn.anychart.com/ACDVF/editortoolbar.png +3 -0
  16. web/AnyChart/pie/_deps/cdn.anychart.com/ACDVF/button-bg.png +3 -0
  17. web/AnyChart/pie/_deps/cdn.anychart.com/ACDVF/editortoolbar.png +3 -0
  18. web/AnyChart/scatter/_deps/cdn.anychart.com/ACDVF/button-bg.png +3 -0
  19. web/AnyChart/scatter/_deps/cdn.anychart.com/ACDVF/editortoolbar.png +3 -0
  20. web/Highcharts/line/snow.png +3 -0
  21. web/Vchart/pie/_tmp_0014.png +3 -0
  22. web/amCharts/bar/chart_0073_bar.html +125 -0
  23. web/amCharts/bar/chart_0073_bar.inline01.js +0 -0
  24. web/amCharts/bar/chart_0074_bar.inline01.js +0 -0
  25. web/amCharts/bar/chart_0075_bar.inline01.js +0 -0
  26. web/amCharts/bar/chart_0076_bar.inline01.js +0 -0
  27. web/amCharts/bar/chart_0077_bar.inline01.js +0 -0
  28. web/amCharts/bar/chart_0080_bar.inline02.js +0 -0
  29. web/amCharts/bar/chart_0081_bar.inline01.js +0 -0
  30. web/amCharts/bar/chart_0082_bar.html +183 -0
  31. web/amCharts/bar/chart_0082_bar.inline01.js +0 -0
  32. web/amCharts/bar/chart_0082_bar.inline02.js +0 -0
  33. web/amCharts/bar/chart_0083_bar.html +0 -0
  34. web/amCharts/bar/chart_0083_bar.inline02.js +0 -0
  35. web/amCharts/bar/chart_0084_bar.inline03.js +2 -0
  36. web/amCharts/bar/chart_0085_bar.html +178 -0
  37. web/amCharts/bar/chart_0085_bar.inline01.js +0 -0
  38. web/amCharts/bar/chart_0085_bar.inline02.js +0 -0
  39. web/amCharts/bar/chart_0086_bar.html +361 -0
  40. web/amCharts/bar/chart_0086_bar.inline01.js +0 -0
  41. web/amCharts/bar/chart_0087_bar.inline01.js +0 -0
  42. web/amCharts/bar/chart_0087_bar.inline02.js +0 -0
  43. web/amCharts/bar/chart_0088_bar.inline01.js +0 -0
  44. web/amCharts/bar/chart_0088_bar.inline02.js +0 -0
  45. web/amCharts/bar/chart_0089_bar.html +159 -0
  46. web/amCharts/bar/chart_0089_bar.inline02.js +0 -0
  47. web/amCharts/bar/chart_0089_bar.inline03.js +2 -0
  48. web/amCharts/bar/chart_0090_bar.html +0 -0
  49. web/amCharts/bar/chart_0090_bar.inline01.js +0 -0
  50. web/amCharts/bar/chart_0090_bar.inline03.js +2 -0
web/AnyChart/bar/_deps/cdn.anychart.com/ACDVF/button-bg.png ADDED

Git LFS Details

  • SHA256: dbd262f16c82f8fa57a097aa58541dcb298548645b0a0304b8083fd3318c528a
  • Pointer size: 128 Bytes
  • Size of remote file: 422 Bytes
web/AnyChart/bar/_deps/cdn.anychart.com/ACDVF/editortoolbar.png ADDED

Git LFS Details

  • SHA256: 3ee65cc9893738cbebc8208164c8e0eca159f63280e5084a448e01fe4f1db662
  • Pointer size: 129 Bytes
  • Size of remote file: 2.76 kB
web/AnyChart/bar/_deps/ssl.gstatic.com/editor/button-bg.png ADDED

Git LFS Details

  • SHA256: dbd262f16c82f8fa57a097aa58541dcb298548645b0a0304b8083fd3318c528a
  • Pointer size: 128 Bytes
  • Size of remote file: 422 Bytes
web/AnyChart/bar/_deps/ssl.gstatic.com/editor/editortoolbar.png ADDED

Git LFS Details

  • SHA256: 3ee65cc9893738cbebc8208164c8e0eca159f63280e5084a448e01fe4f1db662
  • Pointer size: 129 Bytes
  • Size of remote file: 2.76 kB
web/AnyChart/box/_deps/cdn.anychart.com/ACDVF/button-bg.png ADDED

Git LFS Details

  • SHA256: dbd262f16c82f8fa57a097aa58541dcb298548645b0a0304b8083fd3318c528a
  • Pointer size: 128 Bytes
  • Size of remote file: 422 Bytes
web/AnyChart/box/_deps/cdn.anychart.com/ACDVF/editortoolbar.png ADDED

Git LFS Details

  • SHA256: 3ee65cc9893738cbebc8208164c8e0eca159f63280e5084a448e01fe4f1db662
  • Pointer size: 129 Bytes
  • Size of remote file: 2.76 kB
web/AnyChart/box/_deps/ssl.gstatic.com/editor/button-bg.png ADDED

Git LFS Details

  • SHA256: dbd262f16c82f8fa57a097aa58541dcb298548645b0a0304b8083fd3318c528a
  • Pointer size: 128 Bytes
  • Size of remote file: 422 Bytes
web/AnyChart/box/_deps/ssl.gstatic.com/editor/editortoolbar.png ADDED

Git LFS Details

  • SHA256: 3ee65cc9893738cbebc8208164c8e0eca159f63280e5084a448e01fe4f1db662
  • Pointer size: 129 Bytes
  • Size of remote file: 2.76 kB
web/AnyChart/heatmap/_deps/cdn.anychart.com/ACDVF/button-bg.png ADDED

Git LFS Details

  • SHA256: dbd262f16c82f8fa57a097aa58541dcb298548645b0a0304b8083fd3318c528a
  • Pointer size: 128 Bytes
  • Size of remote file: 422 Bytes
web/AnyChart/heatmap/_deps/cdn.anychart.com/ACDVF/editortoolbar.png ADDED

Git LFS Details

  • SHA256: 3ee65cc9893738cbebc8208164c8e0eca159f63280e5084a448e01fe4f1db662
  • Pointer size: 129 Bytes
  • Size of remote file: 2.76 kB
web/AnyChart/line/7_1.jpg ADDED

Git LFS Details

  • SHA256: 50fea099120b9a3445878faca385b496dced02ca9237479c19adbd996734a39c
  • Pointer size: 131 Bytes
  • Size of remote file: 142 kB
web/AnyChart/line/_deps/cdn.anychart.com/ACDVF/button-bg.png ADDED

Git LFS Details

  • SHA256: dbd262f16c82f8fa57a097aa58541dcb298548645b0a0304b8083fd3318c528a
  • Pointer size: 128 Bytes
  • Size of remote file: 422 Bytes
web/AnyChart/line/_deps/cdn.anychart.com/ACDVF/editortoolbar.png ADDED

Git LFS Details

  • SHA256: 3ee65cc9893738cbebc8208164c8e0eca159f63280e5084a448e01fe4f1db662
  • Pointer size: 129 Bytes
  • Size of remote file: 2.76 kB
web/AnyChart/other/_deps/cdn.anychart.com/ACDVF/button-bg.png ADDED

Git LFS Details

  • SHA256: dbd262f16c82f8fa57a097aa58541dcb298548645b0a0304b8083fd3318c528a
  • Pointer size: 128 Bytes
  • Size of remote file: 422 Bytes
web/AnyChart/other/_deps/cdn.anychart.com/ACDVF/editortoolbar.png ADDED

Git LFS Details

  • SHA256: 3ee65cc9893738cbebc8208164c8e0eca159f63280e5084a448e01fe4f1db662
  • Pointer size: 129 Bytes
  • Size of remote file: 2.76 kB
web/AnyChart/pie/_deps/cdn.anychart.com/ACDVF/button-bg.png ADDED

Git LFS Details

  • SHA256: dbd262f16c82f8fa57a097aa58541dcb298548645b0a0304b8083fd3318c528a
  • Pointer size: 128 Bytes
  • Size of remote file: 422 Bytes
web/AnyChart/pie/_deps/cdn.anychart.com/ACDVF/editortoolbar.png ADDED

Git LFS Details

  • SHA256: 3ee65cc9893738cbebc8208164c8e0eca159f63280e5084a448e01fe4f1db662
  • Pointer size: 129 Bytes
  • Size of remote file: 2.76 kB
web/AnyChart/scatter/_deps/cdn.anychart.com/ACDVF/button-bg.png ADDED

Git LFS Details

  • SHA256: dbd262f16c82f8fa57a097aa58541dcb298548645b0a0304b8083fd3318c528a
  • Pointer size: 128 Bytes
  • Size of remote file: 422 Bytes
web/AnyChart/scatter/_deps/cdn.anychart.com/ACDVF/editortoolbar.png ADDED

Git LFS Details

  • SHA256: 3ee65cc9893738cbebc8208164c8e0eca159f63280e5084a448e01fe4f1db662
  • Pointer size: 129 Bytes
  • Size of remote file: 2.76 kB
web/Highcharts/line/snow.png ADDED

Git LFS Details

  • SHA256: 53efec86d597ff607c35f7579a76122d9c3fb25345745509c7203a979b384c40
  • Pointer size: 129 Bytes
  • Size of remote file: 1.61 kB
web/Vchart/pie/_tmp_0014.png ADDED

Git LFS Details

  • SHA256: d6b8dd32f132ea66afc765f0638df2823b326bc0372abbb76328a74490e5b832
  • Pointer size: 130 Bytes
  • Size of remote file: 43.4 kB
web/amCharts/bar/chart_0073_bar.html ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>bar-1</title>
7
+ <style>
8
+ html, body { width: 100%; height: 100%; margin: 0; padding: 0; }
9
+ #chartdiv { width: 100%; height: 100vh; }
10
+ </style>
11
+ </head>
12
+ <body>
13
+ <div id="chartdiv"></div>
14
+ <script src="./chart_0073_bar.inline01.js"></script>
15
+ <script data-chart-inline="true" type="text/plain">
16
+ // .build_tmp/bar_1_radar-column-iwatch-style/index.ts
17
+ var root = Root.new("chartdiv");
18
+ root.setThemes([
19
+ Animated_default.new(root)
20
+ ]);
21
+ var chart = root.container.children.push(RadarChart.new(root, {
22
+ panX: false,
23
+ panY: false,
24
+ wheelX: "panX",
25
+ wheelY: "zoomX",
26
+ innerRadius: percent(40)
27
+ }));
28
+ chart.get("colors").set("step", 2);
29
+ var cursor = chart.set("cursor", RadarCursor.new(root, {
30
+ behavior: "zoomX"
31
+ }));
32
+ cursor.lineY.set("visible", false);
33
+ var yRenderer = AxisRendererRadial.new(root, { minGridDistance: 20 });
34
+ var yAxis = chart.yAxes.push(CategoryAxis.new(root, {
35
+ maxDeviation: 0,
36
+ categoryField: "category",
37
+ renderer: yRenderer
38
+ }));
39
+ var xAxis = chart.xAxes.push(DateAxis.new(root, {
40
+ min: (/* @__PURE__ */ new Date("2021-01-01 00:00:00")).getTime(),
41
+ max: (/* @__PURE__ */ new Date("2022-01-01 00:00:00")).getTime(),
42
+ baseInterval: { timeUnit: "day", count: 1 },
43
+ renderer: AxisRendererCircular.new(root, {})
44
+ }));
45
+ var data = [
46
+ {
47
+ category: "One",
48
+ startDate1: (/* @__PURE__ */ new Date("2021-01-01")).getTime(),
49
+ endDate1: (/* @__PURE__ */ new Date("2021-03-01")).getTime()
50
+ },
51
+ {
52
+ category: "One",
53
+ startDate1: (/* @__PURE__ */ new Date("2021-04-01")).getTime(),
54
+ endDate1: (/* @__PURE__ */ new Date("2021-08-15")).getTime()
55
+ },
56
+ {
57
+ category: "Two",
58
+ startDate2: (/* @__PURE__ */ new Date("2021-03-01")).getTime(),
59
+ endDate2: (/* @__PURE__ */ new Date("2021-06-01")).getTime()
60
+ },
61
+ {
62
+ category: "Two",
63
+ startDate2: (/* @__PURE__ */ new Date("2021-08-01")).getTime(),
64
+ endDate2: (/* @__PURE__ */ new Date("2021-10-01")).getTime()
65
+ },
66
+ {
67
+ category: "Three",
68
+ startDate3: (/* @__PURE__ */ new Date("2021-02-01")).getTime(),
69
+ endDate3: (/* @__PURE__ */ new Date("2021-07-01")).getTime()
70
+ },
71
+ {
72
+ category: "Four",
73
+ startDate4: (/* @__PURE__ */ new Date("2021-06-09")).getTime(),
74
+ endDate4: (/* @__PURE__ */ new Date("2021-09-01")).getTime()
75
+ },
76
+ {
77
+ category: "Four",
78
+ startDate4: (/* @__PURE__ */ new Date("2021-10-01")).getTime(),
79
+ endDate4: (/* @__PURE__ */ new Date("2021-12-15")).getTime()
80
+ },
81
+ {
82
+ category: "Five",
83
+ startDate5: (/* @__PURE__ */ new Date("2021-02-01")).getTime(),
84
+ endDate5: (/* @__PURE__ */ new Date("2021-04-15")).getTime()
85
+ },
86
+ {
87
+ category: "Five",
88
+ startDate5: (/* @__PURE__ */ new Date("2021-10-01")).getTime(),
89
+ endDate5: (/* @__PURE__ */ new Date("2021-12-31")).getTime()
90
+ }
91
+ ];
92
+ root.dateFormatter.setAll({
93
+ dateFormat: "yyyy-MM-dd",
94
+ dateFields: ["valueX", "openValueX"]
95
+ });
96
+ for (let i = 1; i < 6; i++) {
97
+ const series = chart.series.push(RadarColumnSeries.new(root, {
98
+ clustered: false,
99
+ name: "Series",
100
+ xAxis,
101
+ yAxis,
102
+ categoryYField: "category",
103
+ valueXField: "endDate" + i,
104
+ openValueXField: "startDate" + i
105
+ }));
106
+ series.columns.template.set("cornerRadius", 25);
107
+ series.columns.template.set("tooltipText", "{category}: {openValueX} - {valueX}");
108
+ series.data.setAll(data);
109
+ series.appear(2e3, 100);
110
+ series.data.setAll(data);
111
+ }
112
+ yAxis.data.setAll([
113
+ { category: "One" },
114
+ { category: "Two" },
115
+ { category: "Three" },
116
+ { category: "Four" },
117
+ { category: "Five" }
118
+ ]);
119
+ chart.set("scrollbarX", Scrollbar.new(root, { orientation: "horizontal" }));
120
+ chart.set("scrollbarY", Scrollbar.new(root, { orientation: "vertical" }));
121
+ xAxis.data.setAll(data);
122
+ chart.appear(2e3, 100);
123
+ </script>
124
+ </body>
125
+ </html>
web/amCharts/bar/chart_0073_bar.inline01.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0074_bar.inline01.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0075_bar.inline01.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0076_bar.inline01.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0077_bar.inline01.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0080_bar.inline02.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0081_bar.inline01.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0082_bar.html ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>Clustered Bar Chart</title>
7
+ <style>
8
+ html, body { width: 100%; height: 100%; margin: 0; padding: 0; }
9
+ #chartdiv { width: 100%; height: 100vh; }
10
+ #chartdiv {
11
+ width: 100%;
12
+ height: 500px;
13
+ }
14
+ </style>
15
+ </head>
16
+ <body>
17
+ <div id="chartdiv"></div>
18
+ <script src="./chart_0082_bar.inline01.js"></script>
19
+ <script src="./chart_0082_bar.inline02.js"></script>
20
+ <script src="./chart_0082_bar.inline03.js"></script>
21
+ <script data-chart-inline="true">
22
+ // Create root element
23
+ // https://www.amcharts.com/docs/v5/getting-started/#Root_element
24
+ var root = am5.Root.new("chartdiv");
25
+
26
+
27
+ // Set themes
28
+ // https://www.amcharts.com/docs/v5/concepts/themes/
29
+ root.setThemes([
30
+ am5themes_Animated.new(root)
31
+ ]);
32
+
33
+
34
+ // Create chart
35
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/
36
+ var chart = root.container.children.push(am5xy.XYChart.new(root, {
37
+ panX: false,
38
+ panY: false,
39
+ wheelX: "panX",
40
+ wheelY: "zoomX",
41
+ paddingLeft:0,
42
+ layout: root.verticalLayout
43
+ }));
44
+
45
+
46
+ // Add legend
47
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/legend-xy-series/
48
+ var legend = chart.children.push(am5.Legend.new(root, {
49
+ centerX: am5.p50,
50
+ x: am5.p50
51
+ }))
52
+
53
+
54
+ // Data
55
+ var data = [{
56
+ year: "2017",
57
+ income: 23.5,
58
+ expenses: 18.1
59
+ }, {
60
+ year: "2018",
61
+ income: 26.2,
62
+ expenses: 22.8
63
+ }, {
64
+ year: "2019",
65
+ income: 30.1,
66
+ expenses: 23.9
67
+ }, {
68
+ year: "2020",
69
+ income: 29.5,
70
+ expenses: 25.1
71
+ }, {
72
+ year: "2021",
73
+ income: 24.6,
74
+ expenses: 25
75
+ }];
76
+
77
+
78
+ // Create axes
79
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/axes/
80
+ var yAxis = chart.yAxes.push(am5xy.CategoryAxis.new(root, {
81
+ categoryField: "year",
82
+ renderer: am5xy.AxisRendererY.new(root, {
83
+ inversed: true,
84
+ cellStartLocation: 0.1,
85
+ cellEndLocation: 0.9,
86
+ minorGridEnabled: true
87
+ })
88
+ }));
89
+
90
+ yAxis.data.setAll(data);
91
+
92
+ var xAxis = chart.xAxes.push(am5xy.ValueAxis.new(root, {
93
+ renderer: am5xy.AxisRendererX.new(root, {
94
+ strokeOpacity: 0.1,
95
+ minGridDistance: 50
96
+ }),
97
+ min: 0
98
+ }));
99
+
100
+
101
+ // Add series
102
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/series/
103
+ function createSeries(field, name) {
104
+ var series = chart.series.push(am5xy.ColumnSeries.new(root, {
105
+ name: name,
106
+ xAxis: xAxis,
107
+ yAxis: yAxis,
108
+ valueXField: field,
109
+ categoryYField: "year",
110
+ sequencedInterpolation: true,
111
+ tooltip: am5.Tooltip.new(root, {
112
+ pointerOrientation: "horizontal",
113
+ labelText: "[bold]{name}[/]\n{categoryY}: {valueX}"
114
+ })
115
+ }));
116
+
117
+ series.columns.template.setAll({
118
+ height: am5.p100,
119
+ strokeOpacity: 0
120
+ });
121
+
122
+
123
+ series.bullets.push(function () {
124
+ return am5.Bullet.new(root, {
125
+ locationX: 1,
126
+ locationY: 0.5,
127
+ sprite: am5.Label.new(root, {
128
+ centerY: am5.p50,
129
+ text: "{valueX}",
130
+ populateText: true
131
+ })
132
+ });
133
+ });
134
+
135
+ series.bullets.push(function () {
136
+ return am5.Bullet.new(root, {
137
+ locationX: 1,
138
+ locationY: 0.5,
139
+ sprite: am5.Label.new(root, {
140
+ centerX: am5.p100,
141
+ centerY: am5.p50,
142
+ text: "{name}",
143
+ fill: am5.color(0xffffff),
144
+ populateText: true
145
+ })
146
+ });
147
+ });
148
+
149
+ series.data.setAll(data);
150
+ series.appear();
151
+
152
+ return series;
153
+ }
154
+
155
+ createSeries("income", "Income");
156
+ createSeries("expenses", "Expenses");
157
+
158
+
159
+ // Add legend
160
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/legend-xy-series/
161
+ var legend = chart.children.push(am5.Legend.new(root, {
162
+ centerX: am5.p50,
163
+ x: am5.p50
164
+ }));
165
+
166
+ legend.data.setAll(chart.series.values);
167
+
168
+
169
+ // Add cursor
170
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/cursor/
171
+ var cursor = chart.set("cursor", am5xy.XYCursor.new(root, {
172
+ behavior: "zoomY"
173
+ }));
174
+ cursor.lineY.set("forceHidden", true);
175
+ cursor.lineX.set("forceHidden", true);
176
+
177
+
178
+ // Make stuff animate on load
179
+ // https://www.amcharts.com/docs/v5/concepts/animations/
180
+ chart.appear(1000, 100);
181
+ </script>
182
+ </body>
183
+ </html>
web/amCharts/bar/chart_0082_bar.inline01.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0082_bar.inline02.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0083_bar.html ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0083_bar.inline02.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0084_bar.inline03.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ "use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]);
2
+ //# sourceMappingURL=Animated.js.map
web/amCharts/bar/chart_0085_bar.html ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>Grouped Stacks</title>
7
+ <style>
8
+ html, body { width: 100%; height: 100%; margin: 0; padding: 0; }
9
+ #chartdiv { width: 100%; height: 100vh; }
10
+ #chartdiv {
11
+ width: 100%;
12
+ height: 500px;
13
+ }
14
+ </style>
15
+ </head>
16
+ <body>
17
+ <div id="chartdiv"></div>
18
+ <script src="./chart_0085_bar.inline01.js"></script>
19
+ <script src="./chart_0085_bar.inline02.js"></script>
20
+ <script src="./chart_0085_bar.inline03.js"></script>
21
+ <script data-chart-inline="true">
22
+ // Create root element
23
+ // https://www.amcharts.com/docs/v5/getting-started/#Root_element
24
+ var root = am5.Root.new("chartdiv");
25
+
26
+
27
+ // Set themes
28
+ // https://www.amcharts.com/docs/v5/concepts/themes/
29
+ root.setThemes([
30
+ am5themes_Animated.new(root)
31
+ ]);
32
+
33
+
34
+ // Create chart
35
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/
36
+ var chart = root.container.children.push(am5xy.XYChart.new(root, {
37
+ panX: false,
38
+ panY: false,
39
+ wheelX: "panX",
40
+ wheelY: "zoomX",
41
+ layout: root.verticalLayout
42
+ }));
43
+
44
+
45
+ // Add legend
46
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/legend-xy-series/
47
+ var legend = chart.children.push(
48
+ am5.Legend.new(root, {
49
+ centerX: am5.p50,
50
+ x: am5.p50
51
+ })
52
+ );
53
+
54
+ var data = [{
55
+ category: ""
56
+ }, {
57
+ category: "g1-2021",
58
+ s10: 20,
59
+ s11: 12
60
+ }, {
61
+ category: "g1-2022",
62
+ s10: 15,
63
+ s11: 8
64
+ }, {
65
+ category: "g1-2023",
66
+ s10: 12,
67
+ s11: 16
68
+ }, {
69
+ category: "g1-2024",
70
+ s10: 9,
71
+ s11: 12
72
+ }, {
73
+ category: ""
74
+ }, {
75
+ category: "g2-2021",
76
+ s20: 15,
77
+ s21: 16
78
+ }, {
79
+ category: "g2-2022",
80
+ s20: 20,
81
+ s21: 6
82
+ }, {
83
+ category: "g2-2023",
84
+ s20: 14,
85
+ s21: 11
86
+ }, {
87
+ category: "g2-2024",
88
+ s20: 19,
89
+ s21: 12
90
+ }, {
91
+ category: ""
92
+ }, {
93
+ category: "g3-2021",
94
+ s30: 5,
95
+ s31: 10
96
+ }, {
97
+ category: "g3-2022",
98
+ s30: 7,
99
+ s31: 12
100
+ }, {
101
+ category: "g3-2023",
102
+ s30: 15,
103
+ s31: 10
104
+ }, {
105
+ category: "g3-2024",
106
+ s30: 13,
107
+ s31: 14
108
+ }];
109
+
110
+
111
+ // Create axes
112
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/axes/
113
+ var xAxis = chart.xAxes.push(am5xy.CategoryAxis.new(root, {
114
+ categoryField: "category",
115
+ renderer: am5xy.AxisRendererX.new(root, {
116
+ cellStartLocation: 0.1,
117
+ cellEndLocation: 0.9,
118
+ minGridDistance: 10
119
+ }),
120
+ tooltip: am5.Tooltip.new(root, {})
121
+ }));
122
+
123
+ xAxis.get("renderer").labels.template.adapters.add("text", function(text, target) {
124
+ if (target.dataItem) {
125
+ return target.dataItem.get("category").split("-")[1];
126
+ }
127
+ return text;
128
+ });
129
+
130
+ xAxis.get("renderer").grid.template.set("forceHidden", true);
131
+
132
+ xAxis.data.setAll(data);
133
+
134
+ var yAxis = chart.yAxes.push(am5xy.ValueAxis.new(root, {
135
+ renderer: am5xy.AxisRendererY.new(root, {})
136
+ }));
137
+
138
+
139
+ // Add series
140
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/series/
141
+ function makeSeries(name, fieldName, color) {
142
+ var series = chart.series.push(am5xy.ColumnSeries.new(root, {
143
+ name: name,
144
+ xAxis: xAxis,
145
+ yAxis: yAxis,
146
+ stacked: true,
147
+ valueYField: fieldName,
148
+ categoryXField: "category",
149
+ stroke: color,
150
+ fill: color
151
+ }));
152
+
153
+ series.columns.template.setAll({
154
+ tooltipText: "{name}, {categoryX}:{valueY}",
155
+ width: am5.percent(90),
156
+ tooltipY: 0
157
+ });
158
+
159
+ series.data.setAll(data);
160
+ series.appear();
161
+ legend.data.push(series);
162
+ }
163
+
164
+ makeSeries("Series #1", "s10", am5.color(0x133F3D));
165
+ makeSeries("Series #2", "s11", am5.color(0x216E6A));
166
+
167
+ makeSeries("Series #3", "s20", am5.color(0x20320C));
168
+ makeSeries("Series #4", "s21", am5.color(0x4A731C));
169
+
170
+ makeSeries("Series #5", "s30", am5.color(0x3A1603));
171
+ makeSeries("Series #6", "s31", am5.color(0x883407));
172
+
173
+ // Make stuff animate on load
174
+ // https://www.amcharts.com/docs/v5/concepts/animations/
175
+ chart.appear(1000, 100);
176
+ </script>
177
+ </body>
178
+ </html>
web/amCharts/bar/chart_0085_bar.inline01.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0085_bar.inline02.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0086_bar.html ADDED
@@ -0,0 +1,361 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>Step Count Chart</title>
7
+ <style>
8
+ html, body { width: 100%; height: 100%; margin: 0; padding: 0; }
9
+ #chartdiv { width: 100%; height: 100vh; }
10
+ #chartdiv {
11
+ width: 100%;
12
+ height: 500px;
13
+ }
14
+ </style>
15
+ </head>
16
+ <body>
17
+ <div id="chartdiv"></div>
18
+ <script src="./chart_0086_bar.inline01.js"></script>
19
+ <script src="./chart_0086_bar.inline02.js"></script>
20
+ <script src="./chart_0086_bar.inline03.js"></script>
21
+ <script data-chart-inline="true">
22
+ // Create root element
23
+ // https://www.amcharts.com/docs/v5/getting-started/#Root_element
24
+ var root = am5.Root.new("chartdiv");
25
+
26
+ // Set themes
27
+ // https://www.amcharts.com/docs/v5/concepts/themes/
28
+ root.setThemes([
29
+ am5themes_Animated.new(root)
30
+ ]);
31
+
32
+ root.dateFormatter.setAll({
33
+ dateFormat: "yyyy-MM-dd",
34
+ dateFields: ["valueX"]
35
+ });
36
+
37
+ var data = [
38
+ {
39
+ date: "2021-01-01",
40
+ steps: 4561
41
+ },
42
+ {
43
+ date: "2021-01-02",
44
+ steps: 5687
45
+ },
46
+ {
47
+ date: "2021-01-03",
48
+ steps: 6348
49
+ },
50
+ {
51
+ date: "2021-01-04",
52
+ steps: 4878
53
+ },
54
+ {
55
+ date: "2021-01-05",
56
+ steps: 9867
57
+ },
58
+ {
59
+ date: "2021-01-06",
60
+ steps: 7561
61
+ },
62
+ {
63
+ date: "2021-01-07",
64
+ steps: 1287
65
+ },
66
+ {
67
+ date: "2021-01-08",
68
+ steps: 3298
69
+ },
70
+ {
71
+ date: "2021-01-09",
72
+ steps: 5697
73
+ },
74
+ {
75
+ date: "2021-01-10",
76
+ steps: 4878
77
+ },
78
+ {
79
+ date: "2021-01-11",
80
+ steps: 8788
81
+ },
82
+ {
83
+ date: "2021-01-12",
84
+ steps: 9560
85
+ },
86
+ {
87
+ date: "2021-01-13",
88
+ steps: 11687
89
+ },
90
+ {
91
+ date: "2021-01-14",
92
+ steps: 5878
93
+ },
94
+ {
95
+ date: "2021-01-15",
96
+ steps: 9789
97
+ },
98
+ {
99
+ date: "2021-01-16",
100
+ steps: 3987
101
+ },
102
+ {
103
+ date: "2021-01-17",
104
+ steps: 5898
105
+ },
106
+ {
107
+ date: "2021-01-18",
108
+ steps: 9878
109
+ },
110
+ {
111
+ date: "2021-01-19",
112
+ steps: 13687
113
+ },
114
+ {
115
+ date: "2021-01-20",
116
+ steps: 6789
117
+ },
118
+ {
119
+ date: "2021-01-21",
120
+ steps: 4531
121
+ },
122
+ {
123
+ date: "2021-01-22",
124
+ steps: 5856
125
+ },
126
+ {
127
+ date: "2021-01-23",
128
+ steps: 5737
129
+ },
130
+ {
131
+ date: "2021-01-24",
132
+ steps: 9987
133
+ },
134
+ {
135
+ date: "2021-01-25",
136
+ steps: 16457
137
+ },
138
+ {
139
+ date: "2021-01-26",
140
+ steps: 7878
141
+ },
142
+ {
143
+ date: "2021-01-27",
144
+ steps: 6845
145
+ },
146
+ {
147
+ date: "2021-01-28",
148
+ steps: 4659
149
+ },
150
+ {
151
+ date: "2021-01-29",
152
+ steps: 7892
153
+ },
154
+ {
155
+ date: "2021-01-30",
156
+ steps: 7362
157
+ },
158
+ {
159
+ date: "2021-01-31",
160
+ steps: 3268
161
+ }
162
+ ];
163
+
164
+ // Create chart
165
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/
166
+ var chart = root.container.children.push(
167
+ am5xy.XYChart.new(root, {
168
+ focusable: true,
169
+ panX: true,
170
+ panY: false,
171
+ wheelX: "panX",
172
+ wheelY: "none",
173
+ paddingLeft: 0,
174
+ paddingRight: 0
175
+ })
176
+ );
177
+
178
+ var easing = am5.ease.linear;
179
+
180
+ // hide zoomout button
181
+ chart.zoomOutButton.set("forceHidden", true);
182
+
183
+ // add label
184
+ chart.plotContainer.children.push(
185
+ am5.Label.new(root, { text: "Pan chart to change date", x: 100, y: 50 })
186
+ );
187
+
188
+ // Create axes
189
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/axes/
190
+ var xRenderer = am5xy.AxisRendererX.new(root, {
191
+ minGridDistance: 50,
192
+ strokeOpacity: 0.2,
193
+ minorGridEnabled: true
194
+ });
195
+ xRenderer.grid.template.set("forceHidden", true);
196
+
197
+ var xAxis = chart.xAxes.push(
198
+ am5xy.DateAxis.new(root, {
199
+ maxDeviation: 0.49,
200
+ snapTooltip: false,
201
+ baseInterval: {
202
+ timeUnit: "day",
203
+ count: 1
204
+ },
205
+ renderer: xRenderer,
206
+ tooltip: am5.Tooltip.new(root, {})
207
+ })
208
+ );
209
+
210
+ var yRenderer = am5xy.AxisRendererY.new(root, { inside: true });
211
+ yRenderer.grid.template.set("forceHidden", true);
212
+
213
+ var yAxis = chart.yAxes.push(
214
+ am5xy.ValueAxis.new(root, {
215
+ maxDeviation: 0,
216
+ renderer: yRenderer
217
+ })
218
+ );
219
+
220
+ // Add series
221
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/series/
222
+ var series = chart.series.push(
223
+ am5xy.ColumnSeries.new(root, {
224
+ xAxis: xAxis,
225
+ yAxis: yAxis,
226
+ valueYField: "steps",
227
+ valueXField: "date",
228
+ tooltip: am5.Tooltip.new(root, {
229
+ pointerOrientation: "vertical",
230
+ labelText: "{valueY}"
231
+ })
232
+ })
233
+ );
234
+
235
+ series.columns.template.setAll({
236
+ cornerRadiusTL: 15,
237
+ cornerRadiusTR: 15,
238
+ maxWidth: 30,
239
+ strokeOpacity: 0
240
+ });
241
+
242
+ series.columns.template.adapters.add("fill", function (fill, target) {
243
+ if (target.dataItem.get("valueY") < 6000) {
244
+ return am5.color(0xdadada);
245
+ }
246
+ return fill;
247
+ });
248
+
249
+ // Set up data processor to parse string dates
250
+ // https://www.amcharts.com/docs/v5/concepts/data/#Pre_processing_data
251
+ series.data.processor = am5.DataProcessor.new(root, {
252
+ dateFormat: "yyyy-MM-dd",
253
+ dateFields: ["date"]
254
+ });
255
+
256
+ series.data.setAll(data);
257
+
258
+ // do not allow tooltip to move horizontally
259
+ series.get("tooltip").adapters.add("x", function (x) {
260
+ return chart.plotContainer.toGlobal({
261
+ x: chart.plotContainer.width() / 2,
262
+ y: 0
263
+ }).x;
264
+ });
265
+
266
+ // add ranges
267
+ var goalRange = yAxis.createAxisRange(yAxis.makeDataItem({
268
+ value: 6000
269
+ }));
270
+
271
+ goalRange.get("grid").setAll({
272
+ forceHidden: false,
273
+ strokeOpacity: 0.2
274
+ });
275
+
276
+ var goalLabel = goalRange.get("label");
277
+
278
+ goalLabel.setAll({
279
+ centerY: am5.p100,
280
+ centerX: am5.p100,
281
+ text: "Goal"
282
+ });
283
+
284
+ // put to other side
285
+ goalLabel.adapters.add("x", function (x) {
286
+ return chart.plotContainer.width();
287
+ });
288
+
289
+ var goalRange2 = yAxis.createAxisRange(yAxis.makeDataItem({
290
+ value: 12000
291
+ }));
292
+
293
+ goalRange2.get("grid").setAll({
294
+ forceHidden: false,
295
+ strokeOpacity: 0.2
296
+ });
297
+
298
+ var goalLabel2 = goalRange2.get("label");
299
+
300
+ goalLabel2.setAll({
301
+ centerY: am5.p100,
302
+ centerX: am5.p100,
303
+ text: "2 x Goal"
304
+ });
305
+
306
+ // put to other side
307
+ goalLabel2.adapters.add("x", function (x) {
308
+ return chart.plotContainer.width();
309
+ });
310
+
311
+ // reposition when width changes
312
+ chart.plotContainer.onPrivate("width", function () {
313
+ goalLabel.markDirtyPosition();
314
+ goalLabel2.markDirtyPosition();
315
+ });
316
+
317
+ // Add cursor
318
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/cursor/
319
+ var cursor = chart.set("cursor", am5xy.XYCursor.new(root, {
320
+ alwaysShow: true,
321
+ behavior: "none",
322
+ positionX: 0.5 // make it always be at the center
323
+ }));
324
+ cursor.lineY.set("visible", false);
325
+
326
+ // zoom to last 11 days
327
+ series.events.on("datavalidated", function () {
328
+ var toTime =
329
+ series.dataItems[series.dataItems.length - 1].get("valueX") +
330
+ am5.time.getDuration("day", 1);
331
+ var fromTime = series.dataItems[series.dataItems.length - 11].get("valueX");
332
+
333
+ xAxis.zoomToValues(fromTime, toTime);
334
+ });
335
+
336
+ // when plot are is released, round zoom to nearest days
337
+ chart.plotContainer.events.on("globalpointerup", function () {
338
+ var dayDuration = am5.time.getDuration("day", 1);
339
+
340
+ var firstTime = am5.time
341
+ .round(new Date(series.dataItems[0].get("valueX")), "day", 1)
342
+ .getTime();
343
+ var lastTime =
344
+ series.dataItems[series.dataItems.length - 1].get("valueX") + dayDuration;
345
+ var totalTime = lastTime - firstTime;
346
+ var days = totalTime / dayDuration;
347
+
348
+ var roundedStart =
349
+ firstTime + Math.round(days * xAxis.get("start")) * dayDuration;
350
+ var roundedEnd =
351
+ firstTime + Math.round(days * xAxis.get("end")) * dayDuration;
352
+
353
+ xAxis.zoomToValues(roundedStart, roundedEnd);
354
+ });
355
+
356
+ // Make stuff animate on load
357
+ // https://www.amcharts.com/docs/v5/concepts/animations/
358
+ chart.appear(1000, 50);
359
+ </script>
360
+ </body>
361
+ </html>
web/amCharts/bar/chart_0086_bar.inline01.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0087_bar.inline01.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0087_bar.inline02.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0088_bar.inline01.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0088_bar.inline02.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0089_bar.html ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>Layered Column Chart</title>
7
+ <style>
8
+ html, body { width: 100%; height: 100%; margin: 0; padding: 0; }
9
+ #chartdiv { width: 100%; height: 100vh; }
10
+ #chartdiv {
11
+ width: 100%;
12
+ height: 500px;
13
+ }
14
+ </style>
15
+ </head>
16
+ <body>
17
+ <div id="chartdiv"></div>
18
+ <script src="./chart_0089_bar.inline01.js"></script>
19
+ <script src="./chart_0089_bar.inline02.js"></script>
20
+ <script src="./chart_0089_bar.inline03.js"></script>
21
+ <script data-chart-inline="true">
22
+ // Create root element
23
+ // https://www.amcharts.com/docs/v5/getting-started/#Root_element
24
+ var root = am5.Root.new("chartdiv");
25
+
26
+ // Set themes
27
+ // https://www.amcharts.com/docs/v5/concepts/themes/
28
+ root.setThemes([
29
+ am5themes_Animated.new(root)
30
+ ]);
31
+
32
+ // Create chart
33
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/
34
+ var chart = root.container.children.push(am5xy.XYChart.new(root, {
35
+ panX: true,
36
+ panY: false,
37
+ wheelX: "panX",
38
+ wheelY: "zoomX",
39
+ paddingLeft: 0,
40
+ layout: root.verticalLayout
41
+ }));
42
+
43
+ // Add scrollbar
44
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/scrollbars/
45
+ chart.set("scrollbarX", am5.Scrollbar.new(root, {
46
+ orientation: "horizontal"
47
+ }));
48
+
49
+ var data = [{
50
+ "country": "USA",
51
+ "year2004": 3.5,
52
+ "year2005": 4.2
53
+ }, {
54
+ "country": "UK",
55
+ "year2004": 1.7,
56
+ "year2005": 3.1
57
+ }, {
58
+ "country": "Canada",
59
+ "year2004": 2.8,
60
+ "year2005": 2.9
61
+ }, {
62
+ "country": "Japan",
63
+ "year2004": 2.6,
64
+ "year2005": 2.3
65
+ }, {
66
+ "country": "France",
67
+ "year2004": 1.4,
68
+ "year2005": 2.1
69
+ }, {
70
+ "country": "Brazil",
71
+ "year2004": 2.6,
72
+ "year2005": 4.9
73
+ }];
74
+
75
+ // Create axes
76
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/axes/
77
+ var xRenderer = am5xy.AxisRendererX.new(root, {
78
+ minGridDistance: 70,
79
+ minorGridEnabled: true
80
+ });
81
+
82
+ var xAxis = chart.xAxes.push(am5xy.CategoryAxis.new(root, {
83
+ categoryField: "country",
84
+ renderer: xRenderer,
85
+ tooltip: am5.Tooltip.new(root, {
86
+ themeTags: ["axis"],
87
+ animationDuration: 200
88
+ })
89
+ }));
90
+
91
+ xRenderer.grid.template.setAll({
92
+ location: 1
93
+ })
94
+
95
+ xAxis.data.setAll(data);
96
+
97
+ var yAxis = chart.yAxes.push(am5xy.ValueAxis.new(root, {
98
+ min: 0,
99
+ renderer: am5xy.AxisRendererY.new(root, {
100
+ strokeOpacity: 0.1
101
+ })
102
+ }));
103
+
104
+ // Add series
105
+ // https://www.amcharts.com/docs/v5/charts/xy-chart/series/
106
+
107
+ var series0 = chart.series.push(am5xy.ColumnSeries.new(root, {
108
+ name: "Income",
109
+ xAxis: xAxis,
110
+ yAxis: yAxis,
111
+ valueYField: "year2004",
112
+ categoryXField: "country",
113
+ clustered: false,
114
+ tooltip: am5.Tooltip.new(root, {
115
+ labelText: "2004: {valueY}"
116
+ })
117
+ }));
118
+
119
+ series0.columns.template.setAll({
120
+ width: am5.percent(80),
121
+ tooltipY: 0,
122
+ strokeOpacity: 0
123
+ });
124
+
125
+
126
+ series0.data.setAll(data);
127
+
128
+
129
+ var series1 = chart.series.push(am5xy.ColumnSeries.new(root, {
130
+ name: "Income",
131
+ xAxis: xAxis,
132
+ yAxis: yAxis,
133
+ valueYField: "year2005",
134
+ categoryXField: "country",
135
+ clustered: false,
136
+ tooltip: am5.Tooltip.new(root, {
137
+ labelText: "2005: {valueY}"
138
+ })
139
+ }));
140
+
141
+ series1.columns.template.setAll({
142
+ width: am5.percent(50),
143
+ tooltipY: 0,
144
+ strokeOpacity: 0
145
+ });
146
+
147
+ series1.data.setAll(data);
148
+
149
+ var cursor = chart.set("cursor", am5xy.XYCursor.new(root, {}));
150
+
151
+
152
+ // Make stuff animate on load
153
+ // https://www.amcharts.com/docs/v5/concepts/animations/
154
+ chart.appear(1000, 100);
155
+ series0.appear();
156
+ series1.appear();
157
+ </script>
158
+ </body>
159
+ </html>
web/amCharts/bar/chart_0089_bar.inline02.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0089_bar.inline03.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ "use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]);
2
+ //# sourceMappingURL=Animated.js.map
web/amCharts/bar/chart_0090_bar.html ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0090_bar.inline01.js ADDED
The diff for this file is too large to render. See raw diff
 
web/amCharts/bar/chart_0090_bar.inline03.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ "use strict";(self.webpackChunk_am5=self.webpackChunk_am5||[]).push([[4837],{9295:function(t,e,i){i.r(e),i.d(e,{am5themes_Animated:function(){return r}});var a=i(3409);class n extends a.Q{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=n}},function(t){var e=(9295,t(t.s=9295)),i=window;for(var a in e)i[a]=e[a];e.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})}]);
2
+ //# sourceMappingURL=Animated.js.map