You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/09/30 02:57:34 UTC
[incubator-echarts-examples] branch next updated: update examples
This is an automated email from the ASF dual-hosted git repository.
shenyi 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 55530c4 update examples
55530c4 is described below
commit 55530c427c11f308fd6b201b2c934a2a19d6eb23
Author: pissang <bm...@gmail.com>
AuthorDate: Wed Sep 30 10:57:21 2020 +0800
update examples
---
public/data/custom-cartesian-polygon.js | 8 ++------
public/data/graph-force.js | 5 +----
public/data/line-tooltip-touch.js | 1 -
public/data/sankey-nodeAlign-left.js | 1 -
4 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/public/data/custom-cartesian-polygon.js b/public/data/custom-cartesian-polygon.js
index fcaf109..44c5564 100644
--- a/public/data/custom-cartesian-polygon.js
+++ b/public/data/custom-cartesian-polygon.js
@@ -30,12 +30,7 @@ function renderItem(params, api) {
return {
type: 'polygon',
shape: {
- points: echarts.graphic.clipPointsByRect(points, {
- x: params.coordSys.x,
- y: params.coordSys.y,
- width: params.coordSys.width,
- height: params.coordSys.height
- })
+ points: points
},
style: api.style({
fill: color,
@@ -63,6 +58,7 @@ option = {
series: [{
type: 'custom',
renderItem: renderItem,
+ clip: true,
data: data
}]
};
diff --git a/public/data/graph-force.js b/public/data/graph-force.js
index a53becc..51a27be 100644
--- a/public/data/graph-force.js
+++ b/public/data/graph-force.js
@@ -8,9 +8,7 @@ myChart.showLoading();
$.get(ROOT_PATH + '/data/asset/data/les-miserables.json', function (graph) {
myChart.hideLoading();
graph.nodes.forEach(function (node) {
- node.label = {
- show: node.symbolSize > 30
- };
+ node.symbolSize = 5;
});
option = {
title: {
@@ -26,7 +24,6 @@ $.get(ROOT_PATH + '/data/asset/data/les-miserables.json', function (graph) {
return a.name;
})
}],
- animation: false,
series : [
{
name: 'Les Miserables',
diff --git a/public/data/line-tooltip-touch.js b/public/data/line-tooltip-touch.js
index 3a405f1..488f3fd 100644
--- a/public/data/line-tooltip-touch.js
+++ b/public/data/line-tooltip-touch.js
@@ -25,7 +25,6 @@ for (var i = 1; i < 10; i++) {
}
option = {
- animation: false,
title: {
left: 'center',
text: '触屏 tooltip 和 dataZoom 示例',
diff --git a/public/data/sankey-nodeAlign-left.js b/public/data/sankey-nodeAlign-left.js
index 3c4038f..ab64d9e 100644
--- a/public/data/sankey-nodeAlign-left.js
+++ b/public/data/sankey-nodeAlign-left.js
@@ -16,7 +16,6 @@ $.get(ROOT_PATH + '/data/asset/data/energy.json', function (data) {
trigger: 'item',
triggerOn: 'mousemove'
},
- animation: false,
series: [
{
type: 'sankey',
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org