From 95018a6f07231b5c0c0d96f404d4b82ce4713b0b Mon Sep 17 00:00:00 2001 From: kener Date: Wed, 25 Jun 2014 03:16:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E9=A2=98=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/asset/js/echartsTheme.js | 12 +++++++----- doc/example/theme.html | 20 ++++++++++---------- doc/example/theme/dark.js | 3 --- doc/example/theme/{erik.js => shine.js} | 0 4 files changed, 17 insertions(+), 18 deletions(-) rename doc/example/theme/{erik.js => shine.js} (100%) diff --git a/doc/asset/js/echartsTheme.js b/doc/asset/js/echartsTheme.js index 5c81702b5..d24b219b1 100644 --- a/doc/asset/js/echartsTheme.js +++ b/doc/asset/js/echartsTheme.js @@ -1,7 +1,7 @@ var myChart = []; var domMain = $("[md='main']"); -var theme = 'erik'; +var theme = 'infographic'; $('[name=theme-select]').on('change', function(){ selectChange($(this).val()); }); @@ -77,10 +77,10 @@ else { }); } -var hash = window.location.hash.replace('#','') || 'erik'; +var hash = window.location.hash.replace('#','') || 'infographic'; if ($('[name=theme-select]').val(hash).val() != hash) { - $('[name=theme-select]').val('erik'); - hash = 'erik'; + $('[name=theme-select]').val('infographic'); + hash = 'infographic'; } // 按需加载 @@ -181,7 +181,9 @@ function requireCallback (ec, defaultTheme) { var downloadLink = document.createElement('a'); downloadLink.href = image - downloadLink.setAttribute('download', 'EChartsTheme.png'); + downloadLink.setAttribute( + 'download', 'EChartsTheme-' + $('[name=theme-select]').val() + '.png' + ); downloadLink.innerHTML = '
@@ -142,14 +142,14 @@
diff --git a/doc/example/theme/dark.js b/doc/example/theme/dark.js index 42cb9dc7b..5cdf3a3ea 100644 --- a/doc/example/theme/dark.js +++ b/doc/example/theme/dark.js @@ -317,9 +317,6 @@ var theme = { } }, detail : { - backgroundColor: 'rgba(30,144,255,0.8)', - borderWidth: 1, - borderColor: '#fff', shadowColor : '#fff', //默认透明 shadowBlur: 5, offsetCenter: [0, '50%'], // x, y,单位px diff --git a/doc/example/theme/erik.js b/doc/example/theme/shine.js similarity index 100% rename from doc/example/theme/erik.js rename to doc/example/theme/shine.js -- GitLab