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/11/16 17:18:56 UTC
[incubator-echarts-examples] branch next updated: tweak color.
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 7a6964c tweak color.
7a6964c is described below
commit 7a6964cba940c3b46a9818d1012512478c2d9fe4
Author: 100pah <su...@gmail.com>
AuthorDate: Tue Nov 17 01:14:37 2020 +0800
tweak color.
---
public/data/custom-combine-separate-morph.js | 23 +++++++++++++++--------
public/data/custom-story-transition.js | 7 ++-----
2 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/public/data/custom-combine-separate-morph.js b/public/data/custom-combine-separate-morph.js
index 46a6414..1794557 100644
--- a/public/data/custom-combine-separate-morph.js
+++ b/public/data/custom-combine-separate-morph.js
@@ -14,8 +14,15 @@ var CLUSTER_COLORS = [
'#cc5664', '#9bd6ec', '#ea946e', '#8acaaa', '#f1ec64', '#ee8686', '#a48dc1', '#5da6bc', '#b9dcae'
];
var Z_TAG_COLORS = [
- '#c23531', '#2f4554', '#61a0a8', '#d48265', '#91c7ae', '#749f83',
- '#ca8622', '#bda29a', '#6e7074', '#546570', '#c4ccd3'
+ '#5470c6',
+ '#91cc75',
+ '#fac858',
+ '#ee6666',
+ '#73c0de',
+ '#3ba272',
+ '#fc8452',
+ '#9a60b4',
+ '#ea7ccc'
];
var Z_TAG_COLORS_2 = [
'#51689b', '#ce5c5c', '#fbc357', '#8fbf8f', '#659d84', '#fb8e6a', '#c77288', '#786090',
@@ -220,8 +227,8 @@ var optionCreators = {
api.value('ATA')
]);
var zTagVal = api.value('Z_TAG');
- var color1 = getFromPalette(zTagVal, Z_TAG_COLORS);
- var color2 = getFromPalette(zTagVal, Z_TAG_COLORS_2);
+ var color1 = '#aaa';
+ var color2 = getFromPalette(zTagVal, Z_TAG_COLORS);
return {
type: 'group',
x: pos[0],
@@ -231,9 +238,9 @@ var optionCreators = {
morph: true,
shape: {
points: [
- [-40, -2],
- [40, -2],
- [0, -35]
+ [-35, -2],
+ [35, -2],
+ [0, -25]
]
},
style: {
@@ -247,7 +254,7 @@ var optionCreators = {
x: -20,
y: 0,
width: 40,
- height: 30
+ height: 25
},
style: {
fill: color2
diff --git a/public/data/custom-story-transition.js b/public/data/custom-story-transition.js
index 6497271..5ea5b1e 100644
--- a/public/data/custom-story-transition.js
+++ b/public/data/custom-story-transition.js
@@ -21,14 +21,11 @@ function run(_rawData) {
echarts.registerTransform(_global.myTransform.id);
- const COLORS = [
- '#37A2DA', '#e06343', '#37a354', '#b55dba', '#b5bd48', '#8378EA', '#96BFFF'
- ];
const COUNTRY_A = 'Germany';
const COUNTRY_B = 'France';
const CONTENT_COLORS = {
- [COUNTRY_A]: '#37a354',
- [COUNTRY_B]: '#e06343'
+ [COUNTRY_A]: '#5470c6',
+ [COUNTRY_B]: '#91cc75'
};
const Z2 = {
[COUNTRY_A]: 1,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org