You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2020/12/22 08:29:44 UTC
[incubator-echarts-examples] branch next updated: example: add
timeline example.
This is an automated email from the ASF dual-hosted git repository.
sushuang pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-examples.git
The following commit(s) were added to refs/heads/next by this push:
new 46d70a4 example: add timeline example.
46d70a4 is described below
commit 46d70a4356fe8e93046db3802f0616c137099f1b
Author: 100pah <su...@gmail.com>
AuthorDate: Tue Dec 22 16:24:46 2020 +0800
example: add timeline example.
---
public/data/doc-example/timeline-dynamic-series.js | 72 ++++++++++++++++++++++
1 file changed, 72 insertions(+)
diff --git a/public/data/doc-example/timeline-dynamic-series.js b/public/data/doc-example/timeline-dynamic-series.js
new file mode 100644
index 0000000..34496c3
--- /dev/null
+++ b/public/data/doc-example/timeline-dynamic-series.js
@@ -0,0 +1,72 @@
+
+var option = {
+ baseOption: {
+ timeline: {
+ axisType: 'category',
+ // realtime: false,
+ // loop: false,
+ autoPlay: false,
+ // currentIndex: 2,
+ playInterval: 1000,
+ controlStyle: {
+ stopIcon: 'image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAGpJREFUWAntlkEKwDAIBKP+/znt82xrD6FIpSSHXDpCQBeXDXOyNQoCBQEz21T1eL7QivUuj/qkO1MTwUm6R3cvPbEw6tO3kJUaH4AABCAAAQhAAAIQgEBJQET2fJxe2udZPuvLWcz/IXACuUMWMJDzUAgAAAAASUVORK5CYII=',
+ playIcon: 'path://M41.365908,29.4271388 L41.3664843,29.4265626 L26.3794329,19.1497136 L26.3747509,19.1541315 C26.0642269,18.8592621 25.6429678,18.677793 25.1786824,18.677793 C24.2236284,18.677793 23.4494433,19.4443188 23.4494433,20.3905371 C23.4494433,20.910214 23.4270417,21.9276946 23.4494433,21.9056292 L23.4494433,30.6673861 L23.4494433,39.8901629 C23.4494433,39.8977982 23.4494433,40.4825908 23.4494433,40.9444991 C23.4494433,41.8901412 24.2236284,42.656691 25.1786824,42 [...]
+ },
+ replaceMerge: 'series',
+ data: [
+ '2 series', '3 series', '1 series'
+ ],
+ },
+ tooltip: {
+ trigger:'axis',
+ axisPointer: {
+ type: 'shadow'
+ }
+ },
+ legend: {},
+ calculable: true,
+ grid: {
+ top:80, bottom: 100
+ },
+ toolbox: {
+ left: 'center',
+ top: 30,
+ feature: {
+ dataZoom: {}
+ }
+ },
+ xAxis: {
+ type: 'category',
+ data: ['CityB', 'CityT', 'CityH', 'CityS'],
+ splitLine: {show: false}
+ },
+ yAxis: [
+ {
+ type: 'value',
+ name: 'GDP'
+ }
+ ],
+ series: [
+ ]
+ },
+ options: [
+ {
+ series: [
+ {name: 'a', type: 'bar', data: [12, 33, 44, 55]},
+ {name: 'b', type: 'bar', data: [55, 66, 77, 88]},
+ ]
+ },
+ {
+ series : [
+ {name: 'a', type: 'bar', data: [22, 33, 44, 55]},
+ {name: 'b', type: 'bar', data: [55, 66, 77, 88]},
+ {name: 'c', type: 'bar', data: [55, 66, 77, 88]}
+ ]
+ },
+ {
+ series : [
+ {name: 'b', type: 'bar', data: [55, 66, 77, 88]}
+ ]
+ }
+ ]
+};
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org