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 2019/01/07 08:42:54 UTC

[incubator-echarts] branch master updated: tweak.

This is an automated email from the ASF dual-hosted git repository.

sushuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git


The following commit(s) were added to refs/heads/master by this push:
     new 81f2e0e  tweak.
     new 839b339  Merge branch 'master' of https://github.com/apache/incubator-echarts
81f2e0e is described below

commit 81f2e0ed02f509b232a9b53deb0c11c62f21db0e
Author: sushuang <su...@gmail.com>
AuthorDate: Sat Jan 5 06:25:30 2019 +0800

    tweak.
---
 test/brush3.html | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)

diff --git a/test/brush3.html b/test/brush3.html
index c713bb1..e20fab1 100644
--- a/test/brush3.html
+++ b/test/brush3.html
@@ -39,9 +39,68 @@ under the License.
         </style>
 
 
+        <div id="main1"></div>
         <div id="main0"></div>
 
 
+
+
+
+
+
+
+        <script>
+
+            require([
+                'echarts'
+            ], function (echarts) {
+
+                var data = [];
+                for (var i = 0; i < 10; i++) {
+                    data.push([
+                        Math.random() * 10,
+                        Math.random() * 10
+                    ]);
+                }
+
+                var option = {
+                    toolbox: {
+                        left: 10
+                    },
+                    brush: {
+                        xAxisIndex: 'all',
+                        removeOnClick: true,
+                        brushMode: 'single'
+                    },
+                    xAxis: {
+                        min: 0,
+                        max: 10
+                    },
+                    yAxis: {
+                        min: 0,
+                        max: 10
+                    },
+                    series: {
+                        type: 'bar',
+                        data: data
+                    }
+                };
+
+                var chart = testHelper.create(echarts, 'main1', {
+                    title: 'removeOnClick',
+                    height: 200,
+                    option: option
+                });
+
+                chart && chart.on('brushSelected', function () {
+                    console.log('brushSelecteddd');
+                });
+            });
+
+        </script>
+
+
+
         <script>
 
             require([
@@ -108,5 +167,13 @@ under the License.
             });
 
         </script>
+
+
+
+
+
+
+
+
     </body>
 </html>
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org