You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2025/11/07 06:40:46 UTC
(echarts-theme-builder) 03/28: chore: remove old code
This is an automated email from the ASF dual-hosted git repository.
ovilia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-theme-builder.git
commit 5c38d5219f11ab10854b4a2c976a209e98daa086
Author: Ovilia <zw...@gmail.com>
AuthorDate: Tue Aug 26 15:57:06 2025 +0800
chore: remove old code
---
app/en/body.html | 520 ----
app/en/index.html | 538 ----
app/en/theme-builder/app.min.js | 1 -
app/en/theme-builder/main.css | 234 --
app/en/theme-builder/themes/chalk.json | 169 --
app/en/theme-builder/themes/dark.json | 172 --
app/en/theme-builder/themes/default.json | 173 --
app/en/theme-builder/themes/essos.json | 171 --
app/en/theme-builder/themes/halloween.json | 167 --
app/en/theme-builder/themes/infographic.json | 176 --
app/en/theme-builder/themes/macarons.json | 180 --
app/en/theme-builder/themes/purple-passion.json | 169 --
app/en/theme-builder/themes/roma.json | 181 --
app/en/theme-builder/themes/shine.json | 163 -
app/en/theme-builder/themes/vintage.json | 172 --
app/en/theme-builder/themes/walden.json | 167 --
app/en/theme-builder/themes/westeros.json | 168 --
app/en/theme-builder/themes/wonderland.json | 168 --
app/img/pumpkin.png | Bin 14575 -> 0 bytes
app/index.html | 17 -
app/scripts/components.js | 211 --
app/scripts/components_en.js | 211 --
app/scripts/main.js | 831 ------
app/scripts/main_en.js | 829 -----
app/scripts/options.js | 3650 -----------------------
app/scripts/options_en.js | 3650 -----------------------
app/styles/_components.code.scss | 67 -
app/styles/_components.color.scss | 18 -
app/styles/_components.config.scss | 151 -
app/styles/_components.echarts.scss | 25 -
app/styles/_configs.color.scss | 20 -
app/styles/_settings.global.scss | 56 -
app/styles/main.scss | 9 -
app/themes/chalk.json | 169 --
app/themes/dark.json | 172 --
app/themes/default.json | 173 --
app/themes/essos.json | 171 --
app/themes/halloween.json | 167 --
app/themes/infographic.json | 176 --
app/themes/macarons.json | 180 --
app/themes/purple-passion.json | 169 --
app/themes/roma.json | 181 --
app/themes/shine.json | 163 -
app/themes/vintage.json | 172 --
app/themes/walden.json | 167 --
app/themes/westeros.json | 168 --
app/themes/wonderland.json | 168 --
app/zh/body.html | 520 ----
app/zh/index.html | 538 ----
app/zh/theme-builder/app.min.js | 1 -
app/zh/theme-builder/main.css | 234 --
app/zh/theme-builder/themes/chalk.json | 169 --
app/zh/theme-builder/themes/dark.json | 172 --
app/zh/theme-builder/themes/default.json | 173 --
app/zh/theme-builder/themes/essos.json | 171 --
app/zh/theme-builder/themes/halloween.json | 167 --
app/zh/theme-builder/themes/infographic.json | 176 --
app/zh/theme-builder/themes/macarons.json | 180 --
app/zh/theme-builder/themes/purple-passion.json | 169 --
app/zh/theme-builder/themes/roma.json | 181 --
app/zh/theme-builder/themes/shine.json | 163 -
app/zh/theme-builder/themes/vintage.json | 172 --
app/zh/theme-builder/themes/walden.json | 167 --
app/zh/theme-builder/themes/westeros.json | 168 --
app/zh/theme-builder/themes/wonderland.json | 168 --
65 files changed, 19519 deletions(-)
diff --git a/app/en/body.html b/app/en/body.html
deleted file mode 100644
index 7762022..0000000
--- a/app/en/body.html
+++ /dev/null
@@ -1,520 +0,0 @@
-<link rel="stylesheet" href="https://echarts.apache.org/en/js/vendors/bootstrap-colorpicker@2.5.3/css/bootstrap-colorpicker.min.css">
-<link rel="stylesheet" href="https://echarts.apache.org/en/js/vendors/highlightjs/cdn-release@11.8.0/build/styles/default.min.css">
-<link rel="stylesheet" href="https://echarts.apache.org/en/js/vendors/highlightjs/cdn-release@11.8.0/build/styles/github.min.css">
-<link rel="stylesheet" href="./theme-builder/main.css">
-
-<div id="theme-builder">
- <div class="container-fluid" id="content">
- <div class="row scroll-parent">
- <div class="col-md-3 col-sm-4 theme-config">
-
- <div id="acc-port" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-port" href="#acc-port-body">Basic</a>
- </h4>
- </div>
- <div id="acc-port-body" class="panel-collapse collapse in">
- <div class="panel-body">
- <div class="port-row">
- <input type="file" @change="importFileChanged" id="input-file" style="display: none" />
- <div class="btn-group" role="group">
- <button type="button" class="btn btn-primary" data-target="#download-js-modal" data-toggle="modal" @click="useTheme()" title="Download Theme File (Used in ECharts)">
- <span class="glyphicon glyphicon-download-alt"></span>
- Download
- </button>
- <button type="button" class="btn btn-default" @click="importJson()" title="Import configuration file (ONLY used in echarts theme editor)">
- <span class="glyphicon glyphicon-import"></span>
- Import
- </button>
- <button type="button" class="btn btn-default" @click="exportJson()" title="Export configuration file (ONLY used in echarts theme editor)">
- <span class="glyphicon glyphicon-export"></span>
- Export
- </button>
- </div>
- </div>
- <div class="port-row">
- <div class="btn-group" role="group">
- <button type="button" class="btn btn-default" @click="updateCharts(true)">
- <span class="glyphicon glyphicon-refresh"></span>
- Refresh
- </button>
- <button type="button" class="btn btn-default" @click="newTheme()">
- <span class="glyphicon glyphicon-repeat"></span>
- Reset
- </button>
- <button class="btn btn-default" data-toggle="modal" data-target="#download-modal">
- <span class="glyphicon glyphicon-question-sign"></span>
- Help
- </button>
- </div>
- </div>
- <form class="form form-horizontal">
- <div class="form-group">
- <label class="col-sm-3 control-label">Name</label>
- <div class="col-sm-9">
- <input class="form-control" v-model="themeName" />
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">Series</label>
- <div class="col-sm-9">
- <input type="number" class="form-control" v-model="theme.seriesCnt" />
- </div>
- </div>
- </form>
- <form class="form-horizontal">
- <hr />
- <h5>Default Themes</h5>
- <div class="row theme-plan-row">
- <div class="col-xs-6" v-for="(group, $index) in preDefinedThemes">
- <a class="theme-plan-group" @click="selectPreDefinedTheme($index)" v-bind:style="{ backgroundColor: group.background }" v-bind:title="group.name">
- <div class="theme-plan-color" v-for="color in group.theme" v-bind:style="{ backgroundColor: color }">
- </div>
- </a>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-port -->
-
- <div id="acc-theme" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-theme" href="#acc-theme-body">Basic Config</a>
- </h4>
- </div>
- <div id="acc-theme-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color title="Background" :color.sync="theme.backgroundColor"></config-color>
- <config-color title="Title" :color.sync="theme.titleColor"></config-color>
- <config-color title="Subtitle" :color.sync="theme.subtitleColor"></config-color>
- <config-color-list title="Theme" :colors.sync="theme.color"></config-color-list>
- <config-color title="Label Text" :color.sync="theme.markTextColor"></config-color>
- <config-number title="Border Width" :value.sync="theme.borderWidth"></config-number>
- <config-color title="Border Color" :color.sync="theme.borderColor"></config-color>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-theme -->
-
- <div id="acc-visualmap" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-visualmap" href="#acc-visualmap-body">Visual Mapping</a>
- </h4>
- </div>
- <div id="acc-visualmap-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color-list title="Visual Mapping" :colors.sync="theme.visualMapColor"></config-color-list>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-visualmap -->
-
- <div id="acc-axis" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-axis" href="#acc-axis-body">Axis</a>
- </h4>
- </div>
- <div id="acc-axis-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <div class="form-group">
- <div class="col-sm-12">
- <input v-model="theme.axisSeperateSetting" @change="axisSeperateSettingChanges()" type="checkbox" id="axisSeperateSetting" />
- <label for="axisSeperateSetting" class="control-label">Change Config For Each Axis Type</label>
- </div>
- </div>
- <div class="axis-group" v-for="(axis, $index) in theme.axis" v-if="$index > 0 || !theme.axisSeperateSetting">
- <h5 v-if="axis.type !== 'all'">{{ axis.type }}</h5>
- <config-color can-disable :enabled.sync="axis.axisLineShow" title="Line" :color.sync="axis.axisLineColor"></config-color>
- <config-color can-disable :enabled.sync="axis.axisTickShow" title="Tick" :color.sync="axis.axisTickColor"></config-color>
- <config-color-list can-disable :enabled.sync="axis.splitLineShow" title="Grid" :colors.sync="axis.splitLineColor"></config-color-list>
- <config-color-list can-disable :enabled.sync="axis.splitAreaShow" title="Area" :colors.sync="axis.splitAreaColor"></config-color-list>
- <config-color can-disable :enabled.sync="axis.axisLabelShow" title="Label" :color.sync="axis.axisLabelColor"></config-color>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-axis -->
-
- <div id="acc-legend" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-legend" href="#acc-legend-body" title="legend">Legend</a>
- </h4>
- </div>
- <div id="acc-legend-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color :color.sync="theme.legendTextColor" title="Text"></config-color>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-legend -->
-
- <div id="acc-toolbox" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-toolbox" href="#acc-toolbox-body" title="toolbox">Toolbox</a>
- </h4>
- </div>
- <div id="acc-toolbox-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color :color.sync="theme.toolboxColor" title="Item"></config-color>
- <config-color :color.sync="theme.toolboxEmphasisColor" title="Emphasis"></config-color>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-toolbox -->
-
- <div id="acc-tooltip" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-tooltip" href="#acc-tooltip-body" title="tooltip">Tooltip</a>
- </h4>
- </div>
- <div id="acc-tooltip-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color :color.sync="theme.tooltipAxisColor" title="Axis Color"></config-color>
- <config-number :value.sync="theme.tooltipAxisWidth" title="Axis Line Width"></config-number>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-tooltip -->
-
- <div id="acc-timeline" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-timeline" href="#acc-timeline-body" title="tooltip">Timeline</a>
- </h4>
- </div>
- <div id="acc-timeline-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color title="Item" :color.sync="theme.timelineItemColor"></config-color>
- <config-color title="Emphasis" :color.sync="theme.timelineItemColorE"></config-color>
- <config-color title="Check" :color.sync="theme.timelineCheckColor"></config-color>
- <config-color title="Check Border Color" :color.sync="theme.timelineCheckBorderColor"></config-color>
- <config-number title="Check Border Width" :value.sync="theme.timelineItemBorderWidth"></config-number>
- <config-color title="Axis" :color.sync="theme.timelineLineColor"></config-color>
- <config-number title="AxisWidth" :value.sync="theme.timelineLineWidth"></config-number>
- <config-color title="Control Color" :color.sync="theme.timelineControlColor"></config-color>
- <config-color title="Control Border Color" :color.sync="theme.timelineControlBorderColor"></config-color>
- <config-number title="Control Border Width" :value.sync="theme.timelineControlBorderWidth"></config-number>
- <config-color title="Text Color" :color.sync="theme.timelineLabelColor"></config-color>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-timeline -->
-
- <!-- <div id="acc-datazoom" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-datazoom" href="#acc-datazoom-body" title="tooltip">Zoom</a>
- </h4>
- </div>
- <div id="acc-datazoom-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color title="Background" :color.sync="theme.datazoomBackgroundColor"></config-color>
- <config-color title="Data" :color.sync="theme.datazoomDataColor"></config-color>
- <config-color title="Filling" :color.sync="theme.datazoomFillColor"></config-color>
- <config-color title="Handle" :color.sync="theme.datazoomHandleColor"></config-color>
- <config-number title="Handle Size" :value.sync="theme.datazoomHandleWidth"></config-number>
- <config-color title="Text" :color.sync="theme.datazoomLabelColor"></config-color>
- </form>
- </div>
- </div>
- </div>
- </div> -->
- <!-- end of acc-datazoom -->
-
- <div id="acc-line" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-line" href="#acc-line-body" title="line">Line Chart</a>
- </h4>
- </div>
- <div id="acc-line-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <div class="form-group">
- <div class="col-sm-12">
- <input type="checkbox" v-model="theme.lineSmooth" id="lineSmooth" />
- <label for="lineSmooth" class="control-label" title="smooth">Smooth Line</label>
- </div>
- </div>
- <config-number title="Line Width" :value.sync="theme.lineWidth"></config-number>
- <config-number title="Border Width" :value.sync="theme.symbolBorderWidth"></config-number>
- <config-number title="Item Size" :value.sync="theme.symbolSize"></config-number>
- <div class="form-group">
- <div class="col-sm-12" style="margin-bottom: 10px;">
- <label class="control-label">Shape</label>
- </div>
- <div class="col-sm-12">
- <div class="row space-row">
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolCircle" value="circle" @change="updateSymbol('circle')" />
- <label for="symbolCircle">Circle</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolCircleE" value="circle" checked @change="updateSymbol('emptyCircle')" />
- <label for="symbolCircleE">Empty Circle</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolRect" value="rect" @change="updateSymbol('rect')" />
- <label for="symbolRect">Square</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolRectE" value="rect" @change="updateSymbol('emptyRect')" />
- <label for="symbolRectE">Empty Square</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolRoundRect" value="roundRect" @change="updateSymbol('roundRect')" />
- <label for="symbolRoundRect">Rounded Rectangle</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolRoundRectE" value="roundRect" @change="updateSymbol('emptyRoundRect')" />
- <label for="symbolRoundRectE">Empty Rounded Rectangle</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolTri" value="triangle" @change="updateSymbol('triangle')" />
- <label for="symbolTri">Triangle</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolTriE" value="triangle" @change="updateSymbol('emptyTriangle')" />
- <label for="symbolTriE">Empty Triangle</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolDiamond" value="diamond" @change="updateSymbol('diamond')" />
- <label for="symbolDiamond">Diamond</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolDiamondE" value="diamond" @change="updateSymbol('emptyDiamond')" />
- <label for="symbolDiamondE">Empty Diamond</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolPin" value="pin" @change="updateSymbol('pin')" />
- <label for="symbolPin">Pin</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolPinE" value="pin" @change="updateSymbol('emptyPin')" />
- <label for="symbolPinE">Empty Pin</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolArrow" value="arrow" @change="updateSymbol('arrow')" />
- <label for="symbolArrow">Arrow</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolArrowE" value="arrow" @change="updateSymbol('emptyArrow')" />
- <label for="symbolArrowE">Empty Arrow</label>
- </div>
- </div>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-line -->
-
- <div id="acc-k" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-k" href="#acc-k-body" title="k">Candlestick Chart</a>
- </h4>
- </div>
- <div id="acc-k-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color title="Bullish Color" :color.sync="theme.kColor"></config-color>
- <config-color title="Bearish Color" :color.sync="theme.kColor0"></config-color>
- <config-color title="Bullish Border Color" :color.sync="theme.kBorderColor"></config-color>
- <config-color title="Bullish Border Color" :color.sync="theme.kBorderColor0"></config-color>
- <config-number title="Border Width" :value.sync="theme.kBorderWidth"></config-number>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-k -->
-
- <div id="acc-graph" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-graph" href="#acc-graph-body" title="graph">Force-directed Chart</a>
- </h4>
- </div>
- <div id="acc-graph-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color title="Line Color" :color.sync="theme.graphLineColor"></config-color>
- <config-number title="Line Width" :value.sync="theme.graphLineWidth"></config-number>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-graph -->
-
- <div id="acc-about" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-about" href="#acc-about-body" title="graph">About</a>
- </h4>
- </div>
- <div id="acc-about-body" class="panel-collapse collapse">
- <div class="panel-body">
- Source code: <a href="https://github.com/Ovilia/ECharts-Theme-Builder" target="_blank">GitHub</a>
- </div>
- </div>
- </div>
- </div><!-- end of acc-about -->
-
- </div><!-- end of left -->
-
- <div class="col-md-9 col-sm-8 chart-container scroll-content"
- v-bind:style="{ backgroundColor: chartDisplay.background, backgroundImage: themeName == 'halloween' ? 'url(img/pumpkin.png)' : 'none'}">
-
- <h3 v-bind:style="{ color: chartDisplay.title }">Example</h3>
-
- <div class="row">
- <div v-for="i in 12" class="ec-container col-md-6">
- <div class="ec-panel"></div>
- </div>
- </div>
- </div><!-- end of chart panel -->
-
- </div>
-
- <div class="modal fade" id="download-modal" tabindex="-1" role="dialog">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title">Help</h4>
- </div>
- <div class="modal-body">
- <h4>What is the ECharts Theme Online Build Tool?</h4>
- <p>"Theme" is an abstract style of ECharts charts, used to unify the styles of multiple charts. Using Online Build Tool, you can intuitively generate the theme Config file and use customized theme styles in ECharts.</p>
- <p>You can still use <code>setOption</code> to override or set the theme style.</p>
- <p>ECharts officially provides theme: <code>default</code>、<code>infographic</code>、<code>shine</code>、<code>roma</code>、<code>macarons</code>、<code>vintage</code>, etc.. Available for download <a href="http://echarts.baidu.com/download-theme.html" target="_blank">here</a>.</p>
-
- <h4>Import & Export</h4>
- <p>In order to facilitate secondary modification, our theme building tool supports importing and exporting Config items. The exported JSON file can be used only in this tool, but not in ECharts directly. </p>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">cancel</button>
- </div>
- </div>
- </div>
- </div><!-- end of modal -->
-
- <div class="modal fade" id="download-js-modal" tabindex="-1" role="dialog">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title">Theme Download</h4>
- </div>
- <div class="modal-body">
- <!-- tab nav -->
- <ul class="nav nav-tabs" role="tablist">
- <li role="presentation" class="active">
- <a href="#modal-js" role="tab" data-toggle="tab">
- JS version
- </a>
- </li>
- <li role="presentation">
- <a href="#modal-json" role="tab" data-toggle="tab">
- JSON version
- </a>
- </li>
- </ul>
-
- <!-- tab content -->
- <div class="tab-content">
- <div role="tabpanel" class="tab-pane active" id="modal-js">
- <ol id="how-to-use-js">
- <li><span v-if="downloadable">Download or </span>copy the following theme and save as a <code>*.js</code> file; </li>
- <li>Quote this file in HTML</li>
- <li>Use <code>echarts.init(dom, '{{ themeName || 'customized' }}')</code> to create the chart. The second parameter is the theme name registered in <code>*.js</code>. </li>
- </ol>
- <div class="code-btn">
- <div class="btn-group" role="group">
- <a v-if="downloadable" class="btn btn-sm btn-primary" @click="downloadThemeJs()">Download</a>
- <a class="btn btn-sm btn-default" @click="copyThemeJs()">Copy</a>
- </div>
- <label id="copy-js-success">Successfully copied to clipboard, please save as <code>*.js</code>. </label>
- <label id="copy-js-fail">Please use <kbd>{{ copyKbd }}</kbd> + <kbd>s</kbd> to copy, and save as <code>*.js</code> file. </label>
- </div>
- <pre>
- <code class="javascript" id="js-code"></code>
- </pre>
- </div>
- <div role="tabpanel" class="tab-pane" id="modal-json">
- <ol id="how-to-use-json">
- <li><span v-if="downloadable">Download or </span>copy and save the following theme as <code>*.json</code>; </li>
- <li>Read this JSON file and use <code>obj = JSON.parse(data)</code> to transfer it as object; </li>
- <li>Call <code>echarts.registerTheme('{{ themeName || 'customized' }}', obj)</code> to register the theme. </li>
- <li>Use <code>echarts.init(dom, '{{ themeName || 'customized' }}')</code> to create the chart. The second parameter represents the theme name. </li>
- </ol>
- <div class="code-btn">
- <div class="btn-group" role="group">
- <a v-if="downloadable" class="btn btn-sm btn-primary" @click="downloadThemeJson()">Download</a>
- <a class="btn btn-sm btn-default" @click="copyThemeJson()">Copy</a>
- </div>
- <label id="copy-json-success">Successfully copied to clipboard, please save as <code>*.json</code> file. </label>
- <label id="copy-json-fail">Please use <kbd>{{ copyKbd }}</kbd> + <kbd>s</kbd> to copy, and save as <code>*.json</code> file. </label>
- </div>
- <pre>
- <code class="json" id="json-code"></code>
- </pre>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">cancel</button>
- </div>
- </div>
- </div>
- </div><!-- end of modal -->
- </div>
-
-</div>
-
-<script src="https://echarts.apache.org/en/js/vendors/echarts/dist/echarts.min.js"></script>
-<script src="https://echarts.apache.org/en/js/vendors/lodash@3.10.1/lodash.min.js"></script>
-<script src="https://echarts.apache.org/en/js/vendors/bootstrap-colorpicker@2.5.3/js/bootstrap-colorpicker.min.js"></script>
-<script src="https://echarts.apache.org/en/js/vendors/vue@2.6.14/vue.min.js"></script>
-<script src="https://echarts.apache.org/en/js/vendors/highlightjs/cdn-release@11.8.0/build/highlight.min.js"></script>
-<script src="https://echarts.apache.org/en/js/vendors/file-saver@2.0.5/FileSaver.min.js"></script>
-
-<script src="./theme-builder/app.min.js"></script>
diff --git a/app/en/index.html b/app/en/index.html
deleted file mode 100644
index 33fc285..0000000
--- a/app/en/index.html
+++ /dev/null
@@ -1,538 +0,0 @@
-
-<!--
-AUTOGENERATED. DON'T MODIFY
--->
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
-</head>
-<body>
-<!-- NOT include bootstrap because echarts-www already has one -->
-<link rel="stylesheet" href="https://echarts.apache.org/en/js/vendors/bootstrap@3.3.7/css/bootstrap.min.css">
-<script src="https://echarts.apache.org/en/js/vendors/jquery@3.7.1/dist/jquery.min.js"></script>
-<script src="https://echarts.apache.org/en/js/vendors/bootstrap@3.3.7/js/bootstrap.min.js"></script>
-<link rel="stylesheet" href="https://echarts.apache.org/en/js/vendors/bootstrap-colorpicker@2.5.3/css/bootstrap-colorpicker.min.css">
-<link rel="stylesheet" href="https://echarts.apache.org/en/js/vendors/highlightjs/cdn-release@11.8.0/build/styles/default.min.css">
-<link rel="stylesheet" href="https://echarts.apache.org/en/js/vendors/highlightjs/cdn-release@11.8.0/build/styles/github.min.css">
-<link rel="stylesheet" href="./theme-builder/main.css">
-
-<div id="theme-builder">
- <div class="container-fluid" id="content">
- <div class="row scroll-parent">
- <div class="col-md-3 col-sm-4 theme-config">
-
- <div id="acc-port" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-port" href="#acc-port-body">Basic</a>
- </h4>
- </div>
- <div id="acc-port-body" class="panel-collapse collapse in">
- <div class="panel-body">
- <div class="port-row">
- <input type="file" @change="importFileChanged" id="input-file" style="display: none" />
- <div class="btn-group" role="group">
- <button type="button" class="btn btn-primary" data-target="#download-js-modal" data-toggle="modal" @click="useTheme()" title="Download Theme File (Used in ECharts)">
- <span class="glyphicon glyphicon-download-alt"></span>
- Download
- </button>
- <button type="button" class="btn btn-default" @click="importJson()" title="Import configuration file (ONLY used in echarts theme editor)">
- <span class="glyphicon glyphicon-import"></span>
- Import
- </button>
- <button type="button" class="btn btn-default" @click="exportJson()" title="Export configuration file (ONLY used in echarts theme editor)">
- <span class="glyphicon glyphicon-export"></span>
- Export
- </button>
- </div>
- </div>
- <div class="port-row">
- <div class="btn-group" role="group">
- <button type="button" class="btn btn-default" @click="updateCharts(true)">
- <span class="glyphicon glyphicon-refresh"></span>
- Refresh
- </button>
- <button type="button" class="btn btn-default" @click="newTheme()">
- <span class="glyphicon glyphicon-repeat"></span>
- Reset
- </button>
- <button class="btn btn-default" data-toggle="modal" data-target="#download-modal">
- <span class="glyphicon glyphicon-question-sign"></span>
- Help
- </button>
- </div>
- </div>
- <form class="form form-horizontal">
- <div class="form-group">
- <label class="col-sm-3 control-label">Name</label>
- <div class="col-sm-9">
- <input class="form-control" v-model="themeName" />
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">Series</label>
- <div class="col-sm-9">
- <input type="number" class="form-control" v-model="theme.seriesCnt" />
- </div>
- </div>
- </form>
- <form class="form-horizontal">
- <hr />
- <h5>Default Themes</h5>
- <div class="row theme-plan-row">
- <div class="col-xs-6" v-for="(group, $index) in preDefinedThemes">
- <a class="theme-plan-group" @click="selectPreDefinedTheme($index)" v-bind:style="{ backgroundColor: group.background }" v-bind:title="group.name">
- <div class="theme-plan-color" v-for="color in group.theme" v-bind:style="{ backgroundColor: color }">
- </div>
- </a>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-port -->
-
- <div id="acc-theme" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-theme" href="#acc-theme-body">Basic Config</a>
- </h4>
- </div>
- <div id="acc-theme-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color title="Background" :color.sync="theme.backgroundColor"></config-color>
- <config-color title="Title" :color.sync="theme.titleColor"></config-color>
- <config-color title="Subtitle" :color.sync="theme.subtitleColor"></config-color>
- <config-color-list title="Theme" :colors.sync="theme.color"></config-color-list>
- <config-color title="Label Text" :color.sync="theme.markTextColor"></config-color>
- <config-number title="Border Width" :value.sync="theme.borderWidth"></config-number>
- <config-color title="Border Color" :color.sync="theme.borderColor"></config-color>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-theme -->
-
- <div id="acc-visualmap" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-visualmap" href="#acc-visualmap-body">Visual Mapping</a>
- </h4>
- </div>
- <div id="acc-visualmap-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color-list title="Visual Mapping" :colors.sync="theme.visualMapColor"></config-color-list>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-visualmap -->
-
- <div id="acc-axis" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-axis" href="#acc-axis-body">Axis</a>
- </h4>
- </div>
- <div id="acc-axis-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <div class="form-group">
- <div class="col-sm-12">
- <input v-model="theme.axisSeperateSetting" @change="axisSeperateSettingChanges()" type="checkbox" id="axisSeperateSetting" />
- <label for="axisSeperateSetting" class="control-label">Change Config For Each Axis Type</label>
- </div>
- </div>
- <div class="axis-group" v-for="(axis, $index) in theme.axis" v-if="$index > 0 || !theme.axisSeperateSetting">
- <h5 v-if="axis.type !== 'all'">{{ axis.type }}</h5>
- <config-color can-disable :enabled.sync="axis.axisLineShow" title="Line" :color.sync="axis.axisLineColor"></config-color>
- <config-color can-disable :enabled.sync="axis.axisTickShow" title="Tick" :color.sync="axis.axisTickColor"></config-color>
- <config-color-list can-disable :enabled.sync="axis.splitLineShow" title="Grid" :colors.sync="axis.splitLineColor"></config-color-list>
- <config-color-list can-disable :enabled.sync="axis.splitAreaShow" title="Area" :colors.sync="axis.splitAreaColor"></config-color-list>
- <config-color can-disable :enabled.sync="axis.axisLabelShow" title="Label" :color.sync="axis.axisLabelColor"></config-color>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-axis -->
-
- <div id="acc-legend" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-legend" href="#acc-legend-body" title="legend">Legend</a>
- </h4>
- </div>
- <div id="acc-legend-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color :color.sync="theme.legendTextColor" title="Text"></config-color>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-legend -->
-
- <div id="acc-toolbox" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-toolbox" href="#acc-toolbox-body" title="toolbox">Toolbox</a>
- </h4>
- </div>
- <div id="acc-toolbox-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color :color.sync="theme.toolboxColor" title="Item"></config-color>
- <config-color :color.sync="theme.toolboxEmphasisColor" title="Emphasis"></config-color>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-toolbox -->
-
- <div id="acc-tooltip" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-tooltip" href="#acc-tooltip-body" title="tooltip">Tooltip</a>
- </h4>
- </div>
- <div id="acc-tooltip-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color :color.sync="theme.tooltipAxisColor" title="Axis Color"></config-color>
- <config-number :value.sync="theme.tooltipAxisWidth" title="Axis Line Width"></config-number>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-tooltip -->
-
- <div id="acc-timeline" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-timeline" href="#acc-timeline-body" title="tooltip">Timeline</a>
- </h4>
- </div>
- <div id="acc-timeline-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color title="Item" :color.sync="theme.timelineItemColor"></config-color>
- <config-color title="Emphasis" :color.sync="theme.timelineItemColorE"></config-color>
- <config-color title="Check" :color.sync="theme.timelineCheckColor"></config-color>
- <config-color title="Check Border Color" :color.sync="theme.timelineCheckBorderColor"></config-color>
- <config-number title="Check Border Width" :value.sync="theme.timelineItemBorderWidth"></config-number>
- <config-color title="Axis" :color.sync="theme.timelineLineColor"></config-color>
- <config-number title="AxisWidth" :value.sync="theme.timelineLineWidth"></config-number>
- <config-color title="Control Color" :color.sync="theme.timelineControlColor"></config-color>
- <config-color title="Control Border Color" :color.sync="theme.timelineControlBorderColor"></config-color>
- <config-number title="Control Border Width" :value.sync="theme.timelineControlBorderWidth"></config-number>
- <config-color title="Text Color" :color.sync="theme.timelineLabelColor"></config-color>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-timeline -->
-
- <!-- <div id="acc-datazoom" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-datazoom" href="#acc-datazoom-body" title="tooltip">Zoom</a>
- </h4>
- </div>
- <div id="acc-datazoom-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color title="Background" :color.sync="theme.datazoomBackgroundColor"></config-color>
- <config-color title="Data" :color.sync="theme.datazoomDataColor"></config-color>
- <config-color title="Filling" :color.sync="theme.datazoomFillColor"></config-color>
- <config-color title="Handle" :color.sync="theme.datazoomHandleColor"></config-color>
- <config-number title="Handle Size" :value.sync="theme.datazoomHandleWidth"></config-number>
- <config-color title="Text" :color.sync="theme.datazoomLabelColor"></config-color>
- </form>
- </div>
- </div>
- </div>
- </div> -->
- <!-- end of acc-datazoom -->
-
- <div id="acc-line" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-line" href="#acc-line-body" title="line">Line Chart</a>
- </h4>
- </div>
- <div id="acc-line-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <div class="form-group">
- <div class="col-sm-12">
- <input type="checkbox" v-model="theme.lineSmooth" id="lineSmooth" />
- <label for="lineSmooth" class="control-label" title="smooth">Smooth Line</label>
- </div>
- </div>
- <config-number title="Line Width" :value.sync="theme.lineWidth"></config-number>
- <config-number title="Border Width" :value.sync="theme.symbolBorderWidth"></config-number>
- <config-number title="Item Size" :value.sync="theme.symbolSize"></config-number>
- <div class="form-group">
- <div class="col-sm-12" style="margin-bottom: 10px;">
- <label class="control-label">Shape</label>
- </div>
- <div class="col-sm-12">
- <div class="row space-row">
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolCircle" value="circle" @change="updateSymbol('circle')" />
- <label for="symbolCircle">Circle</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolCircleE" value="circle" checked @change="updateSymbol('emptyCircle')" />
- <label for="symbolCircleE">Empty Circle</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolRect" value="rect" @change="updateSymbol('rect')" />
- <label for="symbolRect">Square</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolRectE" value="rect" @change="updateSymbol('emptyRect')" />
- <label for="symbolRectE">Empty Square</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolRoundRect" value="roundRect" @change="updateSymbol('roundRect')" />
- <label for="symbolRoundRect">Rounded Rectangle</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolRoundRectE" value="roundRect" @change="updateSymbol('emptyRoundRect')" />
- <label for="symbolRoundRectE">Empty Rounded Rectangle</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolTri" value="triangle" @change="updateSymbol('triangle')" />
- <label for="symbolTri">Triangle</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolTriE" value="triangle" @change="updateSymbol('emptyTriangle')" />
- <label for="symbolTriE">Empty Triangle</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolDiamond" value="diamond" @change="updateSymbol('diamond')" />
- <label for="symbolDiamond">Diamond</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolDiamondE" value="diamond" @change="updateSymbol('emptyDiamond')" />
- <label for="symbolDiamondE">Empty Diamond</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolPin" value="pin" @change="updateSymbol('pin')" />
- <label for="symbolPin">Pin</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolPinE" value="pin" @change="updateSymbol('emptyPin')" />
- <label for="symbolPinE">Empty Pin</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolArrow" value="arrow" @change="updateSymbol('arrow')" />
- <label for="symbolArrow">Arrow</label>
- </div>
- <div class="col-sm-12">
- <input type="radio" name="symbol" id="symbolArrowE" value="arrow" @change="updateSymbol('emptyArrow')" />
- <label for="symbolArrowE">Empty Arrow</label>
- </div>
- </div>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-line -->
-
- <div id="acc-k" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-k" href="#acc-k-body" title="k">Candlestick Chart</a>
- </h4>
- </div>
- <div id="acc-k-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color title="Bullish Color" :color.sync="theme.kColor"></config-color>
- <config-color title="Bearish Color" :color.sync="theme.kColor0"></config-color>
- <config-color title="Bullish Border Color" :color.sync="theme.kBorderColor"></config-color>
- <config-color title="Bullish Border Color" :color.sync="theme.kBorderColor0"></config-color>
- <config-number title="Border Width" :value.sync="theme.kBorderWidth"></config-number>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-k -->
-
- <div id="acc-graph" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-graph" href="#acc-graph-body" title="graph">Force-directed Chart</a>
- </h4>
- </div>
- <div id="acc-graph-body" class="panel-collapse collapse">
- <div class="panel-body">
- <form class="form-horizontal">
- <config-color title="Line Color" :color.sync="theme.graphLineColor"></config-color>
- <config-number title="Line Width" :value.sync="theme.graphLineWidth"></config-number>
- </form>
- </div>
- </div>
- </div>
- </div><!-- end of acc-graph -->
-
- <div id="acc-about" class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading">
- <h4 class="panel-title">
- <a data-toggle="collapse" data-parent="#acc-about" href="#acc-about-body" title="graph">About</a>
- </h4>
- </div>
- <div id="acc-about-body" class="panel-collapse collapse">
- <div class="panel-body">
- Source code: <a href="https://github.com/Ovilia/ECharts-Theme-Builder" target="_blank">GitHub</a>
- </div>
- </div>
- </div>
- </div><!-- end of acc-about -->
-
- </div><!-- end of left -->
-
- <div class="col-md-9 col-sm-8 chart-container scroll-content"
- v-bind:style="{ backgroundColor: chartDisplay.background, backgroundImage: themeName == 'halloween' ? 'url(img/pumpkin.png)' : 'none'}">
-
- <h3 v-bind:style="{ color: chartDisplay.title }">Example</h3>
-
- <div class="row">
- <div v-for="i in 12" class="ec-container col-md-6">
- <div class="ec-panel"></div>
- </div>
- </div>
- </div><!-- end of chart panel -->
-
- </div>
-
- <div class="modal fade" id="download-modal" tabindex="-1" role="dialog">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title">Help</h4>
- </div>
- <div class="modal-body">
- <h4>What is the ECharts Theme Online Build Tool?</h4>
- <p>"Theme" is an abstract style of ECharts charts, used to unify the styles of multiple charts. Using Online Build Tool, you can intuitively generate the theme Config file and use customized theme styles in ECharts.</p>
- <p>You can still use <code>setOption</code> to override or set the theme style.</p>
- <p>ECharts officially provides theme: <code>default</code>、<code>infographic</code>、<code>shine</code>、<code>roma</code>、<code>macarons</code>、<code>vintage</code>, etc.. Available for download <a href="http://echarts.baidu.com/download-theme.html" target="_blank">here</a>.</p>
-
- <h4>Import & Export</h4>
- <p>In order to facilitate secondary modification, our theme building tool supports importing and exporting Config items. The exported JSON file can be used only in this tool, but not in ECharts directly. </p>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">cancel</button>
- </div>
- </div>
- </div>
- </div><!-- end of modal -->
-
- <div class="modal fade" id="download-js-modal" tabindex="-1" role="dialog">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title">Theme Download</h4>
- </div>
- <div class="modal-body">
- <!-- tab nav -->
- <ul class="nav nav-tabs" role="tablist">
- <li role="presentation" class="active">
- <a href="#modal-js" role="tab" data-toggle="tab">
- JS version
- </a>
- </li>
- <li role="presentation">
- <a href="#modal-json" role="tab" data-toggle="tab">
- JSON version
- </a>
- </li>
- </ul>
-
- <!-- tab content -->
- <div class="tab-content">
- <div role="tabpanel" class="tab-pane active" id="modal-js">
- <ol id="how-to-use-js">
- <li><span v-if="downloadable">Download or </span>copy the following theme and save as a <code>*.js</code> file; </li>
- <li>Quote this file in HTML</li>
- <li>Use <code>echarts.init(dom, '{{ themeName || 'customized' }}')</code> to create the chart. The second parameter is the theme name registered in <code>*.js</code>. </li>
- </ol>
- <div class="code-btn">
- <div class="btn-group" role="group">
- <a v-if="downloadable" class="btn btn-sm btn-primary" @click="downloadThemeJs()">Download</a>
- <a class="btn btn-sm btn-default" @click="copyThemeJs()">Copy</a>
- </div>
- <label id="copy-js-success">Successfully copied to clipboard, please save as <code>*.js</code>. </label>
- <label id="copy-js-fail">Please use <kbd>{{ copyKbd }}</kbd> + <kbd>s</kbd> to copy, and save as <code>*.js</code> file. </label>
- </div>
- <pre>
- <code class="javascript" id="js-code"></code>
- </pre>
- </div>
- <div role="tabpanel" class="tab-pane" id="modal-json">
- <ol id="how-to-use-json">
- <li><span v-if="downloadable">Download or </span>copy and save the following theme as <code>*.json</code>; </li>
- <li>Read this JSON file and use <code>obj = JSON.parse(data)</code> to transfer it as object; </li>
- <li>Call <code>echarts.registerTheme('{{ themeName || 'customized' }}', obj)</code> to register the theme. </li>
- <li>Use <code>echarts.init(dom, '{{ themeName || 'customized' }}')</code> to create the chart. The second parameter represents the theme name. </li>
- </ol>
- <div class="code-btn">
- <div class="btn-group" role="group">
- <a v-if="downloadable" class="btn btn-sm btn-primary" @click="downloadThemeJson()">Download</a>
- <a class="btn btn-sm btn-default" @click="copyThemeJson()">Copy</a>
- </div>
- <label id="copy-json-success">Successfully copied to clipboard, please save as <code>*.json</code> file. </label>
- <label id="copy-json-fail">Please use <kbd>{{ copyKbd }}</kbd> + <kbd>s</kbd> to copy, and save as <code>*.json</code> file. </label>
- </div>
- <pre>
- <code class="json" id="json-code"></code>
- </pre>
- </div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">cancel</button>
- </div>
- </div>
- </div>
- </div><!-- end of modal -->
- </div>
-
-</div>
-
-<script src="https://echarts.apache.org/en/js/vendors/echarts/dist/echarts.min.js"></script>
-<script src="https://echarts.apache.org/en/js/vendors/lodash@3.10.1/lodash.min.js"></script>
-<script src="https://echarts.apache.org/en/js/vendors/bootstrap-colorpicker@2.5.3/js/bootstrap-colorpicker.min.js"></script>
-<script src="https://echarts.apache.org/en/js/vendors/vue@2.6.14/vue.min.js"></script>
-<script src="https://echarts.apache.org/en/js/vendors/highlightjs/cdn-release@11.8.0/build/highlight.min.js"></script>
-<script src="https://echarts.apache.org/en/js/vendors/file-saver@2.0.5/FileSaver.min.js"></script>
-
-<script src="./theme-builder/app.min.js"></script>
-
-</body>
-</html>
diff --git a/app/en/theme-builder/app.min.js b/app/en/theme-builder/app.min.js
deleted file mode 100644
index 9313fb6..0000000
--- a/app/en/theme-builder/app.min.js
+++ /dev/null
@@ -1 +0,0 @@
-var VueColor=Vue.extend({template:'<div class="input-group colorpicker-component"><input type="text" class="form-control" debounce="2000" /><span class="input-group-addon"><i></i></span></div>',mounted:function(){var a=this,t=$(this.$el);t.find("input").val(this.color),t.colorpicker().on("changeColor",function(){var e=t.find("input").val();echarts.color.parse(e)&&a.$set(a,"color",e)}),a.$watch("color",function(e){t.colorpicker("setValue",e),a.$emit("update:color",e)})},props:{color:{twoW [...]
\ No newline at end of file
diff --git a/app/en/theme-builder/main.css b/app/en/theme-builder/main.css
deleted file mode 100644
index 6c9ae0a..0000000
--- a/app/en/theme-builder/main.css
+++ /dev/null
@@ -1,234 +0,0 @@
-#theme-builder {
- overflow-x: hidden;
- text-align: left;
-}
-#theme-builder a {
- cursor: pointer;
- color: #293c55;
-}
-#theme-builder .btn {
- transition: 0.5s;
-}
-#theme-builder .btn-default {
- border-color: #eee;
- color: #293c55;
-}
-#theme-builder .btn-default:hover, #theme-builder .btn-default:active, #theme-builder .btn-default:focus, #theme-builder .btn-default.active {
- border-color: #ddd;
- background-color: #eee;
- color: #293c55;
-}
-#theme-builder .btn-primary {
- color: #fff;
- border-color: rgb(49.2976190476, 72.1428571429, 102.2023809524);
- background-color: rgb(57.5952380952, 84.2857142857, 119.4047619048);
-}
-#theme-builder .btn-primary:hover, #theme-builder .btn-primary:active, #theme-builder .btn-primary:focus, #theme-builder .btn-primary.active {
- border-color: rgb(57.5952380952, 84.2857142857, 119.4047619048);
- background-color: rgb(74.1904761905, 108.5714285714, 153.8095238095);
-}
-#theme-builder .scroll-parent {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 15px;
- right: 15px;
- overflow: hidden;
-}
-#theme-builder .scroll-parent > div {
- height: 100%;
- overflow-y: auto;
-}
-
-#theme-builder .chart-container {
- margin-bottom: 20px;
- padding: 15px;
- padding-top: 0;
-}
-#theme-builder .chart-container h3 {
- margin-top: 20px;
- font-size: 1.5em;
-}
-#theme-builder .ec-container {
- padding: 0 15px 30px 15px;
-}
-#theme-builder .ec-panel {
- width: 100%;
- height: 300px;
- box-sizing: border-box;
-}
-
-#theme-builder .icon {
- color: #293c55;
-}
-#theme-builder .port-row {
- margin-bottom: 5px;
-}
-#theme-builder .port-row .btn {
- margin-bottom: 5px;
- font-size: 0.9em;
-}
-#theme-builder .theme-config {
- padding: 0;
- border-right: 1px solid #ddd;
- border-bottom: 1px solid #ddd;
-}
-#theme-builder .theme-config h5 {
- margin: 10px;
-}
-#theme-builder .theme-config .form-group .col-sm-3 {
- padding-right: 0;
- text-align: right;
-}
-@media (max-width: 768px) {
- #theme-builder .theme-config .form-group .col-sm-3 {
- padding-right: 15px;
- }
-}
-#theme-builder .theme-config .form-group .col-sm-3 input {
- margin-top: 0;
-}
-#theme-builder .theme-config h5 ~ h5, #theme-builder .theme-config .axis-group h5 {
- border-top: 1px solid #eee;
- padding-top: 20px;
-}
-#theme-builder .theme-config form + form {
- margin-top: 10px;
-}
-#theme-builder .theme-config label {
- padding-right: 0;
-}
-#theme-builder .theme-config .input-group {
- width: 100%;
-}
-#theme-builder .theme-config .form-control, #theme-builder .theme-config .input-group-addon {
- border-color: #eee;
- box-shadow: none;
- border-radius: 0;
-}
-#theme-builder .theme-config .form-control:hover, #theme-builder .theme-config .input-group-addon:hover {
- border-color: #ddd;
-}
-#theme-builder .theme-config .colorpicker-element {
- margin-bottom: 5px;
- border-radius: 0;
-}
-#theme-builder .theme-config .input-group-addon {
- background-color: #fff;
-}
-#theme-builder .theme-config .input-group-addon i {
- border: 1px solid #eee;
-}
-#theme-builder .theme-config .panel-group {
- margin-bottom: 0;
-}
-#theme-builder .theme-config .panel {
- border: none;
-}
-#theme-builder .theme-config .panel-heading {
- border: none;
- border-top: 1px solid #ddd;
- border-radius: 0;
- color: #293c55;
- padding: 0;
- transition: 0.5s;
-}
-#theme-builder .theme-config .panel-heading:hover {
- background-color: #eee;
-}
-#theme-builder .theme-config .panel-title a {
- display: block;
- padding: 10px 16px;
- text-decoration: none !important;
-}
-#theme-builder .theme-config .panel-body {
- border-top: none !important;
-}
-#theme-builder .space-row {
- margin-left: -4px;
-}
-#theme-builder .theme-plan-row .col-xs-6:nth-child(even) {
- padding-left: 5px;
-}
-#theme-builder .theme-plan-row .col-xs-6:nth-child(odd) {
- padding-right: 5px;
-}
-#theme-builder .theme-plan-group {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- width: auto;
- height: 32px;
- overflow: hidden;
- border: 1px solid #eee;
- padding: 5px;
- border-radius: 4px;
- margin-bottom: 8px;
-}
-#theme-builder .theme-plan-color {
- width: 20px;
- height: 20px;
- margin-bottom: 10px;
- margin-left: 2px;
- margin-right: 2px;
- display: inline-block;
- border-radius: 3px;
-}
-
-#theme-builder .colorpicker {
- padding: 10px;
-}
-#theme-builder .theme-color-control {
- padding-top: 5px;
-}
-#theme-builder .theme-color-control a {
- margin: 0px 0 5px 5px;
-}
-
-#theme-builder #download-js-modal pre {
- max-height: 200px;
- overflow-y: auto;
- border-radius: 0 4px 4px 4px;
- background-color: #f9f9f9;
- border-color: #eee;
- transition: 0.5s;
-}
-#theme-builder #download-js-modal pre:hover {
- box-shadow: inset 0 0 10px #ccc;
-}
-#theme-builder #download-js-modal pre code {
- position: relative;
- top: -20px;
- background: transparent;
-}
-#theme-builder #download-js-modal h4 ~ h4 {
- margin-top: 20px;
-}
-#theme-builder #download-js-modal .tab-content {
- margin-top: 10px;
-}
-#theme-builder .code-btn .btn {
- border-radius: 4px 0 0 0;
- border-bottom: 0;
-}
-#theme-builder .code-btn .btn ~ .btn {
- border-radius: 0 4px 0 0;
-}
-#theme-builder .code-btn label {
- font-size: 0.9em;
- margin-left: 10px;
- display: none;
- background-color: #ffa;
- padding: 1px 5px;
-}
-#theme-builder .nav-tabs {
- margin-top: 10px;
-}
-#theme-builder .modal-dialog {
- margin-top: 100px;
-}
-@media (min-width: 960px) {
- #theme-builder .modal-dialog {
- width: 900px;
- }
-}
\ No newline at end of file
diff --git a/app/en/theme-builder/themes/chalk.json b/app/en/theme-builder/themes/chalk.json
deleted file mode 100644
index eb59ac5..0000000
--- a/app/en/theme-builder/themes/chalk.json
+++ /dev/null
@@ -1,169 +0,0 @@
-{
- "version": 1,
- "themeName": "chalk",
- "theme": {
- "seriesCnt": "3",
- "backgroundColor": "rgba(41,52,65,1)",
- "titleColor": "#ffffff",
- "subtitleColor": "#dddddd",
- "textColorShow": false,
- "textColor": "#333",
- "markTextColor": "#293441",
- "color": [
- "#fc97af",
- "#87f7cf",
- "#f7f494",
- "#72ccff",
- "#f7c5a0",
- "#d4a4eb",
- "#d2f5a6",
- "#76f2f2"
- ],
- "borderColor": "#ccc",
- "borderWidth": 0,
- "visualMapColor": [
- "#fc97af",
- "#87f7cf"
- ],
- "legendTextColor": "#999999",
- "kColor": "#fc97af",
- "kColor0": "transparent",
- "kBorderColor": "#fc97af",
- "kBorderColor0": "#87f7cf",
- "kBorderWidth": "2",
- "lineWidth": "3",
- "symbolSize": "0",
- "symbol": "circle",
- "symbolBorderWidth": "4",
- "lineSmooth": true,
- "graphLineWidth": "1",
- "graphLineColor": "#ffffff",
- "mapLabelColor": "#893448",
- "mapLabelColorE": "rgb(137,52,72)",
- "mapBorderColor": "#999999",
- "mapBorderColorE": "#eb8146",
- "mapBorderWidth": 0.5,
- "mapBorderWidthE": 1,
- "mapAreaColor": "#f3f3f3",
- "mapAreaColorE": "rgba(255,178,72,1)",
- "axes": [
- {
- "type": "all",
- "name": "通用坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#666666",
- "axisTickShow": false,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#aaaaaa",
- "splitLineShow": false,
- "splitLineColor": [
- "#e6e6e6"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.05)",
- "rgba(200,200,200,0.02)"
- ]
- },
- {
- "type": "category",
- "name": "类目坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": false,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "value",
- "name": "数值坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "log",
- "name": "对数坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "time",
- "name": "时间坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- }
- ],
- "axisSeperateSetting": false,
- "toolboxColor": "#999999",
- "toolboxEmphasisColor": "#666666",
- "tooltipAxisColor": "#cccccc",
- "tooltipAxisWidth": 1,
- "timelineLineColor": "#87f7cf",
- "timelineLineWidth": 1,
- "timelineItemColor": "#87f7cf",
- "timelineItemColorE": "#f7f494",
- "timelineCheckColor": "#fc97af",
- "timelineCheckBorderColor": "rgba(252,151,175,0.3)",
- "timelineItemBorderWidth": 1,
- "timelineControlColor": "#87f7cf",
- "timelineControlBorderColor": "#87f7cf",
- "timelineControlBorderWidth": 0.5,
- "timelineLabelColor": "#87f7cf",
- "datazoomBackgroundColor": "rgba(255,255,255,0)",
- "datazoomDataColor": "rgba(114,204,255,1)",
- "datazoomFillColor": "rgba(114,204,255,0.2)",
- "datazoomHandleColor": "#72ccff",
- "datazoomHandleWidth": "100",
- "datazoomLabelColor": "#333333"
- }
-}
diff --git a/app/en/theme-builder/themes/dark.json b/app/en/theme-builder/themes/dark.json
deleted file mode 100644
index 25dc579..0000000
--- a/app/en/theme-builder/themes/dark.json
+++ /dev/null
@@ -1,172 +0,0 @@
-{
- "version": 1,
- "themeName": "dark",
- "theme": {
- "seriesCnt": "4",
- "backgroundColor": "rgba(51,51,51,1)",
- "titleColor": "#eeeeee",
- "subtitleColor": "#aaa",
- "textColorShow": false,
- "textColor": "#333",
- "markTextColor": "#eee",
- "color": [
- "#dd6b66",
- "#759aa0",
- "#e69d87",
- "#8dc1a9",
- "#ea7e53",
- "#eedd78",
- "#73a373",
- "#73b9bc",
- "#7289ab",
- "#91ca8c",
- "#f49f42"
- ],
- "borderColor": "#ccc",
- "borderWidth": 0,
- "visualMapColor": [
- "#bf444c",
- "#d88273",
- "#f6efa6"
- ],
- "legendTextColor": "#eeeeee",
- "kColor": "#fd1050",
- "kColor0": "#0cf49b",
- "kBorderColor": "#fd1050",
- "kBorderColor0": "#0cf49b",
- "kBorderWidth": 1,
- "lineWidth": 2,
- "symbolSize": 4,
- "symbol": "circle",
- "symbolBorderWidth": 1,
- "lineSmooth": false,
- "graphLineWidth": 1,
- "graphLineColor": "#aaa",
- "mapLabelColor": "#000",
- "mapLabelColorE": "rgb(100,0,0)",
- "mapBorderColor": "#444",
- "mapBorderColorE": "#444",
- "mapBorderWidth": 0.5,
- "mapBorderWidthE": 1,
- "mapAreaColor": "#eee",
- "mapAreaColorE": "rgba(255,215,0,0.8)",
- "axes": [
- {
- "type": "all",
- "name": "通用坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#eeeeee",
- "axisTickShow": true,
- "axisTickColor": "#eeeeee",
- "axisLabelShow": true,
- "axisLabelColor": "#eeeeee",
- "splitLineShow": true,
- "splitLineColor": [
- "#aaaaaa"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "#eeeeee"
- ]
- },
- {
- "type": "category",
- "name": "类目坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": false,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "value",
- "name": "数值坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "log",
- "name": "对数坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "time",
- "name": "时间坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- }
- ],
- "axisSeperateSetting": false,
- "toolboxColor": "#999",
- "toolboxEmphasisColor": "#666",
- "tooltipAxisColor": "#eeeeee",
- "tooltipAxisWidth": "1",
- "timelineLineColor": "#eeeeee",
- "timelineLineWidth": 1,
- "timelineItemColor": "#dd6b66",
- "timelineItemColorE": "#a9334c",
- "timelineCheckColor": "#e43c59",
- "timelineCheckBorderColor": "rgba(194,53,49, 0.5)",
- "timelineItemBorderWidth": 1,
- "timelineControlColor": "#eeeeee",
- "timelineControlBorderColor": "#eeeeee",
- "timelineControlBorderWidth": 0.5,
- "timelineLabelColor": "#eeeeee",
- "datazoomBackgroundColor": "rgba(47,69,84,0)",
- "datazoomDataColor": "rgba(255,255,255,0.3)",
- "datazoomFillColor": "rgba(167,183,204,0.4)",
- "datazoomHandleColor": "#a7b7cc",
- "datazoomHandleWidth": "100",
- "datazoomLabelColor": "#eeeeee"
- }
-}
diff --git a/app/en/theme-builder/themes/default.json b/app/en/theme-builder/themes/default.json
deleted file mode 100644
index d4d2ac8..0000000
--- a/app/en/theme-builder/themes/default.json
+++ /dev/null
@@ -1,173 +0,0 @@
-{
- "version": 1,
- "themeName": "default",
- "theme": {
- "seriesCnt": 3,
- "backgroundColor": "rgba(0,0,0,0)",
- "titleColor": "#333333",
- "subtitleColor": "#aaa",
- "textColorShow": false,
- "textColor": "#333",
- "markTextColor": "#eee",
- "color": [
- "#c23531",
- "#2f4554",
- "#61a0a8",
- "#d48265",
- "#91c7ae",
- "#749f83",
- "#ca8622",
- "#bda29a",
- "#6e7074",
- "#546570",
- "#c4ccd3"
- ],
- "borderColor": "#ccc",
- "borderWidth": 0,
- "visualMapColor": [
- "#bf444c",
- "#d88273",
- "#f6efa6"
- ],
- "legendTextColor": "#333333",
- "kColor": "#c23531",
- "kColor0": "#314656",
- "kBorderColor": "#c23531",
- "kBorderColor0": "#314656",
- "kBorderWidth": 1,
- "lineWidth": 2,
- "symbolSize": 4,
- "symbol": "emptyCircle",
- "symbolBorderWidth": 1,
- "lineSmooth": false,
- "graphLineWidth": 1,
- "graphLineColor": "#aaa",
- "mapLabelColor": "#000000",
- "mapLabelColorE": "rgb(100,0,0)",
- "mapBorderColor": "#444444",
- "mapBorderColorE": "#444",
- "mapBorderWidth": 0.5,
- "mapBorderWidthE": 1,
- "mapAreaColor": "#eeeeee",
- "mapAreaColorE": "rgba(255,215,0,0.8)",
- "axes": [
- {
- "type": "all",
- "name": "通用坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "category",
- "name": "类目坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": false,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "value",
- "name": "数值坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "log",
- "name": "对数坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "time",
- "name": "时间坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- }
- ],
- "axisSeperateSetting": true,
- "toolboxColor": "#999999",
- "toolboxEmphasisColor": "#666666",
- "tooltipAxisColor": "#cccccc",
- "tooltipAxisWidth": 1,
- "timelineLineColor": "#293c55",
- "timelineLineWidth": 1,
- "timelineItemColor": "#293c55",
- "timelineItemColorE": "#a9334c",
- "timelineCheckColor": "#e43c59",
- "timelineCheckBorderColor": "rgba(194,53,49, 0.5)",
- "timelineItemBorderWidth": 1,
- "timelineControlColor": "#293c55",
- "timelineControlBorderColor": "#293c55",
- "timelineControlBorderWidth": 0.5,
- "timelineLabelColor": "#293c55",
- "datazoomBackgroundColor": "rgba(47,69,84,0)",
- "datazoomDataColor": "rgba(47,69,84,0.3)",
- "datazoomFillColor": "rgba(167,183,204,0.4)",
- "datazoomHandleColor": "#a7b7cc",
- "datazoomHandleWidth": "100",
- "datazoomLabelColor": "#333333"
- }
-}
diff --git a/app/en/theme-builder/themes/essos.json b/app/en/theme-builder/themes/essos.json
deleted file mode 100644
index ece0814..0000000
--- a/app/en/theme-builder/themes/essos.json
+++ /dev/null
@@ -1,171 +0,0 @@
-{
- "version": 1,
- "themeName": "essos",
- "theme": {
- "seriesCnt": "4",
- "backgroundColor": "rgba(242,234,191,0.15)",
- "titleColor": "#893448",
- "subtitleColor": "#d95850",
- "textColorShow": false,
- "textColor": "#333",
- "markTextColor": "#ffffff",
- "color": [
- "#893448",
- "#d95850",
- "#eb8146",
- "#ffb248",
- "#f2d643",
- "#ebdba4"
- ],
- "borderColor": "#ccc",
- "borderWidth": 0,
- "visualMapColor": [
- "#893448",
- "#d95850",
- "#eb8146",
- "#ffb248",
- "#f2d643",
- "rgb(247,238,173)"
- ],
- "legendTextColor": "#999999",
- "kColor": "#eb8146",
- "kColor0": "transparent",
- "kBorderColor": "#d95850",
- "kBorderColor0": "#58c470",
- "kBorderWidth": "2",
- "lineWidth": "2",
- "symbolSize": "6",
- "symbol": "emptyCircle",
- "symbolBorderWidth": "2",
- "lineSmooth": true,
- "graphLineWidth": 1,
- "graphLineColor": "#aaa",
- "mapLabelColor": "#893448",
- "mapLabelColorE": "#893448",
- "mapBorderColor": "#999999",
- "mapBorderColorE": "#eb8146",
- "mapBorderWidth": 0.5,
- "mapBorderWidthE": 1,
- "mapAreaColor": "#f3f3f3",
- "mapAreaColorE": "#ffb248",
- "axes": [
- {
- "type": "all",
- "name": "通用坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#aaaaaa",
- "axisTickShow": false,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#999999",
- "splitLineShow": true,
- "splitLineColor": [
- "#e6e6e6"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.05)",
- "rgba(200,200,200,0.02)"
- ]
- },
- {
- "type": "category",
- "name": "类目坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": false,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "value",
- "name": "数值坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "log",
- "name": "对数坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "time",
- "name": "时间坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- }
- ],
- "axisSeperateSetting": false,
- "toolboxColor": "#999",
- "toolboxEmphasisColor": "#666",
- "tooltipAxisColor": "#ccc",
- "tooltipAxisWidth": 1,
- "timelineLineColor": "#893448",
- "timelineLineWidth": 1,
- "timelineItemColor": "#893448",
- "timelineItemColorE": "#ffb248",
- "timelineCheckColor": "#eb8146",
- "timelineCheckBorderColor": "rgba(255,178,72,0.41)",
- "timelineItemBorderWidth": 1,
- "timelineControlColor": "#893448",
- "timelineControlBorderColor": "#893448",
- "timelineControlBorderWidth": 0.5,
- "timelineLabelColor": "#893448",
- "datazoomBackgroundColor": "rgba(255,255,255,0)",
- "datazoomDataColor": "rgba(255,178,72,0.5)",
- "datazoomFillColor": "rgba(255,178,72,0.15)",
- "datazoomHandleColor": "#ffb248",
- "datazoomHandleWidth": "100",
- "datazoomLabelColor": "#333"
- }
-}
diff --git a/app/en/theme-builder/themes/halloween.json b/app/en/theme-builder/themes/halloween.json
deleted file mode 100644
index 7766c49..0000000
--- a/app/en/theme-builder/themes/halloween.json
+++ /dev/null
@@ -1,167 +0,0 @@
-{
- "version": 1,
- "themeName": "halloween",
- "theme": {
- "seriesCnt": "4",
- "backgroundColor": "rgba(64,64,64,0.5)",
- "titleColor": "#ffaf51",
- "subtitleColor": "#eeeeee",
- "textColorShow": false,
- "textColor": "#333",
- "markTextColor": "#333333",
- "color": [
- "#ff715e",
- "#ffaf51",
- "#ffee51",
- "#8c6ac4",
- "#715c87"
- ],
- "borderColor": "#ccc",
- "borderWidth": "0",
- "visualMapColor": [
- "#ff715e",
- "#ffee51",
- "#797fba"
- ],
- "legendTextColor": "#999999",
- "kColor": "#ffee51",
- "kColor0": "rgba(255,255,255,0)",
- "kBorderColor": "#ff715e",
- "kBorderColor0": "#797fba",
- "kBorderWidth": "1",
- "lineWidth": "3",
- "symbolSize": "8",
- "symbol": "emptyCircle",
- "symbolBorderWidth": "2",
- "lineSmooth": false,
- "graphLineWidth": "1",
- "graphLineColor": "#888888",
- "mapLabelColor": "#ffffff",
- "mapLabelColorE": "#ffee51",
- "mapBorderColor": "#999999",
- "mapBorderColorE": "#ffaf51",
- "mapBorderWidth": 0.5,
- "mapBorderWidthE": 1,
- "mapAreaColor": "#555555",
- "mapAreaColorE": "rgba(255,175,81,0.5)",
- "axes": [
- {
- "type": "all",
- "name": "通用坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#666666",
- "axisTickShow": false,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#999999",
- "splitLineShow": true,
- "splitLineColor": [
- "#555555"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.05)",
- "rgba(200,200,200,0.02)"
- ]
- },
- {
- "type": "category",
- "name": "类目坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": false,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "value",
- "name": "数值坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "log",
- "name": "对数坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "time",
- "name": "时间坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- }
- ],
- "axisSeperateSetting": false,
- "toolboxColor": "#999999",
- "toolboxEmphasisColor": "#666666",
- "tooltipAxisColor": "#cccccc",
- "tooltipAxisWidth": 1,
- "timelineLineColor": "#ffaf51",
- "timelineLineWidth": 1,
- "timelineItemColor": "#ffaf51",
- "timelineItemColorE": "#ffaf51",
- "timelineCheckColor": "#ff715e",
- "timelineCheckBorderColor": "rgba(255,113,94,0.4)",
- "timelineItemBorderWidth": 1,
- "timelineControlColor": "#ffaf51",
- "timelineControlBorderColor": "#ffaf51",
- "timelineControlBorderWidth": 0.5,
- "timelineLabelColor": "#ff715e",
- "datazoomBackgroundColor": "rgba(255,255,255,0)",
- "datazoomDataColor": "rgba(222,222,222,1)",
- "datazoomFillColor": "rgba(255,113,94,0.2)",
- "datazoomHandleColor": "#cccccc",
- "datazoomHandleWidth": "100",
- "datazoomLabelColor": "#999999"
- }
-}
diff --git a/app/en/theme-builder/themes/infographic.json b/app/en/theme-builder/themes/infographic.json
deleted file mode 100644
index 2268bbd..0000000
--- a/app/en/theme-builder/themes/infographic.json
+++ /dev/null
@@ -1,176 +0,0 @@
-{
- "version": 1,
- "themeName": "infographic",
- "theme": {
- "seriesCnt": "4",
- "backgroundColor": "rgba(0,0,0,0)",
- "titleColor": "#27727b",
- "subtitleColor": "#aaa",
- "textColorShow": false,
- "textColor": "#333",
- "markTextColor": "#eee",
- "color": [
- "#c1232b",
- "#27727b",
- "#fcce10",
- "#e87c25",
- "#b5c334",
- "#fe8463",
- "#9bca63",
- "#fad860",
- "#f3a43b",
- "#60c0dd",
- "#d7504b",
- "#c6e579",
- "#f4e001",
- "#f0805a",
- "#26c0c0"
- ],
- "borderColor": "#ccc",
- "borderWidth": 0,
- "visualMapColor": [
- "#c1232b",
- "#fcce10"
- ],
- "legendTextColor": "#333333",
- "kColor": "#c1232b",
- "kColor0": "#b5c334",
- "kBorderColor": "#c1232b",
- "kBorderColor0": "#b5c334",
- "kBorderWidth": 1,
- "lineWidth": "3",
- "symbolSize": "5",
- "symbol": "emptyCircle",
- "symbolBorderWidth": 1,
- "lineSmooth": false,
- "graphLineWidth": 1,
- "graphLineColor": "#aaa",
- "mapLabelColor": "#c1232b",
- "mapLabelColorE": "rgb(100,0,0)",
- "mapBorderColor": "#eeeeee",
- "mapBorderColorE": "#444",
- "mapBorderWidth": 0.5,
- "mapBorderWidthE": 1,
- "mapAreaColor": "#dddddd",
- "mapAreaColorE": "#fe994e",
- "axes": [
- {
- "type": "all",
- "name": "通用坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "category",
- "name": "类目坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#27727b",
- "axisTickShow": true,
- "axisTickColor": "#27727b",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": false,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "value",
- "name": "数值坐标轴",
- "axisLineShow": false,
- "axisLineColor": "#333",
- "axisTickShow": false,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "log",
- "name": "对数坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#27727b",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "time",
- "name": "时间坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#27727b",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- }
- ],
- "axisSeperateSetting": true,
- "toolboxColor": "#c1232b",
- "toolboxEmphasisColor": "#e87c25",
- "tooltipAxisColor": "#27727b",
- "tooltipAxisWidth": 1,
- "timelineLineColor": "#293c55",
- "timelineLineWidth": 1,
- "timelineItemColor": "#27727b",
- "timelineItemColorE": "#72d4e0",
- "timelineCheckColor": "#c1232b",
- "timelineCheckBorderColor": "rgba(194,53,49, 0.5)",
- "timelineItemBorderWidth": 1,
- "timelineControlColor": "#27727b",
- "timelineControlBorderColor": "#27727b",
- "timelineControlBorderWidth": 0.5,
- "timelineLabelColor": "#293c55",
- "datazoomBackgroundColor": "rgba(0,0,0,0)",
- "datazoomDataColor": "rgba(181,195,52,0.3)",
- "datazoomFillColor": "rgba(181,195,52,0.2)",
- "datazoomHandleColor": "#27727b",
- "datazoomHandleWidth": "100",
- "datazoomLabelColor": "#999999"
- }
-}
diff --git a/app/en/theme-builder/themes/macarons.json b/app/en/theme-builder/themes/macarons.json
deleted file mode 100644
index d695cee..0000000
--- a/app/en/theme-builder/themes/macarons.json
+++ /dev/null
@@ -1,180 +0,0 @@
-{
- "version": 1,
- "themeName": "macarons",
- "theme": {
- "seriesCnt": "4",
- "backgroundColor": "rgba(0,0,0,0)",
- "titleColor": "#008acd",
- "subtitleColor": "#aaa",
- "textColorShow": false,
- "textColor": "#333",
- "markTextColor": "#eee",
- "color": [
- "#2ec7c9",
- "#b6a2de",
- "#5ab1ef",
- "#ffb980",
- "#d87a80",
- "#8d98b3",
- "#e5cf0d",
- "#97b552",
- "#95706d",
- "#dc69aa",
- "#07a2a4",
- "#9a7fd1",
- "#588dd5",
- "#f5994e",
- "#c05050",
- "#59678c",
- "#c9ab00",
- "#7eb00a",
- "#6f5553",
- "#c14089"
- ],
- "borderColor": "#ccc",
- "borderWidth": 0,
- "visualMapColor": [
- "#5ab1ef",
- "#e0ffff"
- ],
- "legendTextColor": "#333333",
- "kColor": "#d87a80",
- "kColor0": "#2ec7c9",
- "kBorderColor": "#d87a80",
- "kBorderColor0": "#2ec7c9",
- "kBorderWidth": 1,
- "lineWidth": 2,
- "symbolSize": 3,
- "symbol": "emptyCircle",
- "symbolBorderWidth": 1,
- "lineSmooth": true,
- "graphLineWidth": 1,
- "graphLineColor": "#aaa",
- "mapLabelColor": "#d87a80",
- "mapLabelColorE": "rgb(100,0,0)",
- "mapBorderColor": "#eeeeee",
- "mapBorderColorE": "#444",
- "mapBorderWidth": 0.5,
- "mapBorderWidthE": 1,
- "mapAreaColor": "#dddddd",
- "mapAreaColorE": "rgba(254,153,78,1)",
- "axes": [
- {
- "type": "all",
- "name": "通用坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#eeeeee",
- "axisTickShow": true,
- "axisTickColor": "#eeeeee",
- "axisLabelShow": true,
- "axisLabelColor": "#eeeeee",
- "splitLineShow": true,
- "splitLineColor": [
- "#aaaaaa"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "#eeeeee"
- ]
- },
- {
- "type": "category",
- "name": "类目坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#008acd",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": false,
- "splitLineColor": [
- "#eee"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "value",
- "name": "数值坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#008acd",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#eee"
- ],
- "splitAreaShow": true,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "log",
- "name": "对数坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#008acd",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#eee"
- ],
- "splitAreaShow": true,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "time",
- "name": "时间坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#008acd",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#eee"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- }
- ],
- "axisSeperateSetting": true,
- "toolboxColor": "#2ec7c9",
- "toolboxEmphasisColor": "#18a4a6",
- "tooltipAxisColor": "#008acd",
- "tooltipAxisWidth": "1",
- "timelineLineColor": "#008acd",
- "timelineLineWidth": 1,
- "timelineItemColor": "#008acd",
- "timelineItemColorE": "#a9334c",
- "timelineCheckColor": "#2ec7c9",
- "timelineCheckBorderColor": "rgba(46,199,201,0.4)",
- "timelineItemBorderWidth": 1,
- "timelineControlColor": "#008acd",
- "timelineControlBorderColor": "#008acd",
- "timelineControlBorderWidth": 0.5,
- "timelineLabelColor": "#008acd",
- "datazoomBackgroundColor": "rgba(47,69,84,0)",
- "datazoomDataColor": "#efefff",
- "datazoomFillColor": "rgba(182,162,222,0.2)",
- "datazoomHandleColor": "#008acd",
- "datazoomHandleWidth": "100",
- "datazoomLabelColor": "#333333"
- }
-}
diff --git a/app/en/theme-builder/themes/purple-passion.json b/app/en/theme-builder/themes/purple-passion.json
deleted file mode 100644
index 44a7fb2..0000000
--- a/app/en/theme-builder/themes/purple-passion.json
+++ /dev/null
@@ -1,169 +0,0 @@
-{
- "version": 1,
- "themeName": "purple-passion",
- "theme": {
- "seriesCnt": "3",
- "backgroundColor": "rgba(91,92,110,1)",
- "titleColor": "#ffffff",
- "subtitleColor": "#cccccc",
- "textColorShow": false,
- "textColor": "#333",
- "markTextColor": "#eee",
- "color": [
- "#9b8bba",
- "#e098c7",
- "#8fd3e8",
- "#71669e",
- "#cc70af",
- "#7cb4cc"
- ],
- "borderColor": "#ccc",
- "borderWidth": 0,
- "visualMapColor": [
- "#8a7ca8",
- "#e098c7",
- "#cceffa"
- ],
- "legendTextColor": "#cccccc",
- "kColor": "#e098c7",
- "kColor0": "transparent",
- "kBorderColor": "#e098c7",
- "kBorderColor0": "#8fd3e8",
- "kBorderWidth": "2",
- "lineWidth": "3",
- "symbolSize": "7",
- "symbol": "circle",
- "symbolBorderWidth": "2",
- "lineSmooth": true,
- "graphLineWidth": 1,
- "graphLineColor": "#aaa",
- "mapLabelColor": "#000",
- "mapLabelColorE": "#ffffff",
- "mapBorderColor": "#444",
- "mapBorderColorE": "#444",
- "mapBorderWidth": 0.5,
- "mapBorderWidthE": 1,
- "mapAreaColor": "#eee",
- "mapAreaColorE": "#e098c7",
- "axes": [
- {
- "type": "all",
- "name": "通用坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#cccccc",
- "axisTickShow": false,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#cccccc",
- "splitLineShow": false,
- "splitLineColor": [
- "#eeeeee",
- "#333333"
- ],
- "splitAreaShow": true,
- "splitAreaColor": [
- "rgba(250,250,250,0.05)",
- "rgba(200,200,200,0.02)"
- ]
- },
- {
- "type": "category",
- "name": "类目坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": false,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "value",
- "name": "数值坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "log",
- "name": "对数坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "time",
- "name": "时间坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- }
- ],
- "axisSeperateSetting": false,
- "toolboxColor": "#999",
- "toolboxEmphasisColor": "#666",
- "tooltipAxisColor": "#ccc",
- "tooltipAxisWidth": 1,
- "timelineLineColor": "#8fd3e8",
- "timelineLineWidth": 1,
- "timelineItemColor": "#8fd3e8",
- "timelineItemColorE": "#8fd3e8",
- "timelineCheckColor": "#8fd3e8",
- "timelineCheckBorderColor": "rgba(138,124,168,0.37)",
- "timelineItemBorderWidth": 1,
- "timelineControlColor": "#8fd3e8",
- "timelineControlBorderColor": "#8fd3e8",
- "timelineControlBorderWidth": 0.5,
- "timelineLabelColor": "#8fd3e8",
- "datazoomBackgroundColor": "rgba(0,0,0,0)",
- "datazoomDataColor": "rgba(255,255,255,0.3)",
- "datazoomFillColor": "rgba(167,183,204,0.4)",
- "datazoomHandleColor": "#a7b7cc",
- "datazoomHandleWidth": "100",
- "datazoomLabelColor": "#333"
- }
-}
diff --git a/app/en/theme-builder/themes/roma.json b/app/en/theme-builder/themes/roma.json
deleted file mode 100644
index ab258c9..0000000
--- a/app/en/theme-builder/themes/roma.json
+++ /dev/null
@@ -1,181 +0,0 @@
-{
- "version": 1,
- "themeName": "roma",
- "theme": {
- "seriesCnt": "4",
- "backgroundColor": "rgba(0,0,0,0)",
- "titleColor": "#333333",
- "subtitleColor": "#aaa",
- "textColorShow": false,
- "textColor": "#333",
- "markTextColor": "#eee",
- "color": [
- "#e01f54",
- "#001852",
- "#f5e8c8",
- "#b8d2c7",
- "#c6b38e",
- "#a4d8c2",
- "#f3d999",
- "#d3758f",
- "#dcc392",
- "#2e4783",
- "#82b6e9",
- "#ff6347",
- "#a092f1",
- "#0a915d",
- "#eaf889",
- "#6699FF",
- "#ff6666",
- "#3cb371",
- "#d5b158",
- "#38b6b6"
- ],
- "borderColor": "#ccc",
- "borderWidth": 0,
- "visualMapColor": [
- "#e01f54",
- "#e7dbc3"
- ],
- "legendTextColor": "#333333",
- "kColor": "#e01f54",
- "kColor0": "#001852",
- "kBorderColor": "#f5e8c8",
- "kBorderColor0": "#b8d2c7",
- "kBorderWidth": 1,
- "lineWidth": 2,
- "symbolSize": 4,
- "symbol": "emptyCircle",
- "symbolBorderWidth": 1,
- "lineSmooth": false,
- "graphLineWidth": 1,
- "graphLineColor": "#aaa",
- "mapLabelColor": "#000000",
- "mapLabelColorE": "rgb(100,0,0)",
- "mapBorderColor": "#444444",
- "mapBorderColorE": "#444",
- "mapBorderWidth": 0.5,
- "mapBorderWidthE": 1,
- "mapAreaColor": "#eeeeee",
- "mapAreaColorE": "rgba(255,215,0,0.8)",
- "axes": [
- {
- "type": "all",
- "name": "通用坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "category",
- "name": "类目坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": false,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "value",
- "name": "数值坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "log",
- "name": "对数坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "time",
- "name": "时间坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- }
- ],
- "axisSeperateSetting": true,
- "toolboxColor": "#999999",
- "toolboxEmphasisColor": "#666666",
- "tooltipAxisColor": "#cccccc",
- "tooltipAxisWidth": 1,
- "timelineLineColor": "#293c55",
- "timelineLineWidth": 1,
- "timelineItemColor": "#293c55",
- "timelineItemColorE": "#a9334c",
- "timelineCheckColor": "#e43c59",
- "timelineCheckBorderColor": "rgba(194,53,49,0.5)",
- "timelineItemBorderWidth": 1,
- "timelineControlColor": "#293c55",
- "timelineControlBorderColor": "#293c55",
- "timelineControlBorderWidth": 0.5,
- "timelineLabelColor": "#293c55",
- "datazoomBackgroundColor": "rgba(47,69,84,0)",
- "datazoomDataColor": "rgba(47,69,84,0.3)",
- "datazoomFillColor": "rgba(167,183,204,0.4)",
- "datazoomHandleColor": "#a7b7cc",
- "datazoomHandleWidth": "100",
- "datazoomLabelColor": "#333333"
- }
-}
diff --git a/app/en/theme-builder/themes/shine.json b/app/en/theme-builder/themes/shine.json
deleted file mode 100644
index 9c30675..0000000
--- a/app/en/theme-builder/themes/shine.json
+++ /dev/null
@@ -1,163 +0,0 @@
-{
- "version": 1,
- "themeName": "shine",
- "theme": {
- "seriesCnt": 4,
- "backgroundColor": "rgba(0,0,0,0)",
- "titleColor": "#333333",
- "subtitleColor": "#aaa",
- "textColorShow": false,
- "textColor": "#333",
- "markTextColor": "#eee",
- "color": [
- "#c12e34","#e6b600","#0098d9","#2b821d",
- "#005eaa","#339ca8","#cda819","#32a487"
- ],
- "borderColor": "#ccc",
- "borderWidth": 0,
- "visualMapColor": [
- "#1790cf",
- "#a2d4e6"
- ],
- "legendTextColor": "#333333",
- "kColor": "#c12e34",
- "kColor0": "#2b821d",
- "kBorderColor": "#c12e34",
- "kBorderColor0": "#2b821d",
- "kBorderWidth": 1,
- "lineWidth": 2,
- "symbolSize": 4,
- "symbol": "emptyCircle",
- "symbolBorderWidth": 1,
- "lineSmooth": false,
- "graphLineWidth": 1,
- "graphLineColor": "#aaa",
- "mapLabelColor": "#c12e34",
- "mapLabelColorE": "#c12e34",
- "mapBorderColor": "#eee",
- "mapBorderColorE": "#ddd",
- "mapBorderWidth": 0.5,
- "mapBorderWidthE": 1,
- "mapAreaColor": "#ddd",
- "mapAreaColorE": "#e6b600",
- "axes": [
- {
- "type": "all",
- "name": "通用坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "category",
- "name": "类目坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": false,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "value",
- "name": "数值坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "log",
- "name": "对数坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "time",
- "name": "时间坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- }
- ],
- "axisSeperateSetting": true,
- "toolboxColor": "#06467c",
- "toolboxEmphasisColor": "#4187c2",
- "tooltipAxisColor": "#cccccc",
- "tooltipAxisWidth": 1,
- "timelineLineColor": "#005eaa",
- "timelineLineWidth": 1,
- "timelineItemColor": "#005eaa",
- "timelineItemColorE": "#005eaa",
- "timelineCheckColor": "#005eaa",
- "timelineCheckBorderColor": "rgba(49,107,194,0.5)",
- "timelineItemBorderWidth": 1,
- "timelineControlColor": "#005eaa",
- "timelineControlBorderColor": "#005eaa",
- "timelineControlBorderWidth": 0.5,
- "timelineLabelColor": "#005eaa",
- "datazoomBackgroundColor": "rgba(47,69,84,0)",
- "datazoomDataColor": "rgba(47,69,84,0.3)",
- "datazoomFillColor": "rgba(167,183,204,0.4)",
- "datazoomHandleColor": "#a7b7cc",
- "datazoomHandleWidth": "100",
- "datazoomLabelColor": "#333333"
- }
-}
diff --git a/app/en/theme-builder/themes/vintage.json b/app/en/theme-builder/themes/vintage.json
deleted file mode 100644
index 2e29b8f..0000000
--- a/app/en/theme-builder/themes/vintage.json
+++ /dev/null
@@ -1,172 +0,0 @@
-{
- "version": 1,
- "themeName": "vintage",
- "theme": {
- "seriesCnt": 4,
- "backgroundColor": "rgba(254,248,239,1)",
- "titleColor": "#333333",
- "subtitleColor": "#aaa",
- "textColorShow": false,
- "textColor": "#333",
- "markTextColor": "#eee",
- "color": [
- "#d87c7c",
- "#919e8b",
- "#d7ab82",
- "#6e7074",
- "#61a0a8",
- "#efa18d",
- "#787464",
- "#cc7e63",
- "#724e58",
- "#4b565b"
- ],
- "borderColor": "#ccc",
- "borderWidth": 0,
- "visualMapColor": [
- "#bf444c",
- "#d88273",
- "#f6efa6"
- ],
- "legendTextColor": "#333333",
- "kColor": "#c23531",
- "kColor0": "#314656",
- "kBorderColor": "#c23531",
- "kBorderColor0": "#314656",
- "kBorderWidth": 1,
- "lineWidth": 2,
- "symbolSize": 4,
- "symbol": "emptyCircle",
- "symbolBorderWidth": 1,
- "lineSmooth": false,
- "graphLineWidth": 1,
- "graphLineColor": "#aaa",
- "mapLabelColor": "#000000",
- "mapLabelColorE": "rgb(100,0,0)",
- "mapBorderColor": "#444444",
- "mapBorderColorE": "#444444",
- "mapBorderWidth": 0.5,
- "mapBorderWidthE": 1,
- "mapAreaColor": "#eeeeee",
- "mapAreaColorE": "rgba(255,215,0,0.8)",
- "axes": [
- {
- "type": "all",
- "name": "通用坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "category",
- "name": "类目坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": false,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "value",
- "name": "数值坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "log",
- "name": "对数坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "time",
- "name": "时间坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- }
- ],
- "axisSeperateSetting": true,
- "toolboxColor": "#999999",
- "toolboxEmphasisColor": "#666666",
- "tooltipAxisColor": "#cccccc",
- "tooltipAxisWidth": 1,
- "timelineLineColor": "#293c55",
- "timelineLineWidth": 1,
- "timelineItemColor": "#293c55",
- "timelineItemColorE": "#a9334c",
- "timelineCheckColor": "#e43c59",
- "timelineCheckBorderColor": "rgba(194,53,49,0.5)",
- "timelineItemBorderWidth": 1,
- "timelineControlColor": "#293c55",
- "timelineControlBorderColor": "#293c55",
- "timelineControlBorderWidth": 0.5,
- "timelineLabelColor": "#293c55",
- "datazoomBackgroundColor": "rgba(47,69,84,0)",
- "datazoomDataColor": "rgba(47,69,84,0.3)",
- "datazoomFillColor": "rgba(167,183,204,0.4)",
- "datazoomHandleColor": "#a7b7cc",
- "datazoomHandleWidth": "100",
- "datazoomLabelColor": "#333333"
- }
-}
diff --git a/app/en/theme-builder/themes/walden.json b/app/en/theme-builder/themes/walden.json
deleted file mode 100644
index ce6f8ee..0000000
--- a/app/en/theme-builder/themes/walden.json
+++ /dev/null
@@ -1,167 +0,0 @@
-{
- "version": 1,
- "themeName": "walden",
- "theme": {
- "seriesCnt": "3",
- "backgroundColor": "rgba(252,252,252,0)",
- "titleColor": "#666666",
- "subtitleColor": "#999999",
- "textColorShow": false,
- "textColor": "#333",
- "markTextColor": "#ffffff",
- "color": [
- "#3fb1e3",
- "#6be6c1",
- "#626c91",
- "#a0a7e6",
- "#c4ebad",
- "#96dee8"
- ],
- "borderColor": "#ccc",
- "borderWidth": 0,
- "visualMapColor": [
- "#2a99c9",
- "#afe8ff"
- ],
- "legendTextColor": "#999999",
- "kColor": "#e6a0d2",
- "kColor0": "transparent",
- "kBorderColor": "#e6a0d2",
- "kBorderColor0": "#3fb1e3",
- "kBorderWidth": "2",
- "lineWidth": "3",
- "symbolSize": "8",
- "symbol": "emptyCircle",
- "symbolBorderWidth": "2",
- "lineSmooth": false,
- "graphLineWidth": "1",
- "graphLineColor": "#cccccc",
- "mapLabelColor": "#ffffff",
- "mapLabelColorE": "#3fb1e3",
- "mapBorderColor": "#aaaaaa",
- "mapBorderColorE": "#3fb1e3",
- "mapBorderWidth": 0.5,
- "mapBorderWidthE": 1,
- "mapAreaColor": "#eeeeee",
- "mapAreaColorE": "rgba(63,177,227,0.25)",
- "axes": [
- {
- "type": "all",
- "name": "通用坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#cccccc",
- "axisTickShow": false,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#999999",
- "splitLineShow": true,
- "splitLineColor": [
- "#eeeeee"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.05)",
- "rgba(200,200,200,0.02)"
- ]
- },
- {
- "type": "category",
- "name": "类目坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": false,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "value",
- "name": "数值坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "log",
- "name": "对数坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "time",
- "name": "时间坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- }
- ],
- "axisSeperateSetting": false,
- "toolboxColor": "#999999",
- "toolboxEmphasisColor": "#666666",
- "tooltipAxisColor": "#cccccc",
- "tooltipAxisWidth": 1,
- "timelineLineColor": "#626c91",
- "timelineLineWidth": 1,
- "timelineItemColor": "#626c91",
- "timelineItemColorE": "#626c91",
- "timelineCheckColor": "#3fb1e3",
- "timelineCheckBorderColor": "rgba(63,177,227,0.15)",
- "timelineItemBorderWidth": 1,
- "timelineControlColor": "#626c91",
- "timelineControlBorderColor": "#626c91",
- "timelineControlBorderWidth": 0.5,
- "timelineLabelColor": "#626c91",
- "datazoomBackgroundColor": "rgba(255,255,255,0)",
- "datazoomDataColor": "rgba(222,222,222,1)",
- "datazoomFillColor": "rgba(114,230,212,0.25)",
- "datazoomHandleColor": "#cccccc",
- "datazoomHandleWidth": "100",
- "datazoomLabelColor": "#999999"
- }
-}
diff --git a/app/en/theme-builder/themes/westeros.json b/app/en/theme-builder/themes/westeros.json
deleted file mode 100644
index 5b6fbfb..0000000
--- a/app/en/theme-builder/themes/westeros.json
+++ /dev/null
@@ -1,168 +0,0 @@
-{
- "version": 1,
- "themeName": "westeros",
- "theme": {
- "seriesCnt": "4",
- "backgroundColor": "rgba(0,0,0,0)",
- "titleColor": "#516b91",
- "subtitleColor": "#93b7e3",
- "textColorShow": false,
- "textColor": "#333",
- "markTextColor": "#eee",
- "color": [
- "#516b91",
- "#59c4e6",
- "#edafda",
- "#93b7e3",
- "#a5e7f0",
- "#cbb0e3"
- ],
- "borderColor": "#ccc",
- "borderWidth": 0,
- "visualMapColor": [
- "#516b91",
- "#59c4e6",
- "#a5e7f0"
- ],
- "legendTextColor": "#999999",
- "kColor": "#edafda",
- "kColor0": "transparent",
- "kBorderColor": "#d680bc",
- "kBorderColor0": "#8fd3e8",
- "kBorderWidth": "2",
- "lineWidth": "2",
- "symbolSize": "6",
- "symbol": "emptyCircle",
- "symbolBorderWidth": "2",
- "lineSmooth": true,
- "graphLineWidth": 1,
- "graphLineColor": "#aaa",
- "mapLabelColor": "#000",
- "mapLabelColorE": "#516b91",
- "mapBorderColor": "#516b91",
- "mapBorderColorE": "#516b91",
- "mapBorderWidth": 0.5,
- "mapBorderWidthE": 1,
- "mapAreaColor": "#f3f3f3",
- "mapAreaColorE": "#a5e7f0",
- "axes": [
- {
- "type": "all",
- "name": "通用坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#cccccc",
- "axisTickShow": false,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#999999",
- "splitLineShow": true,
- "splitLineColor": [
- "#eeeeee"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.05)",
- "rgba(200,200,200,0.02)"
- ]
- },
- {
- "type": "category",
- "name": "类目坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": false,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "value",
- "name": "数值坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "log",
- "name": "对数坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "time",
- "name": "时间坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- }
- ],
- "axisSeperateSetting": false,
- "toolboxColor": "#999",
- "toolboxEmphasisColor": "#666",
- "tooltipAxisColor": "#ccc",
- "tooltipAxisWidth": 1,
- "timelineLineColor": "#8fd3e8",
- "timelineLineWidth": 1,
- "timelineItemColor": "#8fd3e8",
- "timelineItemColorE": "#8fd3e8",
- "timelineCheckColor": "#8fd3e8",
- "timelineCheckBorderColor": "rgba(138,124,168,0.37)",
- "timelineItemBorderWidth": 1,
- "timelineControlColor": "#8fd3e8",
- "timelineControlBorderColor": "#8fd3e8",
- "timelineControlBorderWidth": 0.5,
- "timelineLabelColor": "#8fd3e8",
- "datazoomBackgroundColor": "rgba(0,0,0,0)",
- "datazoomDataColor": "rgba(255,255,255,0.3)",
- "datazoomFillColor": "rgba(167,183,204,0.4)",
- "datazoomHandleColor": "#a7b7cc",
- "datazoomHandleWidth": "100",
- "datazoomLabelColor": "#333"
- }
-}
diff --git a/app/en/theme-builder/themes/wonderland.json b/app/en/theme-builder/themes/wonderland.json
deleted file mode 100644
index 0db8e0e..0000000
--- a/app/en/theme-builder/themes/wonderland.json
+++ /dev/null
@@ -1,168 +0,0 @@
-{
- "version": 1,
- "themeName": "wonderland",
- "theme": {
- "seriesCnt": "3",
- "backgroundColor": "rgba(255,255,255,0)",
- "titleColor": "#666666",
- "subtitleColor": "#999999",
- "textColorShow": false,
- "textColor": "#333",
- "markTextColor": "#ffffff",
- "color": [
- "#4ea397",
- "#22c3aa",
- "#7bd9a5",
- "#d0648a",
- "#f58db2",
- "#f2b3c9"
- ],
- "borderColor": "#ccc",
- "borderWidth": 0,
- "visualMapColor": [
- "#d0648a",
- "#22c3aa",
- "#adfff1"
- ],
- "legendTextColor": "#999999",
- "kColor": "#d0648a",
- "kColor0": "transparent",
- "kBorderColor": "#d0648a",
- "kBorderColor0": "#22c3aa",
- "kBorderWidth": "1",
- "lineWidth": "3",
- "symbolSize": "8",
- "symbol": "emptyCircle",
- "symbolBorderWidth": "2",
- "lineSmooth": false,
- "graphLineWidth": "1",
- "graphLineColor": "#cccccc",
- "mapLabelColor": "#28544e",
- "mapLabelColorE": "#349e8e",
- "mapBorderColor": "#999999",
- "mapBorderColorE": "#22c3aa",
- "mapBorderWidth": 0.5,
- "mapBorderWidthE": 1,
- "mapAreaColor": "#eeeeee",
- "mapAreaColorE": "rgba(34,195,170,0.25)",
- "axes": [
- {
- "type": "all",
- "name": "通用坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#cccccc",
- "axisTickShow": false,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#999999",
- "splitLineShow": true,
- "splitLineColor": [
- "#eeeeee"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.05)",
- "rgba(200,200,200,0.02)"
- ]
- },
- {
- "type": "category",
- "name": "类目坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": false,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "value",
- "name": "数值坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "log",
- "name": "对数坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- },
- {
- "type": "time",
- "name": "时间坐标轴",
- "axisLineShow": true,
- "axisLineColor": "#333",
- "axisTickShow": true,
- "axisTickColor": "#333",
- "axisLabelShow": true,
- "axisLabelColor": "#333",
- "splitLineShow": true,
- "splitLineColor": [
- "#ccc"
- ],
- "splitAreaShow": false,
- "splitAreaColor": [
- "rgba(250,250,250,0.3)",
- "rgba(200,200,200,0.3)"
- ]
- }
- ],
- "axisSeperateSetting": false,
- "toolboxColor": "#999999",
- "toolboxEmphasisColor": "#666666",
- "tooltipAxisColor": "#cccccc",
- "tooltipAxisWidth": 1,
- "timelineLineColor": "#4ea397",
- "timelineLineWidth": 1,
- "timelineItemColor": "#4ea397",
- "timelineItemColorE": "#4ea397",
- "timelineCheckColor": "#4ea397",
- "timelineCheckBorderColor": "rgba(60,235,210,0.3)",
- "timelineItemBorderWidth": 1,
- "timelineControlColor": "#4ea397",
- "timelineControlBorderColor": "#4ea397",
- "timelineControlBorderWidth": 0.5,
- "timelineLabelColor": "#4ea397",
- "datazoomBackgroundColor": "rgba(255,255,255,0)",
- "datazoomDataColor": "rgba(222,222,222,1)",
- "datazoomFillColor": "rgba(114,230,212,0.25)",
- "datazoomHandleColor": "#cccccc",
- "datazoomHandleWidth": "100",
- "datazoomLabelColor": "#999999"
- }
-}
diff --git a/app/img/pumpkin.png b/app/img/pumpkin.png
deleted file mode 100644
index 2f78d80..0000000
Binary files a/app/img/pumpkin.png and /dev/null differ
diff --git a/app/index.html b/app/index.html
deleted file mode 100644
index 9390f5e..0000000
--- a/app/index.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script>
- var hash = (location.hash || '').replace('#', '');
- var search = (location.search || '').replace('?', '');
- var lang = navigator.language || navigator.userLanguage;
- lang = lang.indexOf('zh') > -1 ? 'zh' : 'en';
- location.href = './' + lang + '/index.html'
- + (search ? '?' + search : '') + (hash ? '#' + hash : '');
- </script>
-</head>
-<body>
-</body>
-</html>
diff --git a/app/scripts/components.js b/app/scripts/components.js
deleted file mode 100644
index 72dbab9..0000000
--- a/app/scripts/components.js
+++ /dev/null
@@ -1,211 +0,0 @@
-/**
- * Vue color tag
- */
-var VueColor = Vue.extend({
-
- template: '<div class="input-group colorpicker-component">'
- + '<input type="text" class="form-control" debounce="2000" />'
- + '<span class="input-group-addon"><i></i></span>'
- + '</div>',
-
- mounted: function () {
- var vm = this;
- var $el = $(this.$el);
- $el.find('input').val(this.color);
- $el.colorpicker().on('changeColor', function () {
- // Avoid colorpicker will format the color string and cause vm updated
- // twice when editing the hex value
- var colorStr = $el.find('input').val();
- var isColorValid = echarts.color.parse(colorStr);
- if (isColorValid) {
- vm.$set(vm, 'color', colorStr);
- }
- });
- vm.$watch('color', function(newV) {
- $el.colorpicker('setValue', newV);
- vm.$emit('update:color', newV);
- });
- },
-
- props: {
- color: {
- twoWay: true
- }
- }
-});
-
-Vue.component('color', VueColor);
-
-
-
-/**
- * Vue color list tag
- */
-var VueColorList = Vue.extend({
-
- template: '<div>'
- + '<div v-for="(color, $index) in colors" v-bind:track-by="$index">'
- + '<color :color.sync="colors[$index]"></color>'
- + '</div>'
- + '<div class="theme-color-control">'
- + '<a v-on:click="addColor()">增加</a>'
- + '<a v-on:click="removeColor()" v-show="colors.length > 1">减少</a>'
- + '</div>'
- + '</div>',
-
- props: {
- colors: {
- twoWay: true
- }
- },
-
- watch: {
- colors: {
- handler: function (newVal) {
- this.$emit('update:colors', newVal);
- },
- deep: true
- }
- },
-
- methods: {
- addColor: function () {
- this.colors.push('#333333');
- },
- removeColor: function () {
- this.colors.pop();
- }
- }
-});
-
-Vue.component('color-list', VueColorList);
-
-/**
- * Vue number config tag
- */
-var VueNumberConfig = Vue.extend({
- template:
- '<div class="form-group">' +
- ' <div class="col-sm-3">' +
- ' <input type="checkbox" v-model="enabled" v-if="canDisable" />' +
- ' <label class="control-label">{{title}}</label>' +
- ' </div>' +
- ' <div class="col-sm-9">' +
- ' <div class="input-group" v-show="enabled">' +
- ' <input type="number" v-model="value" class="form-control" />' +
- ' </div>' +
- ' </div>' +
- '</div>',
-
- props: {
- title: String,
- canDisable: {
- type: Boolean,
- default: false
- },
- value: {
- twoWay: true
- },
- enabled: {
- twoWay: true,
- default: true
- }
- },
-
- watch: {
- value: function (newVal) {
- this.$emit('update:value', newVal)
- },
- enabled: function (newVal) {
- this.$emit('update:enabled', newVal)
- }
- }
-});
-
-Vue.component('config-number', VueNumberConfig);
-
-/**
- * Vue color config tag
- */
-var VueColorConfig = Vue.extend({
- template:
- '<div class="form-group">' +
- ' <div class="col-sm-3">' +
- ' <input type="checkbox" v-model="enabled" v-if="canDisable" />' +
- ' <label class="control-label">{{title}}</label>' +
- ' </div>' +
- ' <div class="col-sm-9">' +
- // FIXME Why still needs sync?
- ' <color :color.sync="color" v-show="enabled"></color>' +
- ' </div>' +
- '</div>',
-
- props: {
- title: String,
- canDisable: {
- type: Boolean,
- default: false
- },
- color: {
- twoWay: true
- },
- enabled: {
- twoWay: true,
- default: true
- }
- },
-
- watch: {
- color: function (newVal) {
- this.$emit('update:color', newVal)
- },
- enabled: function (newVal) {
- this.$emit('update:enabled', newVal)
- }
- }
-});
-Vue.component('config-color', VueColorConfig);
-
-/**
- * Vue color list config tag
- */
-var VueColorListConfig = Vue.extend({
- template:
- '<div class="form-group">' +
- ' <div class="col-sm-3">' +
- ' <input type="checkbox" v-model="enabled" v-if="canDisable" />' +
- ' <label class="control-label">{{title}}</label>' +
- ' </div>' +
- ' <div class="col-sm-9">' +
- ' <color-list :colors.sync="colors" v-show="enabled"></color-list>' +
- ' </div>' +
- '</div>',
-
- props: {
- title: String,
- canDisable: {
- type: Boolean,
- default: false
- },
- colors: {
- twoWay: true
- },
- enabled: {
- twoWay: true,
- default: true
- }
- },
-
- watch: {
- colors: {
- handler: function (newVal) {
- this.$emit('update:colors', newVal)
- },
- deep: true
- },
- enabled: function (newVal) {
- this.$emit('update:enabled', newVal)
- }
- }
-});
-Vue.component('config-color-list', VueColorListConfig);
diff --git a/app/scripts/components_en.js b/app/scripts/components_en.js
deleted file mode 100644
index 9193b6e..0000000
--- a/app/scripts/components_en.js
+++ /dev/null
@@ -1,211 +0,0 @@
-/**
- * Vue color tag
- */
-var VueColor = Vue.extend({
-
- template: '<div class="input-group colorpicker-component">'
- + '<input type="text" class="form-control" debounce="2000" />'
- + '<span class="input-group-addon"><i></i></span>'
- + '</div>',
-
- mounted: function () {
- var vm = this;
- var $el = $(this.$el);
- $el.find('input').val(this.color);
- $el.colorpicker().on('changeColor', function () {
- // Avoid colorpicker will format the color string and cause vm updated
- // twice when editing the hex value
- var colorStr = $el.find('input').val();
- var isColorValid = echarts.color.parse(colorStr);
- if (isColorValid) {
- vm.$set(vm, 'color', colorStr);
- }
- });
- vm.$watch('color', function(newV) {
- $el.colorpicker('setValue', newV);
- vm.$emit('update:color', newV);
- });
- },
-
- props: {
- color: {
- twoWay: true
- }
- }
-});
-
-Vue.component('color', VueColor);
-
-
-
-/**
- * Vue color list tag
- */
-var VueColorList = Vue.extend({
-
- template: '<div>'
- + '<div v-for="(color, $index) in colors" v-bind:track-by="$index">'
- + '<color :color.sync="colors[$index]"></color>'
- + '</div>'
- + '<div class="theme-color-control">'
- + '<a v-on:click="addColor()">Add</a>'
- + '<a v-on:click="removeColor()" v-show="colors.length > 1">Remove</a>'
- + '</div>'
- + '</div>',
-
- props: {
- colors: {
- twoWay: true
- }
- },
-
- watch: {
- colors: {
- handler: function (newVal) {
- this.$emit('update:colors', newVal);
- },
- deep: true
- }
- },
-
- methods: {
- addColor: function () {
- this.colors.push('#333333');
- },
- removeColor: function () {
- this.colors.pop();
- }
- }
-});
-
-Vue.component('color-list', VueColorList);
-
-/**
- * Vue number config tag
- */
-var VueNumberConfig = Vue.extend({
- template:
- '<div class="form-group">' +
- ' <div class="col-sm-6">' +
- ' <input type="checkbox" v-model="enabled" v-if="canDisable" />' +
- ' <label class="control-label">{{title}}</label>' +
- ' </div>' +
- ' <div class="col-sm-6">' +
- ' <div class="input-group" v-show="enabled">' +
- ' <input type="number" v-model="value" class="form-control" />' +
- ' </div>' +
- ' </div>' +
- '</div>',
-
- props: {
- title: String,
- canDisable: {
- type: Boolean,
- default: false
- },
- value: {
- twoWay: true
- },
- enabled: {
- twoWay: true,
- default: true
- }
- },
-
- watch: {
- value: function (newVal) {
- this.$emit('update:value', newVal)
- },
- enabled: function (newVal) {
- this.$emit('update:enabled', newVal)
- }
- }
-});
-
-Vue.component('config-number', VueNumberConfig);
-
-/**
- * Vue color config tag
- */
-var VueColorConfig = Vue.extend({
- template:
- '<div class="form-group">' +
- ' <div class="col-sm-6">' +
- ' <input type="checkbox" v-model="enabled" v-if="canDisable" />' +
- ' <label class="control-label">{{title}}</label>' +
- ' </div>' +
- ' <div class="col-sm-6">' +
- // FIXME Why still needs sync?
- ' <color :color.sync="color" v-show="enabled"></color>' +
- ' </div>' +
- '</div>',
-
- props: {
- title: String,
- canDisable: {
- type: Boolean,
- default: false
- },
- color: {
- twoWay: true
- },
- enabled: {
- twoWay: true,
- default: true
- }
- },
-
- watch: {
- color: function (newVal) {
- this.$emit('update:color', newVal)
- },
- enabled: function (newVal) {
- this.$emit('update:enabled', newVal)
- }
- }
-});
-Vue.component('config-color', VueColorConfig);
-
-/**
- * Vue color list config tag
- */
-var VueColorListConfig = Vue.extend({
- template:
- '<div class="form-group">' +
- ' <div class="col-sm-6">' +
- ' <input type="checkbox" v-model="enabled" v-if="canDisable" />' +
- ' <label class="control-label">{{title}}</label>' +
- ' </div>' +
- ' <div class="col-sm-6">' +
- ' <color-list :colors.sync="colors" v-show="enabled"></color-list>' +
- ' </div>' +
- '</div>',
-
- props: {
- title: String,
- canDisable: {
- type: Boolean,
- default: false
- },
- colors: {
- twoWay: true
- },
- enabled: {
- twoWay: true,
- default: true
- }
- },
-
- watch: {
- colors: {
- handler: function (newVal) {
- this.$emit('update:colors', newVal)
- },
- deep: true
- },
- enabled: function (newVal) {
- this.$emit('update:enabled', newVal)
- }
- }
-});
-Vue.component('config-color-list', VueColorListConfig);
diff --git a/app/scripts/main.js b/app/scripts/main.js
deleted file mode 100644
index ae480f4..0000000
--- a/app/scripts/main.js
+++ /dev/null
@@ -1,831 +0,0 @@
-(function() {
-
-var VERSION = 1; // needs to upgrade when vm.theme changes
-
-var PRE_DEFINED_THEMES = [{
- name: 'vintage',
- background: '#fef8ef',
- theme: [
- '#d87c7c', '#919e8b', '#d7ab82', '#6e7074', '#61a0a8',
- '#efa18d', '#787464', '#cc7e63', '#724e58', '#4b565b'
- ]
-}, {
- name: 'dark',
- background: '#333',
- theme: [
- '#dd6b66', '#759aa0', '#e69d87', '#8dc1a9', '#ea7e53',
- '#eedd78', '#73a373', '#73b9bc', '#7289ab', '#91ca8c',
- '#f49f42'
- ]
-}, {
- name: 'westeros',
- background: 'transparent',
- theme: [
- '#516b91', '#59c4e6', '#edafda', '#93b7e3', '#a5e7f0',
- '#cbb0e3'
- ]
-}, {
- name: 'essos',
- background: 'rgba(242,234,191,0.15)',
- theme: [
- '#893448', '#d95850', '#eb8146', '#ffb248', '#f2d643',
- '#ebdba4'
- ]
-}, {
- name: 'wonderland',
- background: 'transparent',
- theme: [
- '#4ea397', '#22c3aa', '#7bd9a5', '#d0648a', '#f58db2',
- '#f2b3c9'
- ]
-}, {
- name: 'walden',
- background: 'rgba(252,252,252,0)',
- theme: [
- '#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad',
- '#96dee8'
- ]
-}, {
- name: 'chalk',
- background: '#293441',
- theme: [
- '#fc97af', '#87f7cf', '#f7f494', '#72ccff', '#f7c5a0',
- '#d4a4eb', '#d2f5a6', '#76f2f2'
- ]
-}, {
- name: 'infographic',
- background: 'transparent',
- theme: [
- '#C1232B', '#27727B', '#FCCE10', '#E87C25', '#B5C334',
- '#FE8463', '#9BCA63', '#FAD860', '#F3A43B', '#60C0DD',
- '#D7504B', '#C6E579', '#F4E001', '#F0805A', '#26C0C0'
- ]
-}, {
- name: 'macarons',
- background: 'transparent',
- theme: [
- '#2ec7c9', '#b6a2de', '#5ab1ef', '#ffb980', '#d87a80',
- '#8d98b3', '#e5cf0d', '#97b552', '#95706d', '#dc69aa',
- '#07a2a4', '#9a7fd1', '#588dd5', '#f5994e', '#c05050',
- '#59678c', '#c9ab00', '#7eb00a', '#6f5553', '#c14089'
- ]
-}, {
- name: 'roma',
- background: 'transparent',
- theme: [
- '#E01F54', '#001852', '#f5e8c8', '#b8d2c7', '#c6b38e',
- '#a4d8c2', '#f3d999', '#d3758f', '#dcc392', '#2e4783',
- '#82b6e9', '#ff6347', '#a092f1', '#0a915d', '#eaf889',
- '#6699FF', '#ff6666', '#3cb371', '#d5b158', '#38b6b6'
- ]
-}, {
- name: 'shine',
- background: 'transparent',
- theme: [
- '#c12e34', '#e6b600', '#0098d9', '#2b821d', '#005eaa',
- '#339ca8', '#cda819', '#32a487'
- ]
-}, {
- name: 'purple-passion',
- background: 'rgba(91,92,110,1)',
- theme: [
- '#8a7ca8', '#e098c7', '#8fd3e8', '#71669e', '#cc70af',
- '#7cb4cc'
- ]
-}
-// {
-// name: 'halloween',
-// background: 'rgba(51,51,51,1)',
-// theme: [
-// '#ff715e', '#ffaf51', '#ffee51', '#797fba', '#715c87'
-// ]
-// }
-];
-
-var defaultTheme = {
- seriesCnt: 3,
-
- backgroundColor: 'rgba(0, 0, 0, 0)',
- titleColor: '#464646',
- subtitleColor: '#6E7079',
- textColorShow: false,
- textColor: '#333',
- markTextColor: '#eee',
- color: [
- // '#51689b', '#ce5c5c', '#fbc357', '#8fbf8f', '#659d84', '#fb8e6a', '#c77288', '#786090', '#91c4c5', '#6890ba'
- '#5470c6',
- '#91cc75',
- '#fac858',
- '#ee6666',
- '#73c0de',
- '#3ba272',
- '#fc8452',
- '#9a60b4',
- '#ea7ccc'
- ],
- borderColor: '#ccc',
- borderWidth: 0,
- visualMapColor: ['#bf444c', '#d88273', '#f6efa6'],
-
- legendTextColor: '#333',
-
- kColor: '#eb5454',
- kColor0: '#47b262',
- kBorderColor: '#eb5454',
- kBorderColor0: '#47b262',
-
- kBorderWidth: 1,
-
- lineWidth: 2,
- symbolSize: 4,
- symbol: 'emptyCircle',
- symbolBorderWidth: 1,
- lineSmooth: false,
-
- graphLineWidth: 1,
- graphLineColor: '#aaa',
-
- mapLabelColor: '#000',
- mapLabelColorE: 'rgb(100,0,0)',
- mapBorderColor: '#444',
- mapBorderColorE: '#444',
- mapBorderWidth: 0.5,
- mapBorderWidthE: 1,
- mapAreaColor: '#eee',
- mapAreaColorE: 'rgba(255,215,0,0.8)',
-
- axes: (function() {
- var types = ['all', 'category', 'value', 'log', 'time'];
- var names = ['通用', '类目', '数值', '对数', '时间'];
- var axis = [];
- for (var i = 0; i < types.length; ++i) {
- axis.push({
- type: types[i],
- name: names[i] + '坐标轴',
- axisLineShow: types[i] !== 'value' && types[i] !== 'log', // TODO Auto
- axisLineColor: '#6E7079',
- axisTickShow: types[i] !== 'value' && types[i] !== 'log',
- axisTickColor: '#6E7079',
- axisLabelShow: true,
- axisLabelColor: '#6E7079',
- splitLineShow: types[i] !== 'category' && types[i] !== 'time',
- splitLineColor: ['#E0E6F1'],
- splitAreaShow: false,
- splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)']
- });
- }
- return axis;
- })(),
- axisSeperateSetting: true,
- axis: null,
-
- toolboxColor: '#999',
- toolboxEmphasisColor: '#666',
-
- tooltipAxisColor: '#ccc',
- tooltipAxisWidth: 1,
-
- timelineLineColor: '#DAE1F5',
- timelineLineWidth: 2,
- timelineItemColor: '#A4B1D7',
- timelineItemColorE: '#FFF',
- timelineCheckColor: '#316bf3',
- timelineCheckBorderColor: 'fff',
- timelineItemBorderWidth: 1,
- timelineControlColor: '#A4B1D7',
- timelineControlBorderColor: '#A4B1D7',
- timelineControlBorderWidth: 1,
- timelineLabelColor: '#A4B1D7'
-
- // datazoomBackgroundColor: 'rgba(47,69,84,0)',
- // datazoomDataColor: 'rgba(47,69,84,0.3)',
- // datazoomFillColor: 'rgba(135,175,274,0.2)',
- // datazoomHandleColor: '#ACB8D1',
- // datazoomHandleWidth: '100',
- // datazoomLabelColor: '#333'
-};
-defaultTheme.axis = [defaultTheme.axes[0]];
-
-var updateChartsDebounced = _.debounce(updateCharts, 200);
-
-
-
-// load themes
-for (var i = 0; i < PRE_DEFINED_THEMES.length; ++i) {
- loadTheme(i, true);
-}
-
-
-
-var vm = new Vue({
- el: '#content',
-
- data: {
- theme: cloneObject(defaultTheme),
- themeName: 'customized',
- charts: [],
- options: [],
- isPauseChartUpdating: false,
- copyKbd: isMac() ? 'cmd' : 'ctrl',
- downloadable: !isIe() && !isEdge(),
- preDefinedThemes: PRE_DEFINED_THEMES,
- loadedThemes: [],
- chartDisplay: {
- background: '#fff',
- title: '#000'
- }
- },
-
- methods: {
- updateCharts: updateCharts,
-
- updateSymbol: function(symbol) {
- vm.theme.symbol = symbol;
- },
-
- selectPreDefinedTheme: function(id) {
- for (var i = 0; i < vm.loadedThemes.length; ++i) {
- if (vm.loadedThemes[i].id === id) {
- // use cache
- onThemeImported(vm.loadedThemes[i].data);
- return;
- }
- }
- // no cache found
- loadTheme(id, false);
- },
-
- useTheme: function() {
- // _hmt.push(['_trackEvent', 'theme-builder', 'useTheme', vm.themeName]);
- $('#js-code').text(getExportJsFile());
- $('#json-code').text(JSON.stringify(getTheme(true), null, ' '));
- // code highlighting
- hljs.highlightBlock($('#js-code')[0]);
- hljs.highlightBlock($('#json-code')[0]);
- },
-
- downloadThemeJson: function() {
- // _hmt.push(['_trackEvent', 'theme-builder', 'download', 'json']);
- saveJsonFile(getTheme(true), (vm.themeName || 'customized') + '.json');
- },
-
- downloadThemeJs: function() {
- // _hmt.push(['_trackEvent', 'theme-builder', 'download', 'js']);
- saveJsFile(getExportJsFile(), (vm.themeName || 'customized') + '.js');
- },
-
- copyThemeJson: function() {
- copyToClipboard('json');
- },
-
- copyThemeJs: function() {
- copyToClipboard('js');
- },
-
- newTheme: function() {
- this.$set(this, 'theme', cloneObject(defaultTheme));
- this.$set(this, 'themeName', 'customized');
- vm.axisSeperateSettingChanges();
- },
-
- exportJson: function() {
- // delete replicated axis option, which is included in theme.axes
- var theme = cloneObject(vm.theme);
- delete theme.axis;
- saveJsonFile({
- version: VERSION,
- themeName: vm.themeName,
- theme: theme
- }, (vm.themeName || 'customized') + '.project.json');
- },
-
- importJson: function() {
- $('#input-file').trigger('click');
- },
-
- importFileChanged: function(e) {
- if (!e.target.files) {
- // cancelled selecting, do nothing
- return;
- }
- var file = e.target.files[0];
-
- var extension = file.name.slice(file.name.lastIndexOf('.'));
- if (extension !== '.json') {
- alert('非法后缀!请使用本网站导出的 *.json 文件。');
- return;
- }
-
- // read local file
- var reader = new FileReader();
- reader.onload = function() {
- // update theme
- onThemeImported(this.result);
- };
- reader.onerror = function(e) {
- alert('打开文件失败!');
- console.error(e);
- }
- reader.readAsText(file);
-
- $('#input-file').val('');
- },
-
- axisSeperateSettingChanges: function() {
- // change axis settings to display
- if (vm.theme.axisSeperateSetting) {
- vm.theme.axis = vm.theme.axes;
- } else {
- vm.theme.axis = [vm.theme.axes[0]];
- }
- }
- }
-});
-
-vm.$watch('theme', updateChartsDebounced, {
- deep: true
-});
-
-// init axis setting
-vm.axisSeperateSettingChanges();
-
-function onThemeImported(result) {
- try {
- var obj = JSON.parse(result);
-
- if (obj.themeName === undefined && obj.version === undefined) {
- alert('请使用本网站“导出配置”的 JSON 文件,而不是下载的主题文件。');
- return;
- }
-
- // theme name
- vm.$set(vm, 'themeName', obj.themeName || 'customized');
-
- if (obj.version < VERSION) {
- // out-dated, use as much attribute as possible
- var unfound = [];
- var newTheme = obj.theme;
- for (var attr in defaultTheme) {
- if (attr !== 'axis') {
- if (typeof obj.theme[attr] !== 'undefined') {
- newTheme.attr = obj.theme[attr];
- } else {
- // unfound attribute in theme file, use default
- unfound.push(obj.theme.attr);
- }
- }
- }
- if (unfound.length > 0) {
- alert('导入的主题版本较低,有' + unfound.length + '个属性未被设置,现已使用默认值。');
- } else {
- console.warn('导入的主题版本较低,可能有部分属性未生效。');
- }
- }
- vm.$set(vm, 'theme', obj.theme);
-
- // update axis according to if using seperate axes
- vm.axisSeperateSettingChanges();
- } catch(e) {
- alert('非法 JSON 格式!请使用本网站导出的 *.json 文件。');
- console.error(e);
- }
-}
-
-function getTheme(isToExport) {
- var pumpkin = 'path://M237.062,81.761L237.062,81.761c-12.144-14.24-25.701-20.1-40.68-19.072 c-10.843,0.747-20.938,5.154-30.257,13.127c-9.51-5.843-19.8-9.227-30.859-10.366c0.521-3.197,1.46-6.306,2.85-9.363 c3.458-7.038,8.907-12.741,16.331-17.296c-5.609-3.384-11.227-6.799-16.854-10.279c-16.257,8.104-25.06,20.601-26.463,38.417 c-7.599,1.705-14.685,4.486-21.247,8.437c-9.164-7.677-18.996-11.917-29.496-12.632c-14.819-0.998-28.467,4.787-40.938,18.827 C6.445,96.182,0,114.867,0,136.242c-0.007,6 [...]
- var seriesStyle = {
- itemStyle: {
- borderWidth: vm.theme.symbolBorderWidth
- },
- lineStyle: {
- width: vm.theme.lineWidth
- },
- symbolSize: vm.theme.symbolSize,
- symbol: vm.theme.symbol,
- smooth: vm.theme.lineSmooth
- };
- var itemStyle = {
- borderWidth: vm.theme.borderWidth,
- borderColor: vm.theme.borderColor
- };
- var border = {
- itemStyle: itemStyle
- };
- if (vm.themeName === 'halloween') {
- seriesStyle.symbol = pumpkin;
- border.symbol = pumpkin;
- }
-
- var map = {
- itemStyle: {
- areaColor: vm.theme.mapAreaColor,
- borderColor: vm.theme.mapBorderColor,
- borderWidth: vm.theme.mapBorderWidth
- },
- label: {
- color: vm.theme.mapLabelColor
- },
- emphasis: {
- itemStyle: {
- areaColor: vm.theme.mapAreaColorE,
- borderColor: vm.theme.mapBorderColorE,
- borderWidth: vm.theme.mapBorderWidthE
- },
- label: {
- color: vm.theme.mapLabelColorE
- }
- }
- };
-
- return {
- color: vm.theme.color,
- backgroundColor: isToExport ? vm.theme.backgroundColor : 'transparent',
- textStyle: vm.theme.textColorShow ? {
- color: vm.theme.textColor
- } : {},
- title: {
- textStyle: {
- color: vm.theme.titleColor
- },
- subtextStyle: {
- color: vm.theme.subtitleColor
- }
- },
- line: seriesStyle,
- radar: seriesStyle,
- bar: (function() {
- var itemStyle = {
- barBorderWidth: vm.theme.borderWidth,
- barBorderColor: vm.theme.borderColor
- };
- return {
- itemStyle: itemStyle
- };
- })(),
- pie: border,
- scatter: border,
- boxplot: border,
- parallel: border,
- sankey: border,
- funnel: border,
- gauge: border,
- candlestick: (function() {
- var itemStyle = {
- color: vm.theme.kColor,
- color0: vm.theme.kColor0,
- borderColor: vm.theme.kBorderColor,
- borderColor0: vm.theme.kBorderColor0,
- borderWidth: vm.theme.kBorderWidth
- };
- return {
- itemStyle: itemStyle
- };
- })(),
- graph: (function() {
- var style = cloneObject(seriesStyle);
- style.color = vm.theme.color;
- var lineStyle = {
- width: vm.theme.graphLineWidth,
- color: vm.theme.graphLineColor
- };
- var textStyle = {
- color: vm.theme.markTextColor
- };
- style.lineStyle = lineStyle;
- style.label = textStyle;
- var itemStyle = style.itemStyle;
- itemStyle.borderWidth = vm.theme.borderWidth;
- itemStyle.borderColor = vm.theme.borderColor;
- return style;
- })(),
- map: map,
- geo: map,
- categoryAxis: getAxis(1),
- valueAxis: getAxis(2),
- logAxis: getAxis(3),
- timeAxis: getAxis(4),
- toolbox: {
- iconStyle: {
- borderColor: vm.theme.toolboxColor
- },
- emphasis: {
- iconStyle: {
- borderColor: vm.theme.toolboxEmphasisColor
- }
- }
- },
- legend: {
- textStyle: {
- color: vm.theme.legendTextColor
- }
- },
- tooltip: {
- axisPointer: {
- lineStyle: {
- color: vm.theme.tooltipAxisColor,
- width: vm.theme.tooltipAxisWidth
- },
- crossStyle: {
- color: vm.theme.tooltipAxisColor,
- width: vm.theme.tooltipAxisWidth
- }
- }
- },
- timeline: {
- lineStyle: {
- color: vm.theme.timelineLineColor,
- width: vm.theme.timelineLineWidth
- },
- itemStyle: {
- color: vm.theme.timelineItemColor,
- borderWidth: vm.theme.timelineItemBorderWidth
- },
- controlStyle: {
- color: vm.theme.timelineControlColor,
- borderColor: vm.theme.timelineControlBorderColor,
- borderWidth: vm.theme.timelineControlBorderWidth
- },
- checkpointStyle: {
- color: vm.theme.timelineCheckColor,
- borderColor: vm.theme.timelineCheckBorderColor
- },
- label: {
- color: vm.theme.timelineLabelColor
- },
- emphasis: {
- itemStyle: {
- color: vm.theme.timelineItemColorE
- },
- controlStyle: {
- color: vm.theme.timelineControlColor,
- borderColor: vm.theme.timelineControlBorderColor,
- borderWidth: vm.theme.timelineControlBorderWidth
- },
- label: {
- color: vm.theme.timelineLabelColor
- }
- }
- },
- visualMap: {
- color: vm.theme.visualMapColor
- },
- dataZoom: {
- backgroundColor: vm.theme.datazoomBackgroundColor,
- dataBackgroundColor: vm.theme.datazoomDataColor,
- fillerColor: vm.theme.datazoomFillColor,
- handleColor: vm.theme.datazoomHandleColor,
- handleSize: vm.theme.datazoomHandleWidth + '%',
- textStyle: {
- color: vm.theme.datazoomLabelColor
- }
- },
- markPoint: (function() {
- var textStyle = {
- color: vm.theme.markTextColor
- };
- return {
- label: textStyle,
- emphasis: {
- label: textStyle
- }
- };
- })()
- };
-
- function getAxis(id) {
- if (!vm.theme.axisSeperateSetting) {
- id = 0;
- }
- return {
- axisLine: {
- show: vm.theme.axes[id].axisLineShow,
- lineStyle: {
- color: vm.theme.axes[id].axisLineColor
- }
- },
- axisTick: {
- show: vm.theme.axes[id].axisTickShow,
- lineStyle: {
- color: vm.theme.axes[id].axisTickColor
- }
- },
- axisLabel: {
- show: vm.theme.axes[id].axisLabelShow,
- color: vm.theme.axes[id].axisLabelColor
- },
- splitLine: {
- show: vm.theme.axes[id].splitLineShow,
- lineStyle: {
- color: vm.theme.axes[id].splitLineColor
- }
- },
- splitArea: {
- show: vm.theme.axes[id].splitAreaShow,
- areaStyle: {
- color: vm.theme.axes[id].splitAreaColor
- }
- }
- };
- }
-}
-
-var timeout;
-// update a chart with index of idx, options as echarts options,
-// and rootIdx as index of the starting chart
-function updatingStep(idx, options, rootIdx) {
- var $panel = $('.ec-panel').eq(idx);
- if ($panel.length) {
- var chart = echarts.getInstanceByDom($panel[0]);
- if (chart) {
- chart.dispose();
- }
- chart = echarts.init($panel[0], 'customized');
- chart.setOption(options[idx]);
- window.addEventListener('resize', chart.resize);
-
- // next chart is the chart after this one,
- // or from begining
- var next = idx + 1;
- if (next === $('.ec-panel').length) {
- next = 0;
- }
- // loop until the first updated chart
- if (next !== rootIdx) {
- timeout = setTimeout(function () {
- updatingStep(next, options, rootIdx);
- }, 150);
- }
- }
-}
-
-function updateCharts() {
- if (vm.isPauseChartUpdating) {
- // do nothing when paused
- return;
- }
-
- echarts.registerTheme('customized', getTheme(false));
- var options = getOptions(vm);
-
- if (timeout) {
- clearTimeout(timeout);
- }
-
- // update from the first visible chart
- var max = $('.ec-panel').length;
- var hasUpdated = false;
- for (var i = 0; i < max; ++i) {
- var $chart = $('.ec-panel').eq(i);
- if ($chart.offset().top + $chart.height() > 0) {
- // start from here
- updatingStep(i, options, i);
- hasUpdated = true;
- break;
- }
- }
- if (!hasUpdated) {
- // fallback
- // start from 0 if something wrong happened and no one found visible
- updatingStep(0, options);
- }
-
- // update background and title
- vm.chartDisplay.background = vm.theme.backgroundColor;
- vm.chartDisplay.title = vm.theme.titleColor;
-}
-
-function saveJsonFile(json, name) {
- var data = JSON.stringify(json, null, ' ');
- saveFile(data, name, 'json');
-}
-
-function saveJsFile(data, name) {
- saveFile(data, name, 'js');
-}
-
-function saveFile(data, name, type) {
- if (isSafari()) {
- window.open('data:text/plain;charset=utf-8,' + encodeURIComponent(data));
- } else {
- try {
- var file = new Blob([data], {type: type});
- saveAs(file, name);
- } catch(e) {
- console.error(e);
- window.open('data:text/plain;charset=utf-8,' + encodeURIComponent(data));
- }
- }
-}
-
-function isSafari() {
- return navigator.userAgent.indexOf('Safari') > 0 &&
- navigator.userAgent.indexOf('Chrome') < 0;
-}
-
-function isIe() {
- return navigator.userAgent.indexOf('MSIE') > 0;
-}
-
-function isEdge() {
- return navigator.userAgent.indexOf('Trident') > 0;
-}
-
-function isMac() {
- return navigator.userAgent.indexOf('Mac OS X') > 0;
-}
-
-function getExportJsFile() {
- // format theme with 4 spaces
- var theme = JSON.stringify(getTheme(true), null, ' ');
- // indent with 4 spaces
- theme = theme.split('\n').join('\n ');
- return '(function (root, factory) {\n' +
- ' if (typeof define === \'function\' && define.amd) {\n' +
- ' // AMD. Register as an anonymous module.\n' +
- ' define([\'exports\', \'echarts\'], factory);\n' +
- ' } else if (typeof exports === \'object\' && typeof ' +
- 'exports.nodeName !== \'string\') {\n' +
- ' // CommonJS\n' +
- ' factory(exports, require(\'echarts\'));\n' +
- ' } else {\n' +
- ' // Browser globals\n' +
- ' factory({}, root.echarts);\n' +
- ' }\n' +
- '}(this, function (exports, echarts) {\n' +
- ' var log = function (msg) {\n' +
- ' if (typeof console !== \'undefined\') {\n' +
- ' console && console.error && console.error(msg);\n' +
- ' }\n' +
- ' };\n' +
- ' if (!echarts) {\n' +
- ' log(\'ECharts is not Loaded\');\n' +
- ' return;\n' +
- ' }\n' +
- ' echarts.registerTheme(\'' + vm.themeName + '\', ' + theme + ');\n' +
- '}));\n';
-}
-
-function copyToClipboard(jsOrJson) {
- // select code
- // IE has both window.getSelection and document.selection, but works only
- // with the former one
- if (window.getSelection) {
- var range = document.createRange();
- range.selectNode($('#' + jsOrJson + '-code')[0]);
- var select = window.getSelection();
- select.removeAllRanges();
- select.addRange(range);
- } else if (document.selection) {
- var range = document.body.createTextRange();
- range.moveToElementText($('#' + jsOrJson + '-code')[0]);
- range.select();
- }
-
- // hide previous information
- $('.code-btn label').hide();
-
- // copy to clipboard
- // ie and edge neigher can copy
- if (!isIe() && !isEdge() && document.execCommand('copy')) {
- // copy successfully
- showAndHide('copy-' + jsOrJson + '-success');
- // deselect code
- if (window.getSelection) {
- window.getSelection().removeAllRanges();
- } else {
- document.selection.empty();
- }
- } else {
- // fail to copy, tell user to copy using ctrl+s or cmd+s
- showAndHide('copy-' + jsOrJson + '-fail');
- }
-
- function showAndHide(id) {
- $('#' + id).fadeIn();
- setTimeout(function() {
- $('#' + id).fadeOut();
- }, 10000);
- }
-}
-
-function cloneObject(obj) {
- return $.extend(true, {}, obj);
-}
-
-function loadTheme(id, preload) {
- $.ajax({
- url: './theme-builder/themes/' + PRE_DEFINED_THEMES[id].name + '.json',
- dataType: 'text',
- success: function(data) {
- vm.loadedThemes.push({
- id: id,
- data: data
- });
- if (!preload) {
- onThemeImported(data);
- }
- }
- });
-}
-
-})();
diff --git a/app/scripts/main_en.js b/app/scripts/main_en.js
deleted file mode 100644
index f5cc17d..0000000
--- a/app/scripts/main_en.js
+++ /dev/null
@@ -1,829 +0,0 @@
-(function() {
-
-var VERSION = 1; // needs to upgrade when vm.theme changes
-
-var PRE_DEFINED_THEMES = [{
- name: 'vintage',
- background: '#fef8ef',
- theme: [
- '#d87c7c', '#919e8b', '#d7ab82', '#6e7074', '#61a0a8',
- '#efa18d', '#787464', '#cc7e63', '#724e58', '#4b565b'
- ]
-}, {
- name: 'dark',
- background: '#333',
- theme: [
- '#dd6b66', '#759aa0', '#e69d87', '#8dc1a9', '#ea7e53',
- '#eedd78', '#73a373', '#73b9bc', '#7289ab', '#91ca8c',
- '#f49f42'
- ]
-}, {
- name: 'westeros',
- background: 'transparent',
- theme: [
- '#516b91', '#59c4e6', '#edafda', '#93b7e3', '#a5e7f0',
- '#cbb0e3'
- ]
-}, {
- name: 'essos',
- background: 'rgba(242,234,191,0.15)',
- theme: [
- '#893448', '#d95850', '#eb8146', '#ffb248', '#f2d643',
- '#ebdba4'
- ]
-}, {
- name: 'wonderland',
- background: 'transparent',
- theme: [
- '#4ea397', '#22c3aa', '#7bd9a5', '#d0648a', '#f58db2',
- '#f2b3c9'
- ]
-}, {
- name: 'walden',
- background: 'rgba(252,252,252,0)',
- theme: [
- '#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad',
- '#96dee8'
- ]
-}, {
- name: 'chalk',
- background: '#293441',
- theme: [
- '#fc97af', '#87f7cf', '#f7f494', '#72ccff', '#f7c5a0',
- '#d4a4eb', '#d2f5a6', '#76f2f2'
- ]
-}, {
- name: 'infographic',
- background: 'transparent',
- theme: [
- '#C1232B', '#27727B', '#FCCE10', '#E87C25', '#B5C334',
- '#FE8463', '#9BCA63', '#FAD860', '#F3A43B', '#60C0DD',
- '#D7504B', '#C6E579', '#F4E001', '#F0805A', '#26C0C0'
- ]
-}, {
- name: 'macarons',
- background: 'transparent',
- theme: [
- '#2ec7c9', '#b6a2de', '#5ab1ef', '#ffb980', '#d87a80',
- '#8d98b3', '#e5cf0d', '#97b552', '#95706d', '#dc69aa',
- '#07a2a4', '#9a7fd1', '#588dd5', '#f5994e', '#c05050',
- '#59678c', '#c9ab00', '#7eb00a', '#6f5553', '#c14089'
- ]
-}, {
- name: 'roma',
- background: 'transparent',
- theme: [
- '#E01F54', '#001852', '#f5e8c8', '#b8d2c7', '#c6b38e',
- '#a4d8c2', '#f3d999', '#d3758f', '#dcc392', '#2e4783',
- '#82b6e9', '#ff6347', '#a092f1', '#0a915d', '#eaf889',
- '#6699FF', '#ff6666', '#3cb371', '#d5b158', '#38b6b6'
- ]
-}, {
- name: 'shine',
- background: 'transparent',
- theme: [
- '#c12e34', '#e6b600', '#0098d9', '#2b821d', '#005eaa',
- '#339ca8', '#cda819', '#32a487'
- ]
-}, {
- name: 'purple-passion',
- background: 'rgba(91,92,110,1)',
- theme: [
- '#8a7ca8', '#e098c7', '#8fd3e8', '#71669e', '#cc70af',
- '#7cb4cc'
- ]
-}, {
- name: 'halloween',
- background: 'rgba(51,51,51,1)',
- theme: [
- '#ff715e', '#ffaf51', '#ffee51', '#797fba', '#715c87'
- ]
-}];
-
-var defaultTheme = {
- seriesCnt: 3,
-
- backgroundColor: 'rgba(0, 0, 0, 0)',
- titleColor: '#464646',
- subtitleColor: '#6E7079',
- textColorShow: false,
- textColor: '#333',
- markTextColor: '#eee',
- color: [
- // '#51689b', '#ce5c5c', '#fbc357', '#8fbf8f', '#659d84', '#fb8e6a', '#c77288', '#786090', '#91c4c5', '#6890ba'
- '#5470c6',
- '#91cc75',
- '#fac858',
- '#ee6666',
- '#73c0de',
- '#3ba272',
- '#fc8452',
- '#9a60b4',
- '#ea7ccc'
- ],
- borderColor: '#ccc',
- borderWidth: 0,
- visualMapColor: ['#bf444c', '#d88273', '#f6efa6'],
-
- legendTextColor: '#333',
-
- kColor: '#eb5454',
- kColor0: '#47b262',
- kBorderColor: '#eb5454',
- kBorderColor0: '#47b262',
-
- kBorderWidth: 1,
-
- lineWidth: 2,
- symbolSize: 4,
- symbol: 'emptyCircle',
- symbolBorderWidth: 1,
- lineSmooth: false,
-
- graphLineWidth: 1,
- graphLineColor: '#aaa',
-
- mapLabelColor: '#000',
- mapLabelColorE: 'rgb(100,0,0)',
- mapBorderColor: '#444',
- mapBorderColorE: '#444',
- mapBorderWidth: 0.5,
- mapBorderWidthE: 1,
- mapAreaColor: '#eee',
- mapAreaColorE: 'rgba(255,215,0,0.8)',
-
- axes: (function() {
- var types = ['all', 'category', 'value', 'log', 'time'];
- var names = ['通用', '类目', '数值', '对数', '时间'];
- var axis = [];
- for (var i = 0; i < types.length; ++i) {
- axis.push({
- type: types[i],
- name: names[i] + '坐标轴',
- axisLineShow: types[i] !== 'value' && types[i] !== 'log', // TODO Auto
- axisLineColor: '#6E7079',
- axisTickShow: types[i] !== 'value' && types[i] !== 'log',
- axisTickColor: '#6E7079',
- axisLabelShow: true,
- axisLabelColor: '#6E7079',
- splitLineShow: types[i] !== 'category' && types[i] !== 'time',
- splitLineColor: ['#E0E6F1'],
- splitAreaShow: false,
- splitAreaColor: ['rgba(250,250,250,0.2)', 'rgba(210,219,238,0.2)']
- });
- }
- return axis;
- })(),
- axisSeperateSetting: true,
- axis: null,
-
- toolboxColor: '#999',
- toolboxEmphasisColor: '#666',
-
- tooltipAxisColor: '#ccc',
- tooltipAxisWidth: 1,
-
- timelineLineColor: '#DAE1F5',
- timelineLineWidth: 2,
- timelineItemColor: '#A4B1D7',
- timelineItemColorE: '#FFF',
- timelineCheckColor: '#316bf3',
- timelineCheckBorderColor: 'fff',
- timelineItemBorderWidth: 1,
- timelineControlColor: '#A4B1D7',
- timelineControlBorderColor: '#A4B1D7',
- timelineControlBorderWidth: 1,
- timelineLabelColor: '#A4B1D7'
-
- // datazoomBackgroundColor: 'rgba(47,69,84,0)',
- // datazoomDataColor: 'rgba(47,69,84,0.3)',
- // datazoomFillColor: 'rgba(135,175,274,0.2)',
- // datazoomHandleColor: '#ACB8D1',
- // datazoomHandleWidth: '100',
- // datazoomLabelColor: '#333'
-};
-defaultTheme.axis = [defaultTheme.axes[0]];
-
-var updateChartsDebounced = _.debounce(updateCharts, 200);
-
-
-
-// load themes
-for (var i = 0; i < PRE_DEFINED_THEMES.length; ++i) {
- loadTheme(i, true);
-}
-
-
-
-var vm = new Vue({
- el: '#content',
-
- data: {
- theme: cloneObject(defaultTheme),
- themeName: 'customized',
- charts: [],
- options: [],
- isPauseChartUpdating: false,
- copyKbd: isMac() ? 'cmd' : 'ctrl',
- downloadable: !isIe() && !isEdge(),
- preDefinedThemes: PRE_DEFINED_THEMES,
- loadedThemes: [],
- chartDisplay: {
- background: '#fff',
- title: '#000'
- }
- },
-
- methods: {
- updateCharts: updateCharts,
-
- updateSymbol: function(symbol) {
- vm.theme.symbol = symbol;
- },
-
- selectPreDefinedTheme: function(id) {
- for (var i = 0; i < vm.loadedThemes.length; ++i) {
- if (vm.loadedThemes[i].id === id) {
- // use cache
- onThemeImported(vm.loadedThemes[i].data);
- return;
- }
- }
- // no cache found
- loadTheme(id, false);
- },
-
- useTheme: function() {
- // _hmt.push(['_trackEvent', 'theme-builder', 'useTheme', vm.themeName]);
- $('#js-code').text(getExportJsFile());
- $('#json-code').text(JSON.stringify(getTheme(true), null, ' '));
- // code highlighting
- hljs.highlightBlock($('#js-code')[0]);
- hljs.highlightBlock($('#json-code')[0]);
- },
-
- downloadThemeJson: function() {
- // _hmt.push(['_trackEvent', 'theme-builder', 'download', 'json']);
- saveJsonFile(getTheme(true), (vm.themeName || 'customized') + '.json');
- },
-
- downloadThemeJs: function() {
- // _hmt.push(['_trackEvent', 'theme-builder', 'download', 'js']);
- saveJsFile(getExportJsFile(), (vm.themeName || 'customized') + '.js');
- },
-
- copyThemeJson: function() {
- copyToClipboard('json');
- },
-
- copyThemeJs: function() {
- copyToClipboard('js');
- },
-
- newTheme: function() {
- this.$set(this, 'theme', cloneObject(defaultTheme));
- this.$set(this, 'themeName', 'customized');
- vm.axisSeperateSettingChanges();
- },
-
- exportJson: function() {
- // delete replicated axis option, which is included in theme.axes
- var theme = cloneObject(vm.theme);
- delete theme.axis;
- saveJsonFile({
- version: VERSION,
- themeName: vm.themeName,
- theme: theme
- }, (vm.themeName || 'customized') + '.project.json');
- },
-
- importJson: function() {
- $('#input-file').trigger('click');
- },
-
- importFileChanged: function(e) {
- if (!e.target.files) {
- // cancelled selecting, do nothing
- return;
- }
- var file = e.target.files[0];
-
- var extension = file.name.slice(file.name.lastIndexOf('.'));
- if (extension !== '.json') {
- alert('Illegal extension! Please use *.json files from our website! ');
- return;
- }
-
- // read local file
- var reader = new FileReader();
- reader.onload = function() {
- // update theme
- onThemeImported(this.result);
- };
- reader.onerror = function(e) {
- alert('Failed to open the file.');
- console.error(e);
- }
- reader.readAsText(file);
-
- $('#input-file').val('');
- },
-
- axisSeperateSettingChanges: function() {
- // change axis settings to display
- if (vm.theme.axisSeperateSetting) {
- vm.theme.axis = vm.theme.axes;
- } else {
- vm.theme.axis = [vm.theme.axes[0]];
- }
- }
- }
-});
-
-vm.$watch('theme', updateChartsDebounced, {
- deep: true
-});
-
-// init axis setting
-vm.axisSeperateSettingChanges();
-
-function onThemeImported(result) {
- try {
- var obj = JSON.parse(result);
-
- if (obj.themeName === undefined && obj.version === undefined) {
- alert('Please use the exported JSON configuration files from our site instead of downloaded theme file. ');
- return;
- }
-
- // theme name
- vm.$set(vm, 'themeName', obj.themeName || 'customized');
-
- if (obj.version < VERSION) {
- // out-dated, use as much attribute as possible
- var unfound = [];
- var newTheme = obj.theme;
- for (var attr in defaultTheme) {
- if (attr !== 'axis') {
- if (typeof obj.theme[attr] !== 'undefined') {
- newTheme.attr = obj.theme[attr];
- } else {
- // unfound attribute in theme file, use default
- unfound.push(obj.theme.attr);
- }
- }
- }
- if (unfound.length > 0) {
- alert('The imported theme have lower version, ' + unfound.length + ' attributes have not been set. The default values are now used. ');
- } else {
- console.warn('The imported theme have lower version, some attributes have not been set.');
- }
- }
- vm.$set(vm, 'theme', obj.theme);
-
- // update axis according to if using seperate axes
- vm.axisSeperateSettingChanges();
- } catch(e) {
- alert('Illegal JSON format! Please use the exported JSON configuration files from our site. ');
- console.error(e);
- }
-}
-
-function getTheme(isToExport) {
- var pumpkin = 'path://M237.062,81.761L237.062,81.761c-12.144-14.24-25.701-20.1-40.68-19.072 c-10.843,0.747-20.938,5.154-30.257,13.127c-9.51-5.843-19.8-9.227-30.859-10.366c0.521-3.197,1.46-6.306,2.85-9.363 c3.458-7.038,8.907-12.741,16.331-17.296c-5.609-3.384-11.227-6.799-16.854-10.279c-16.257,8.104-25.06,20.601-26.463,38.417 c-7.599,1.705-14.685,4.486-21.247,8.437c-9.164-7.677-18.996-11.917-29.496-12.632c-14.819-0.998-28.467,4.787-40.938,18.827 C6.445,96.182,0,114.867,0,136.242c-0.007,6 [...]
- var seriesStyle = {
- itemStyle: {
- borderWidth: vm.theme.symbolBorderWidth
- },
- lineStyle: {
- width: vm.theme.lineWidth
- },
- symbolSize: vm.theme.symbolSize,
- symbol: vm.theme.symbol,
- smooth: vm.theme.lineSmooth
- };
- var itemStyle = {
- borderWidth: vm.theme.borderWidth,
- borderColor: vm.theme.borderColor
- };
- var border = {
- itemStyle: itemStyle
- };
- if (vm.themeName === 'halloween') {
- seriesStyle.symbol = pumpkin;
- border.symbol = pumpkin;
- }
-
- var map = {
- itemStyle: {
- areaColor: vm.theme.mapAreaColor,
- borderColor: vm.theme.mapBorderColor,
- borderWidth: vm.theme.mapBorderWidth
- },
- label: {
- color: vm.theme.mapLabelColor
- },
- emphasis: {
- itemStyle: {
- areaColor: vm.theme.mapAreaColorE,
- borderColor: vm.theme.mapBorderColorE,
- borderWidth: vm.theme.mapBorderWidthE
- },
- label: {
- color: vm.theme.mapLabelColorE
- }
- }
- };
-
- return {
- color: vm.theme.color,
- backgroundColor: isToExport ? vm.theme.backgroundColor : 'transparent',
- textStyle: vm.theme.textColorShow ? {
- color: vm.theme.textColor
- } : {},
- title: {
- textStyle: {
- color: vm.theme.titleColor
- },
- subtextStyle: {
- color: vm.theme.subtitleColor
- }
- },
- line: seriesStyle,
- radar: seriesStyle,
- bar: (function() {
- var itemStyle = {
- barBorderWidth: vm.theme.borderWidth,
- barBorderColor: vm.theme.borderColor
- };
- return {
- itemStyle: itemStyle
- };
- })(),
- pie: border,
- scatter: border,
- boxplot: border,
- parallel: border,
- sankey: border,
- funnel: border,
- gauge: border,
- candlestick: (function() {
- var itemStyle = {
- color: vm.theme.kColor,
- color0: vm.theme.kColor0,
- borderColor: vm.theme.kBorderColor,
- borderColor0: vm.theme.kBorderColor0,
- borderWidth: vm.theme.kBorderWidth
- };
- return {
- itemStyle: itemStyle
- };
- })(),
- graph: (function() {
- var style = cloneObject(seriesStyle);
- style.color = vm.theme.color;
- var lineStyle = {
- width: vm.theme.graphLineWidth,
- color: vm.theme.graphLineColor
- };
- var textStyle = {
- color: vm.theme.markTextColor
- };
- style.lineStyle = lineStyle;
- style.label = textStyle;
- var itemStyle = style.itemStyle;
- itemStyle.borderWidth = vm.theme.borderWidth;
- itemStyle.borderColor = vm.theme.borderColor;
- return style;
- })(),
- map: map,
- geo: map,
- categoryAxis: getAxis(1),
- valueAxis: getAxis(2),
- logAxis: getAxis(3),
- timeAxis: getAxis(4),
- toolbox: {
- iconStyle: {
- borderColor: vm.theme.toolboxColor
- },
- emphasis: {
- iconStyle: {
- borderColor: vm.theme.toolboxEmphasisColor
- }
- }
- },
- legend: {
- textStyle: {
- color: vm.theme.legendTextColor
- }
- },
- tooltip: {
- axisPointer: {
- lineStyle: {
- color: vm.theme.tooltipAxisColor,
- width: vm.theme.tooltipAxisWidth
- },
- crossStyle: {
- color: vm.theme.tooltipAxisColor,
- width: vm.theme.tooltipAxisWidth
- }
- }
- },
- timeline: {
- lineStyle: {
- color: vm.theme.timelineLineColor,
- width: vm.theme.timelineLineWidth
- },
- itemStyle: {
- color: vm.theme.timelineItemColor,
- borderWidth: vm.theme.timelineItemBorderWidth
- },
- controlStyle: {
- color: vm.theme.timelineControlColor,
- borderColor: vm.theme.timelineControlBorderColor,
- borderWidth: vm.theme.timelineControlBorderWidth
- },
- checkpointStyle: {
- color: vm.theme.timelineCheckColor,
- borderColor: vm.theme.timelineCheckBorderColor
- },
- label: {
- color: vm.theme.timelineLabelColor
- },
- emphasis: {
- itemStyle: {
- color: vm.theme.timelineItemColorE
- },
- controlStyle: {
- color: vm.theme.timelineControlColor,
- borderColor: vm.theme.timelineControlBorderColor,
- borderWidth: vm.theme.timelineControlBorderWidth
- },
- label: {
- color: vm.theme.timelineLabelColor
- }
- }
- },
- visualMap: {
- color: vm.theme.visualMapColor
- },
- dataZoom: {
- backgroundColor: vm.theme.datazoomBackgroundColor,
- dataBackgroundColor: vm.theme.datazoomDataColor,
- fillerColor: vm.theme.datazoomFillColor,
- handleColor: vm.theme.datazoomHandleColor,
- handleSize: vm.theme.datazoomHandleWidth + '%',
- textStyle: {
- color: vm.theme.datazoomLabelColor
- }
- },
- markPoint: (function() {
- var textStyle = {
- color: vm.theme.markTextColor
- };
- return {
- label: textStyle,
- emphasis: {
- label: textStyle
- }
- };
- })()
- };
-
- function getAxis(id) {
- if (!vm.theme.axisSeperateSetting) {
- id = 0;
- }
- return {
- axisLine: {
- show: vm.theme.axes[id].axisLineShow,
- lineStyle: {
- color: vm.theme.axes[id].axisLineColor
- }
- },
- axisTick: {
- show: vm.theme.axes[id].axisTickShow,
- lineStyle: {
- color: vm.theme.axes[id].axisTickColor
- }
- },
- axisLabel: {
- show: vm.theme.axes[id].axisLabelShow,
- color: vm.theme.axes[id].axisLabelColor
- },
- splitLine: {
- show: vm.theme.axes[id].splitLineShow,
- lineStyle: {
- color: vm.theme.axes[id].splitLineColor
- }
- },
- splitArea: {
- show: vm.theme.axes[id].splitAreaShow,
- areaStyle: {
- color: vm.theme.axes[id].splitAreaColor
- }
- }
- };
- }
-}
-
-var timeout;
-// update a chart with index of idx, options as echarts options,
-// and rootIdx as index of the starting chart
-function updatingStep(idx, options, rootIdx) {
- var $panel = $('.ec-panel').eq(idx);
- if ($panel.length) {
- var chart = echarts.getInstanceByDom($panel[0]);
- if (chart) {
- chart.dispose();
- }
- chart = echarts.init($panel[0], 'customized');
- chart.setOption(options[idx]);
- window.addEventListener('resize', chart.resize);
-
- // next chart is the chart after this one,
- // or from begining
- var next = idx + 1;
- if (next === $('.ec-panel').length) {
- next = 0;
- }
- // loop until the first updated chart
- if (next !== rootIdx) {
- timeout = setTimeout(function () {
- updatingStep(next, options, rootIdx);
- }, 150);
- }
- }
-}
-
-function updateCharts() {
- if (vm.isPauseChartUpdating) {
- // do nothing when paused
- return;
- }
-
- echarts.registerTheme('customized', getTheme(false));
- var options = getOptions(vm);
-
- if (timeout) {
- clearTimeout(timeout);
- }
-
- // update from the first visible chart
- var max = $('.ec-panel').length;
- var hasUpdated = false;
- for (var i = 0; i < max; ++i) {
- var $chart = $('.ec-panel').eq(i);
- if ($chart.offset().top + $chart.height() > 0) {
- // start from here
- updatingStep(i, options, i);
- hasUpdated = true;
- break;
- }
- }
- if (!hasUpdated) {
- // fallback
- // start from 0 if something wrong happened and no one found visible
- updatingStep(0, options);
- }
-
- // update background and title
- vm.chartDisplay.background = vm.theme.backgroundColor;
- vm.chartDisplay.title = vm.theme.titleColor;
-}
-
-function saveJsonFile(json, name) {
- var data = JSON.stringify(json, null, ' ');
- saveFile(data, name, 'json');
-}
-
-function saveJsFile(data, name) {
- saveFile(data, name, 'js');
-}
-
-function saveFile(data, name, type) {
- if (isSafari()) {
- window.open('data:text/plain;charset=utf-8,' + encodeURIComponent(data));
- } else {
- try {
- var file = new Blob([data], {type: type});
- saveAs(file, name);
- } catch(e) {
- console.error(e);
- window.open('data:text/plain;charset=utf-8,' + encodeURIComponent(data));
- }
- }
-}
-
-function isSafari() {
- return navigator.userAgent.indexOf('Safari') > 0 &&
- navigator.userAgent.indexOf('Chrome') < 0;
-}
-
-function isIe() {
- return navigator.userAgent.indexOf('MSIE') > 0;
-}
-
-function isEdge() {
- return navigator.userAgent.indexOf('Trident') > 0;
-}
-
-function isMac() {
- return navigator.userAgent.indexOf('Mac OS X') > 0;
-}
-
-function getExportJsFile() {
- // format theme with 4 spaces
- var theme = JSON.stringify(getTheme(true), null, ' ');
- // indent with 4 spaces
- theme = theme.split('\n').join('\n ');
- return '(function (root, factory) {\n' +
- ' if (typeof define === \'function\' && define.amd) {\n' +
- ' // AMD. Register as an anonymous module.\n' +
- ' define([\'exports\', \'echarts\'], factory);\n' +
- ' } else if (typeof exports === \'object\' && typeof ' +
- 'exports.nodeName !== \'string\') {\n' +
- ' // CommonJS\n' +
- ' factory(exports, require(\'echarts\'));\n' +
- ' } else {\n' +
- ' // Browser globals\n' +
- ' factory({}, root.echarts);\n' +
- ' }\n' +
- '}(this, function (exports, echarts) {\n' +
- ' var log = function (msg) {\n' +
- ' if (typeof console !== \'undefined\') {\n' +
- ' console && console.error && console.error(msg);\n' +
- ' }\n' +
- ' };\n' +
- ' if (!echarts) {\n' +
- ' log(\'ECharts is not Loaded\');\n' +
- ' return;\n' +
- ' }\n' +
- ' echarts.registerTheme(\'' + vm.themeName + '\', ' + theme + ');\n' +
- '}));\n';
-}
-
-function copyToClipboard(jsOrJson) {
- // select code
- // IE has both window.getSelection and document.selection, but works only
- // with the former one
- if (window.getSelection) {
- var range = document.createRange();
- range.selectNode($('#' + jsOrJson + '-code')[0]);
- var select = window.getSelection();
- select.removeAllRanges();
- select.addRange(range);
- } else if (document.selection) {
- var range = document.body.createTextRange();
- range.moveToElementText($('#' + jsOrJson + '-code')[0]);
- range.select();
- }
-
- // hide previous information
- $('.code-btn label').hide();
-
- // copy to clipboard
- // ie and edge neigher can copy
- if (!isIe() && !isEdge() && document.execCommand('copy')) {
- // copy successfully
- showAndHide('copy-' + jsOrJson + '-success');
- // deselect code
- if (window.getSelection) {
- window.getSelection().removeAllRanges();
- } else {
- document.selection.empty();
- }
- } else {
- // fail to copy, tell user to copy using ctrl+s or cmd+s
- showAndHide('copy-' + jsOrJson + '-fail');
- }
-
- function showAndHide(id) {
- $('#' + id).fadeIn();
- setTimeout(function() {
- $('#' + id).fadeOut();
- }, 10000);
- }
-}
-
-function cloneObject(obj) {
- return $.extend(true, {}, obj);
-}
-
-function loadTheme(id, preload) {
- $.ajax({
- url: './theme-builder/themes/' + PRE_DEFINED_THEMES[id].name + '.json',
- dataType: 'text',
- success: function(data) {
- vm.loadedThemes.push({
- id: id,
- data: data
- });
- if (!preload) {
- onThemeImported(data);
- }
- }
- });
-}
-
-})();
diff --git a/app/scripts/options.js b/app/scripts/options.js
deleted file mode 100644
index 297c7e3..0000000
--- a/app/scripts/options.js
+++ /dev/null
@@ -1,3650 +0,0 @@
-function getOptions(vm) {
- var groupCnt = vm ? vm.theme.seriesCnt : 4;
- var axisCat = ['周一', '周二', '周三', '周四', '周五', '周六', '周日'];
- var dataLength = axisCat.length;
- var getLegend = function() {
- var data = [];
- for (var i = 0; i < groupCnt; ++i) {
- data.push('第' + (i + 1) + '组');
- }
- return data;
- };
- var getLegendWithName = function() {
- var data = [];
- for (var i = 0; i < groupCnt; ++i) {
- data.push({
- name: '第' + (i + 1) + '组'
- });
- }
- return data;
- };
- var legend = {
- data: getLegend(),
- right: 0
- };
- var getSeriesRandomValue = function(typeName) {
- var data = [];
- if (typeName === 'scatter') {
- var dlen = 32;
- } else {
- var dlen = dataLength;
- }
- for (var i = 0; i < groupCnt; ++i) {
- var group = [];
- for (var j = 0; j < dlen; ++j) {
- if (typeName === 'scatter') {
- var v = [Math.floor((Math.random() * 600 + 400) * (groupCnt - i) /
- groupCnt),
- Math.floor((Math.random() * 600 + 400) * (groupCnt - i) /
- groupCnt)];
- } else {
- var v = Math.floor((Math.random() * 600 + 400) * (groupCnt - i) /
- groupCnt);
- }
- group.push(v);
- }
- if (typeName === 'radar') {
- group = [group];
- }
- data.push({
- type: typeName,
- data: group,
- name: '第' + (i + 1) + '组',
- markPoint: typeName === 'line' || typeName === 'bar' ||
- typeName === 'scatter' ? {
- data: [{
- name: '最高',
- type: 'max'
- }]
- } : {}
- });
- }
- return data;
- };
- var getSeriesRandomStack = function(typeName) {
- var data = getSeriesRandomValue(typeName);
- for (var i = 0; i < data.length; ++i) {
- data[i].areaStyle = {normal: {}};
- data[i].stack = 'total';
- }
- return data;
- };
- var getSeriesRandomGroup = function(typeName) {
- var data = [];
- for (var i = 0; i < groupCnt; ++i) {
- data.push({
- name: legend.data[i],
- value: Math.floor((Math.random() * 800 + 200) * (groupCnt - i) /
- groupCnt)
- });
- }
- return {
- type: typeName,
- data: data
- };
- };
- var getIndicator = function() {
- var res = [];
- for (var i = 0; i < axisCat.length; ++i) {
- res.push({
- name: axisCat[i],
- max: 1000
- });
- }
- return res;
- }
-
- var toolbox = {
- feature: {
- restore: {
- show: true
- },
- saveAsImage: {
- show: true
- },
- dataView: {
- show: true
- },
- dataZoom: {
- show: true
- }
- }
- };
-
- var tooltip = {
- trigger: 'axis'
- };
-
- var grid = {
- left: 60,
- right: 20,
- top: 40,
- bottom: 50
- };
-
- var dataMap = {};
- function dataFormatter(obj) {
- var pList = ['北京','天津','河北','山西','内蒙古','辽宁','吉林','黑龙江','上海','江苏'];
- var temp;
- for (var year = 2002; year <= 2007; year++) {
- var max = 0;
- var sum = 0;
- temp = obj[year];
- for (var i = 0, l = temp.length; i < l; i++) {
- max = Math.max(max, temp[i]);
- sum += temp[i];
- obj[year][i] = {
- name: pList[i],
- value: temp[i]
- }
- }
- obj[year + 'max'] = Math.floor(max / 100) * 100;
- obj[year + 'sum'] = sum;
- }
- return obj;
- }
-
- dataMap.dataPI = dataFormatter({
- //max : 4000,
- 2007:[101.26,110.19,1804.72,311.97,762.1,1133.42,783.8,915.38,101.84,1816.31],
- 2006:[88.8,103.35,1461.81,276.77,634.94,939.43,672.76,750.14,93.81,1545.05,925.1],
- 2005:[88.68,112.38,1400,262.42,589.56,882.41,625.61,684.6,90.26,1461.51,892.83],
- 2004:[87.36,105.28,1370.43,276.3,522.8,798.43,568.69,605.79,83.45,1367.58,814.1],
- 2003:[84.11,89.91,1064.05,215.19,420.1,615.8,488.23,504.8,81.02,1162.45,717.85],
- 2002:[82.44,84.21,956.84,197.8,374.69,590.2,446.17,474.2,79.68,1110.44]
- });
-
- dataMap.dataSI = dataFormatter({
- //max : 26600,
- 2007:[2509.4,2892.53,7201.88,3454.49,3193.67,5544.14,2475.45,3695.58,5571.06,14471.26],
- 2006:[2191.43,2457.08,6110.43,2755.66,2374.96,4566.83,1915.29,3365.31,4969.95,12282.89],
- 2005:[2026.51,2135.07,5271.57,2357.04,1773.21,3869.4,1580.83,2971.68,4381.2,10524.96],
- 2004:[1853.58,1685.93,4301.73,1919.4,1248.27,3061.62,1329.68,2487.04,3892.12,8437.99],
- 2003:[1487.15,1337.31,3417.56,1463.38,967.49,2898.89,1098.37,2084.7,3209.02,6787.11],
- 2002:[1249.99,1069.08,2911.69,1134.31,754.78,2609.85,943.49,1843.6,2622.45,5604.49]
- });
-
- dataMap.dataTI = dataFormatter({
- //max : 25000,
- 2007:[7236.15,2250.04,4600.72,2257.99,2467.41,4486.74,2025.44,2493.04,6821.11,9730.91],
- 2006:[5837.55,1902.31,3895.36,1846.18,1934.35,3798.26,1687.07,2096.35,5508.48,7914.11],
- 2005:[4854.33,1658.19,3340.54,1611.07,1542.26,3295.45,1413.83,1857.42,4776.2,6612.22],
- 2004:[4092.27,1319.76,2805.47,1375.67,1270,2811.95,1223.64,1657.77,4097.26,5198.03],
- 2003:[3435.95,1150.81,2439.68,1176.65,1000.79,2487.85,1075.48,1467.9,3404.19,4493.31],
- 2002:[2982.57,997.47,2149.75,992.69,811.47,2258.17,958.88,1319.4,3038.9,3891.92]
- });
-
- var options = [{
- title: {
- text: '折线图',
- subtext: '副标题样式'
- },
- series: getSeriesRandomValue('line'),
- xAxis: {
- type: 'category',
- data: axisCat
- },
- yAxis: {
- type: 'value'
- },
- grid: {
- left: 60,
- right: 20,
- top: 60,
- bottom: 50
- }
- }, {
- title: {
- text: '折线堆积面积图',
- subtext: '副标题样式'
- },
- series: getSeriesRandomStack('line'),
- xAxis: {
- type: 'category',
- data: axisCat,
- boundaryGap: false
- },
- yAxis: {
- type: 'value'
- },
- grid: {
- left: 60,
- right: 20,
- top: 60,
- bottom: 50
- }
- }, {
- title: {
- text: '柱状图'
- },
- series: getSeriesRandomValue('bar'),
- xAxis: {
- type: 'category',
- data: axisCat
- },
- yAxis: {
- type: 'value'
- }
- }, {
- title: {
- text: '柱状堆积图'
- },
- series: getSeriesRandomStack('bar'),
- xAxis: {
- type: 'category',
- data: axisCat
- },
- yAxis: {
- type: 'value'
- }
- }, {
- title: {
- text: '散点图'
- },
- series: getSeriesRandomValue('scatter'),
- toolbox: (function() {
- var t = toolbox;
- t.left = 65;
- return t;
- })(),
- tooltip: {
- trigger: 'item'
- },
- xAxis: {
- type: 'value'
- },
- yAxis: {
- type: 'value'
- }
- }, {
- title: {
- text: '饼图'
- },
- series: getSeriesRandomGroup('pie'),
- tooltip: {
- trigger: 'item'
- }
- }, {
- title: {
- text: '雷达图'
- },
- series: getSeriesRandomValue('radar'),
- radar: {
- indicator: getIndicator(),
- center: ['50%', '60%']
- }
- }, {
- baseOption: {
- timeline: {
- axisType: 'category',
- autoPlay: false,
- data: [
- '2002-01-01','2003-01-01','2004-01-01',
- {
- value: '2005-01-01',
- tooltip: {
- formatter: '{b} GDP达到一个高度'
- }
- },
- '2006-01-01', '2007-01-01','2008-01-01','2009-01-01','2010-01-01',
- {
- value: '2011-01-01',
- tooltip: {
- formatter: function (params) {
- return params.name + 'GDP达到又一个高度';
- }
- }
- },
- ],
- label: {
- formatter : function(s) {
- return (new Date(s)).getFullYear();
- }
- }
- },
- tooltip: {},
- legend: {
- x: 'right',
- data: ['第一产业', '第二产业', '第三产业']
- },
- calculable : true,
- grid: {
- top: 60,
- bottom: 75
- },
- xAxis: [
- {
- 'type':'category',
- 'axisLabel':{'interval':0},
- 'data':[
- '北京','天津','河北','山西','内蒙古','辽宁','吉林','黑龙江','上海','江苏'
- ],
- splitLine: {show: false}
- }
- ],
- yAxis: [
- {
- type: 'value',
- name: 'GDP(亿元)'
- }
- ],
- series: [
- {name: '第一产业', type: 'bar'},
- {name: '第二产业', type: 'bar'},
- {name: '第三产业', type: 'bar'},
- {
- name: 'GDP占比',
- type: 'pie',
- center: ['30%', '35%'],
- radius: '28%'
- }
- ]
- },
- options: [
- {
- title: {text: '时间轴'},
- series: [
- {data: dataMap.dataPI['2002']},
- {data: dataMap.dataSI['2002']},
- {data: dataMap.dataTI['2002']},
- {data: [
- {name: '第一产业', value: dataMap.dataPI['2002sum']},
- {name: '第二产业', value: dataMap.dataSI['2002sum']},
- {name: '第三产业', value: dataMap.dataTI['2002sum']}
- ]}
- ]
- },
- {
- title : {text: '时间轴'},
- series : [
- {data: dataMap.dataPI['2003']},
- {data: dataMap.dataSI['2003']},
- {data: dataMap.dataTI['2003']},
- {data: [
- {name: '第一产业', value: dataMap.dataPI['2003sum']},
- {name: '第二产业', value: dataMap.dataSI['2003sum']},
- {name: '第三产业', value: dataMap.dataTI['2003sum']}
- ]}
- ]
- },
- {
- title : {text: '时间轴'},
- series : [
- {data: dataMap.dataPI['2004']},
- {data: dataMap.dataSI['2004']},
- {data: dataMap.dataTI['2004']},
- {data: [
- {name: '第一产业', value: dataMap.dataPI['2004sum']},
- {name: '第二产业', value: dataMap.dataSI['2004sum']},
- {name: '第三产业', value: dataMap.dataTI['2004sum']}
- ]}
- ]
- },
- {
- title : {text: '时间轴'},
- series : [
- {data: dataMap.dataPI['2005']},
- {data: dataMap.dataSI['2005']},
- {data: dataMap.dataTI['2005']},
- {data: [
- {name: '第一产业', value: dataMap.dataPI['2005sum']},
- {name: '第二产业', value: dataMap.dataSI['2005sum']},
- {name: '第三产业', value: dataMap.dataTI['2005sum']}
- ]}
- ]
- },
- {
- title : {text: '时间轴'},
- series : [
- {data: dataMap.dataPI['2006']},
- {data: dataMap.dataSI['2006']},
- {data: dataMap.dataTI['2006']},
- {data: [
- {name: '第一产业', value: dataMap.dataPI['2006sum']},
- {name: '第二产业', value: dataMap.dataSI['2006sum']},
- {name: '第三产业', value: dataMap.dataTI['2006sum']}
- ]}
- ]
- },
- {
- title : {text: '时间轴'},
- series : [
- {data: dataMap.dataPI['2007']},
- {data: dataMap.dataSI['2007']},
- {data: dataMap.dataTI['2007']},
- {data: [
- {name: '第一产业', value: dataMap.dataPI['2007sum']},
- {name: '第二产业', value: dataMap.dataSI['2007sum']},
- {name: '第三产业', value: dataMap.dataTI['2007sum']}
- ]}
- ]
- }
- ]
- }, {
- title: {
- text: 'K 线图与数据缩放'
- },
- grid: {
- left: 60,
- right: 20,
- top: 40,
- bottom: 70
- },
- toolbox: {
- show: true,
- feature: {
- mark: {show: true},
- dataZoom: {show: true},
- magicType: {show: true, type: ['line', 'bar']},
- dataView: {show: true, readOnly: false},
- restore: {show: true}
- }
- },
- dataZoom: {
- show: true,
- realtime: true,
- start: 50,
- end: 100
- },
- xAxis: [{
- type: 'category',
- boundaryGap: true,
- axisTick: {onGap:false},
- data: [
- '2013/1/24', '2013/1/25', '2013/1/28', '2013/1/29', '2013/1/30',
- '2013/1/31', '2013/2/1', '2013/2/4', '2013/2/5', '2013/2/6',
- '2013/2/7', '2013/2/8', '2013/2/18', '2013/2/19', '2013/2/20',
- '2013/2/21', '2013/2/22', '2013/2/25', '2013/2/26', '2013/2/27',
- '2013/2/28', '2013/3/1', '2013/3/4', '2013/3/5', '2013/3/6',
- '2013/3/7', '2013/3/8', '2013/3/11', '2013/3/12', '2013/3/13',
- '2013/3/14', '2013/3/15', '2013/3/18', '2013/3/19', '2013/3/20',
- '2013/3/21', '2013/3/22', '2013/3/25', '2013/3/26', '2013/3/27',
- '2013/3/28', '2013/3/29', '2013/4/1', '2013/4/2', '2013/4/3',
- '2013/4/8', '2013/4/9', '2013/4/10', '2013/4/11', '2013/4/12',
- '2013/4/15', '2013/4/16', '2013/4/17', '2013/4/18', '2013/4/19',
- '2013/4/22', '2013/4/23', '2013/4/24', '2013/4/25', '2013/4/26',
- '2013/5/2', '2013/5/3', '2013/5/6', '2013/5/7', '2013/5/8',
- '2013/5/9', '2013/5/10', '2013/5/13', '2013/5/14', '2013/5/15',
- '2013/5/16', '2013/5/17', '2013/5/20', '2013/5/21', '2013/5/22',
- '2013/5/23', '2013/5/24', '2013/5/27', '2013/5/28', '2013/5/29',
- '2013/5/30', '2013/5/31', '2013/6/3', '2013/6/4', '2013/6/5',
- '2013/6/6', '2013/6/7', '2013/6/13'
- ]
- }],
- yAxis: [{
- type: 'value',
- scale: true,
- precision: 2,
- splitNumber: 7,
- boundaryGap: [0.05, 0.05]
- }],
- series: [{
- name:'上证指数',
- type:'candlestick',
- data:[ // 开盘,收盘,最低,最高
- [2320.26,2302.6,2287.3,2362.94],
- [2300,2291.3,2288.26,2308.38],
- [2295.35,2346.5,2295.35,2346.92],
- [2347.22,2358.98,2337.35,2363.8],
- [2360.75,2382.48,2347.89,2383.76],
- [2383.43,2385.42,2371.23,2391.82],
- [2377.41,2419.02,2369.57,2421.15],
- [2425.92,2428.15,2417.58,2440.38],
- [2411,2433.13,2403.3,2437.42],
- [2432.68,2434.48,2427.7,2441.73],
- [2430.69,2418.53,2394.22,2433.89],
- [2416.62,2432.4,2414.4,2443.03],
- [2441.91,2421.56,2415.43,2444.8],
- [2420.26,2382.91,2373.53,2427.07],
- [2383.49,2397.18,2370.61,2397.94],
- [2378.82,2325.95,2309.17,2378.82],
- [2322.94,2314.16,2308.76,2330.88],
- [2320.62,2325.82,2315.01,2338.78],
- [2313.74,2293.34,2289.89,2340.71],
- [2297.77,2313.22,2292.03,2324.63],
- [2322.32,2365.59,2308.92,2366.16],
- [2364.54,2359.51,2330.86,2369.65],
- [2332.08,2273.4,2259.25,2333.54],
- [2274.81,2326.31,2270.1,2328.14],
- [2333.61,2347.18,2321.6,2351.44],
- [2340.44,2324.29,2304.27,2352.02],
- [2326.42,2318.61,2314.59,2333.67],
- [2314.68,2310.59,2296.58,2320.96],
- [2309.16,2286.6,2264.83,2333.29],
- [2282.17,2263.97,2253.25,2286.33],
- [2255.77,2270.28,2253.31,2276.22],
- [2269.31,2278.4,2250,2312.08],
- [2267.29,2240.02,2239.21,2276.05],
- [2244.26,2257.43,2232.02,2261.31],
- [2257.74,2317.37,2257.42,2317.86],
- [2318.21,2324.24,2311.6,2330.81],
- [2321.4,2328.28,2314.97,2332],
- [2334.74,2326.72,2319.91,2344.89],
- [2318.58,2297.67,2281.12,2319.99],
- [2299.38,2301.26,2289,2323.48],
- [2273.55,2236.3,2232.91,2273.55],
- [2238.49,2236.62,2228.81,2246.87],
- [2229.46,2234.4,2227.31,2243.95],
- [2234.9,2227.74,2220.44,2253.42],
- [2232.69,2225.29,2217.25,2241.34],
- [2196.24,2211.59,2180.67,2212.59],
- [2215.47,2225.77,2215.47,2234.73],
- [2224.93,2226.13,2212.56,2233.04],
- [2236.98,2219.55,2217.26,2242.48],
- [2218.09,2206.78,2204.44,2226.26],
- [2199.91,2181.94,2177.39,2204.99],
- [2169.63,2194.85,2165.78,2196.43],
- [2195.03,2193.8,2178.47,2197.51],
- [2181.82,2197.6,2175.44,2206.03],
- [2201.12,2244.64,2200.58,2250.11],
- [2236.4,2242.17,2232.26,2245.12],
- [2242.62,2184.54,2182.81,2242.62],
- [2187.35,2218.32,2184.11,2226.12],
- [2213.19,2199.31,2191.85,2224.63],
- [2203.89,2177.91,2173.86,2210.58],
- [2170.78,2174.12,2161.14,2179.65],
- [2179.05,2205.5,2179.05,2222.81],
- [2212.5,2231.17,2212.5,2236.07],
- [2227.86,2235.57,2219.44,2240.26],
- [2242.39,2246.3,2235.42,2255.21],
- [2246.96,2232.97,2221.38,2247.86],
- [2228.82,2246.83,2225.81,2247.67],
- [2247.68,2241.92,2231.36,2250.85],
- [2238.9,2217.01,2205.87,2239.93],
- [2217.09,2224.8,2213.58,2225.19],
- [2221.34,2251.81,2210.77,2252.87],
- [2249.81,2282.87,2248.41,2288.09],
- [2286.33,2299.99,2281.9,2309.39],
- [2297.11,2305.11,2290.12,2305.3],
- [2303.75,2302.4,2292.43,2314.18],
- [2293.81,2275.67,2274.1,2304.95],
- [2281.45,2288.53,2270.25,2292.59],
- [2286.66,2293.08,2283.94,2301.7],
- [2293.4,2321.32,2281.47,2322.1],
- [2323.54,2324.02,2321.17,2334.33],
- [2316.25,2317.75,2310.49,2325.72],
- [2320.74,2300.59,2299.37,2325.53],
- [2300.21,2299.25,2294.11,2313.43],
- [2297.1,2272.42,2264.76,2297.1],
- [2270.71,2270.93,2260.87,2276.86],
- [2264.43,2242.11,2240.07,2266.69],
- [2242.26,2210.9,2205.07,2250.63],
- [2190.1,2148.35,2126.22,2190.1]
- ]
- }]
- }, {
- title: {
- text: '图'
- },
- "series":[
- {
- "name":"Les Miserables",
- "type":"graph",
- "layout":"none",
- "data":[
- {
- "id":"0",
- "name":"Myriel",
- "label":{
- "normal":{
- "formatter":"Myriel",
- "show":false
- }
- },
- "symbolSize":8.685715,
- "x":-266.82776,
- "y":299.6904,
- "attributes":{
- "modularity_class":0
- },
- "value":28.685715,
- "category":0
- },
- {
- "id":"1",
- "name":"Napoleon",
- "label":{
- "normal":{
- "formatter":"Napoleon",
- "show":false
- }
- },
- "symbolSize":4,
- "x":-418.08344,
- "y":446.8853,
- "attributes":{
- "modularity_class":0
- },
- "value":4,
- "category":0
- },
- {
- "id":"2",
- "name":"MlleBaptistine",
- "label":{
- "normal":{
- "formatter":"MlleBaptistine",
- "show":false
- }
- },
- "symbolSize":9.485714,
- "x":-212.76357,
- "y":245.29176,
- "attributes":{
- "modularity_class":1
- },
- "value":9.485714,
- "category":1
- },
- {
- "id":"3",
- "name":"MmeMagloire",
- "label":{
- "normal":{
- "formatter":"MmeMagloire",
- "show":false
- }
- },
- "symbolSize":9.485714,
- "x":-242.82404,
- "y":235.26283,
- "attributes":{
- "modularity_class":1
- },
- "value":9.485714,
- "category":1
- },
- {
- "id":"4",
- "name":"CountessDeLo",
- "label":{
- "normal":{
- "formatter":"CountessDeLo",
- "show":false
- }
- },
- "symbolSize":4,
- "x":-379.30386,
- "y":429.06424,
- "attributes":{
- "modularity_class":0
- },
- "value":4,
- "category":0
- },
- {
- "id":"5",
- "name":"Geborand",
- "label":{
- "normal":{
- "formatter":"Geborand",
- "show":false
- }
- },
- "symbolSize":4,
- "x":-417.26337,
- "y":406.03506,
- "attributes":{
- "modularity_class":0
- },
- "value":4,
- "category":0
- },
- {
- "id":"6",
- "name":"Champtercier",
- "label":{
- "normal":{
- "formatter":"Champtercier",
- "show":false
- }
- },
- "symbolSize":4,
- "x":-332.6012,
- "y":485.16974,
- "attributes":{
- "modularity_class":0
- },
- "value":4,
- "category":0
- },
- {
- "id":"7",
- "name":"Cravatte",
- "label":{
- "normal":{
- "formatter":"Cravatte",
- "show":false
- }
- },
- "symbolSize":4,
- "x":-382.69568,
- "y":475.09113,
- "attributes":{
- "modularity_class":0
- },
- "value":4,
- "category":0
- },
- {
- "id":"8",
- "name":"Count",
- "label":{
- "normal":{
- "formatter":"Count",
- "show":false
- }
- },
- "symbolSize":4,
- "x":-320.384,
- "y":387.17325,
- "attributes":{
- "modularity_class":0
- },
- "value":4,
- "category":0
- },
- {
- "id":"9",
- "name":"OldMan",
- "label":{
- "normal":{
- "formatter":"OldMan",
- "show":false
- }
- },
- "symbolSize":4,
- "x":-344.39832,
- "y":451.16772,
- "attributes":{
- "modularity_class":0
- },
- "value":4,
- "category":0
- },
- {
- "id":"10",
- "name":"Labarre",
- "label":{
- "normal":{
- "formatter":"Labarre",
- "show":false
- }
- },
- "symbolSize":4,
- "x":-89.34107,
- "y":234.56128,
- "attributes":{
- "modularity_class":1
- },
- "value":4,
- "category":1
- },
- {
- "id":"11",
- "name":"Valjean",
- "label":{
- "normal":{
- "formatter":"Valjean",
- "show": false
- }
- },
- "symbolSize":40,
- "x":-87.93029,
- "y":-6.8120565,
- "attributes":{
- "modularity_class":1
- },
- "value":100,
- "category":1
- },
- {
- "id":"12",
- "name":"Marguerite",
- "label":{
- "normal":{
- "formatter":"Marguerite",
- "show":false
- }
- },
- "symbolSize":6.742859,
- "x":-339.77908,
- "y":-184.69139,
- "attributes":{
- "modularity_class":1
- },
- "value":6.742859,
- "category":1
- },
- {
- "id":"13",
- "name":"MmeDeR",
- "label":{
- "normal":{
- "formatter":"MmeDeR",
- "show":false
- }
- },
- "symbolSize":4,
- "x":-194.31313,
- "y":178.55301,
- "attributes":{
- "modularity_class":1
- },
- "value":4,
- "category":1
- },
- {
- "id":"14",
- "name":"Isabeau",
- "label":{
- "normal":{
- "formatter":"Isabeau",
- "show":false
- }
- },
- "symbolSize":4,
- "x":-158.05168,
- "y":201.99768,
- "attributes":{
- "modularity_class":1
- },
- "value":4,
- "category":1
- },
- {
- "id":"15",
- "name":"Gervais",
- "label":{
- "normal":{
- "formatter":"Gervais",
- "show":false
- }
- },
- "symbolSize":4,
- "x":-127.701546,
- "y":242.55057,
- "attributes":{
- "modularity_class":1
- },
- "value":4,
- "category":1
- },
- {
- "id":"16",
- "name":"Tholomyes",
- "label":{
- "normal":{
- "formatter":"Tholomyes",
- "show":false
- }
- },
- "symbolSize":15.942856,
- "x":-385.2226,
- "y":-393.5572,
- "attributes":{
- "modularity_class":2
- },
- "value":25.942856,
- "category":2
- },
- {
- "id":"17",
- "name":"Listolier",
- "label":{
- "normal":{
- "formatter":"Listolier",
- "show":false
- }
- },
- "symbolSize":17.457146,
- "x":-516.55884,
- "y":-393.98975,
- "attributes":{
- "modularity_class":2
- },
- "value":20.457146,
- "category":2
- },
- {
- "id":"18",
- "name":"Fameuil",
- "label":{
- "normal":{
- "formatter":"Fameuil",
- "show":false
- }
- },
- "symbolSize":17.457146,
- "x":-464.79382,
- "y":-493.57944,
- "attributes":{
- "modularity_class":2
- },
- "value":20.457146,
- "category":2
- },
- {
- "id":"19",
- "name":"Blacheville",
- "label":{
- "normal":{
- "formatter":"Blacheville",
- "show":false
- }
- },
- "symbolSize":17.457146,
- "x":-515.1624,
- "y":-456.9891,
- "attributes":{
- "modularity_class":2
- },
- "value":20.457146,
- "category":2
- },
- {
- "id":"20",
- "name":"Favourite",
- "label":{
- "normal":{
- "formatter":"Favourite",
- "show":false
- }
- },
- "symbolSize":17.457146,
- "x":-408.12122,
- "y":-464.5048,
- "attributes":{
- "modularity_class":2
- },
- "value":20.457146,
- "category":2
- },
- {
- "id":"21",
- "name":"Dahlia",
- "label":{
- "normal":{
- "formatter":"Dahlia",
- "show":false
- }
- },
- "symbolSize":17.457146,
- "x":-456.44113,
- "y":-425.13303,
- "attributes":{
- "modularity_class":2
- },
- "value":20.457146,
- "category":2
- },
- {
- "id":"22",
- "name":"Zephine",
- "label":{
- "normal":{
- "formatter":"Zephine",
- "show":false
- }
- },
- "symbolSize":17.457146,
- "x":-459.1107,
- "y":-362.5133,
- "attributes":{
- "modularity_class":2
- },
- "value":20.457146,
- "category":2
- },
- {
- "id":"23",
- "name":"Fantine",
- "label":{
- "normal":{
- "formatter":"Fantine",
- "show": false
- }
- },
- "symbolSize":22.4,
- "x":-313.42786,
- "y":-289.44803,
- "attributes":{
- "modularity_class":2
- },
- "value":42.4,
- "category":2
- },
- {
- "id":"24",
- "name":"MmeThenardier",
- "label":{
- "normal":{
- "formatter":"MmeThenardier",
- "show": false
- }
- },
- "symbolSize":14.428574,
- "x":4.6313396,
- "y":-273.8517,
- "attributes":{
- "modularity_class":7
- },
- "value":31.428574,
- "category":7
- },
- {
- "id":"25",
- "name":"Thenardier",
- "label":{
- "normal":{
- "formatter":"Thenardier",
- "show": false
- }
- },
- "symbolSize":25.142853,
- "x":82.80825,
- "y":-203.1144,
- "attributes":{
- "modularity_class":7
- },
- "value":45.142853,
- "category":7
- },
- {
- "id":"26",
- "name":"Cosette",
- "label":{
- "normal":{
- "formatter":"Cosette",
- "show": false
- }
- },
- "symbolSize":21.428574,
- "x":78.64646,
- "y":-31.512747,
- "attributes":{
- "modularity_class":6
- },
- "value":31.428574,
- "category":6
- },
- {
- "id":"27",
- "name":"Javert",
- "label":{
- "normal":{
- "formatter":"Javert",
- "show": false
- }
- },
- "symbolSize":27.88571,
- "x":-81.46074,
- "y":-204.20204,
- "attributes":{
- "modularity_class":7
- },
- "value":47.88571,
- "category":7
- },
- {
- "id":"28",
- "name":"Fauchelevent",
- "label":{
- "normal":{
- "formatter":"Fauchelevent",
- "show":false
- }
- },
- "symbolSize":12.228573,
- "x":-225.73984,
- "y":82.41631,
- "attributes":{
- "modularity_class":4
- },
- "value":12.228573,
- "category":4
- },
- {
- "id":"29",
- "name":"Bamatabois",
- "label":{
- "normal":{
- "formatter":"Bamatabois",
- "show":false
- }
- },
- "symbolSize":23.2,
- "x":-385.6842,
- "y":-20.206686,
- "attributes":{
- "modularity_class":3
- },
- "value":23.2,
- "category":3
- },
- {
- "id":"30",
- "name":"Perpetue",
- "label":{
- "normal":{
- "formatter":"Perpetue",
- "show":false
- }
- },
- "symbolSize":6.742859,
- "x":-403.92447,
- "y":-197.69823,
- "attributes":{
- "modularity_class":2
- },
- "value":6.742859,
- "category":2
- },
- {
- "id":"31",
- "name":"Simplice",
- "label":{
- "normal":{
- "formatter":"Simplice",
- "show":false
- }
- },
- "symbolSize":12.228573,
- "x":-281.4253,
- "y":-158.45137,
- "attributes":{
- "modularity_class":2
- },
- "value":12.228573,
- "category":2
- },
- {
- "id":"32",
- "name":"Scaufflaire",
- "label":{
- "normal":{
- "formatter":"Scaufflaire",
- "show":false
- }
- },
- "symbolSize":4,
- "x":-122.41348,
- "y":210.37503,
- "attributes":{
- "modularity_class":1
- },
- "value":4,
- "category":1
- },
- {
- "id":"33",
- "name":"Woman1",
- "label":{
- "normal":{
- "formatter":"Woman1",
- "show":false
- }
- },
- "symbolSize":6.742859,
- "x":-234.6001,
- "y":-113.15067,
- "attributes":{
- "modularity_class":1
- },
- "value":6.742859,
- "category":1
- },
- {
- "id":"34",
- "name":"Judge",
- "label":{
- "normal":{
- "formatter":"Judge",
- "show":false
- }
- },
- "symbolSize":17.714287,
- "x":-387.84915,
- "y":58.7059,
- "attributes":{
- "modularity_class":3
- },
- "value":17.714287,
- "category":3
- },
- {
- "id":"35",
- "name":"Champmathieu",
- "label":{
- "normal":{
- "formatter":"Champmathieu",
- "show":false
- }
- },
- "symbolSize":17.714287,
- "x":-338.2307,
- "y":87.48405,
- "attributes":{
- "modularity_class":3
- },
- "value":17.714287,
- "category":3
- },
- {
- "id":"36",
- "name":"Brevet",
- "label":{
- "normal":{
- "formatter":"Brevet",
- "show":false
- }
- },
- "symbolSize":17.714287,
- "x":-453.26874,
- "y":58.94648,
- "attributes":{
- "modularity_class":3
- },
- "value":17.714287,
- "category":3
- },
- {
- "id":"37",
- "name":"Chenildieu",
- "label":{
- "normal":{
- "formatter":"Chenildieu",
- "show":false
- }
- },
- "symbolSize":17.714287,
- "x":-386.44904,
- "y":140.05937,
- "attributes":{
- "modularity_class":3
- },
- "value":17.714287,
- "category":3
- },
- {
- "id":"38",
- "name":"Cochepaille",
- "label":{
- "normal":{
- "formatter":"Cochepaille",
- "show":false
- }
- },
- "symbolSize":17.714287,
- "x":-446.7876,
- "y":123.38005,
- "attributes":{
- "modularity_class":3
- },
- "value":17.714287,
- "category":3
- },
- {
- "id":"39",
- "name":"Pontmercy",
- "label":{
- "normal":{
- "formatter":"Pontmercy",
- "show":false
- }
- },
- "symbolSize":9.485714,
- "x":336.49738,
- "y":-269.55914,
- "attributes":{
- "modularity_class":6
- },
- "value":9.485714,
- "category":6
- },
- {
- "id":"40",
- "name":"Boulatruelle",
- "label":{
- "normal":{
- "formatter":"Boulatruelle",
- "show":false
- }
- },
- "symbolSize":4,
- "x":29.187843,
- "y":-460.13132,
- "attributes":{
- "modularity_class":7
- },
- "value":4,
- "category":7
- },
- {
- "id":"41",
- "name":"Eponine",
- "label":{
- "normal":{
- "formatter":"Eponine",
- "show": false
- }
- },
- "symbolSize":31.428574,
- "x":238.36697,
- "y":-210.00926,
- "attributes":{
- "modularity_class":7
- },
- "value":31.428574,
- "category":7
- },
- {
- "id":"42",
- "name":"Anzelma",
- "label":{
- "normal":{
- "formatter":"Anzelma",
- "show":false
- }
- },
- "symbolSize":9.485714,
- "x":189.69513,
- "y":-346.50662,
- "attributes":{
- "modularity_class":7
- },
- "value":9.485714,
- "category":7
- },
- {
- "id":"43",
- "name":"Woman2",
- "label":{
- "normal":{
- "formatter":"Woman2",
- "show":false
- }
- },
- "symbolSize":9.485714,
- "x":-187.00418,
- "y":-145.02663,
- "attributes":{
- "modularity_class":6
- },
- "value":9.485714,
- "category":6
- },
- {
- "id":"44",
- "name":"MotherInnocent",
- "label":{
- "normal":{
- "formatter":"MotherInnocent",
- "show":false
- }
- },
- "symbolSize":6.742859,
- "x":-252.99521,
- "y":129.87549,
- "attributes":{
- "modularity_class":4
- },
- "value":6.742859,
- "category":4
- },
- {
- "id":"45",
- "name":"Gribier",
- "label":{
- "normal":{
- "formatter":"Gribier",
- "show":false
- }
- },
- "symbolSize":4,
- "x":-296.07935,
- "y":163.11964,
- "attributes":{
- "modularity_class":4
- },
- "value":4,
- "category":4
- },
- {
- "id":"46",
- "name":"Jondrette",
- "label":{
- "normal":{
- "formatter":"Jondrette",
- "show":false
- }
- },
- "symbolSize":4,
- "x":550.3201,
- "y":522.4031,
- "attributes":{
- "modularity_class":5
- },
- "value":4,
- "category":5
- },
- {
- "id":"47",
- "name":"MmeBurgon",
- "label":{
- "normal":{
- "formatter":"MmeBurgon",
- "show":false
- }
- },
- "symbolSize":6.742859,
- "x":488.13535,
- "y":356.8573,
- "attributes":{
- "modularity_class":5
- },
- "value":6.742859,
- "category":5
- },
- {
- "id":"48",
- "name":"Gavroche",
- "label":{
- "normal":{
- "formatter":"Gavroche",
- "show": false
- }
- },
- "symbolSize":31.600006,
- "x":387.89572,
- "y":110.462326,
- "attributes":{
- "modularity_class":8
- },
- "value":61.600006,
- "category":8
- },
- {
- "id":"49",
- "name":"Gillenormand",
- "label":{
- "normal":{
- "formatter":"Gillenormand",
- "show":false
- }
- },
- "symbolSize":20.457146,
- "x":126.4831,
- "y":68.10622,
- "attributes":{
- "modularity_class":6
- },
- "value":20.457146,
- "category":6
- },
- {
- "id":"50",
- "name":"Magnon",
- "label":{
- "normal":{
- "formatter":"Magnon",
- "show":false
- }
- },
- "symbolSize":6.742859,
- "x":127.07365,
- "y":-113.05923,
- "attributes":{
- "modularity_class":6
- },
- "value":6.742859,
- "category":6
- },
- {
- "id":"51",
- "name":"MlleGillenormand",
- "label":{
- "normal":{
- "formatter":"MlleGillenormand",
- "show":false
- }
- },
- "symbolSize":20.457146,
- "x":162.63559,
- "y":117.6565,
- "attributes":{
- "modularity_class":6
- },
- "value":20.457146,
- "category":6
- },
- {
- "id":"52",
- "name":"MmePontmercy",
- "label":{
- "normal":{
- "formatter":"MmePontmercy",
- "show":false
- }
- },
- "symbolSize":6.742859,
- "x":353.66415,
- "y":-205.89165,
- "attributes":{
- "modularity_class":6
- },
- "value":6.742859,
- "category":6
- },
- {
- "id":"53",
- "name":"MlleVaubois",
- "label":{
- "normal":{
- "formatter":"MlleVaubois",
- "show":false
- }
- },
- "symbolSize":4,
- "x":165.43939,
- "y":339.7736,
- "attributes":{
- "modularity_class":6
- },
- "value":4,
- "category":6
- },
- {
- "id":"54",
- "name":"LtGillenormand",
- "label":{
- "normal":{
- "formatter":"LtGillenormand",
- "show":false
- }
- },
- "symbolSize":12.228573,
- "x":137.69348,
- "y":196.1069,
- "attributes":{
- "modularity_class":6
- },
- "value":12.228573,
- "category":6
- },
- {
- "id":"55",
- "name":"Marius",
- "label":{
- "normal":{
- "formatter":"Marius",
- "show": false
- }
- },
- "symbolSize":33.37143,
- "x":206.44687,
- "y":-13.805411,
- "attributes":{
- "modularity_class":6
- },
- "value":53.37143,
- "category":6
- },
- {
- "id":"56",
- "name":"BaronessT",
- "label":{
- "normal":{
- "formatter":"BaronessT",
- "show":false
- }
- },
- "symbolSize":6.742859,
- "x":194.82993,
- "y":224.78036,
- "attributes":{
- "modularity_class":6
- },
- "value":6.742859,
- "category":6
- },
- {
- "id":"57",
- "name":"Mabeuf",
- "label":{
- "normal":{
- "formatter":"Mabeuf",
- "show": false
- }
- },
- "symbolSize":31.428574,
- "x":597.6618,
- "y":135.18481,
- "attributes":{
- "modularity_class":8
- },
- "value":21.428574,
- "category":8
- },
- {
- "id":"58",
- "name":"Enjolras",
- "label":{
- "normal":{
- "formatter":"Enjolras",
- "show": false
- }
- },
- "symbolSize":42.4,
- "x":355.78366,
- "y":-74.882454,
- "attributes":{
- "modularity_class":8
- },
- "value":22.4,
- "category":8
- },
- {
- "id":"59",
- "name":"Combeferre",
- "label":{
- "normal":{
- "formatter":"Combeferre",
- "show": false
- }
- },
- "symbolSize":21.428574,
- "x":515.2961,
- "y":-46.167564,
- "attributes":{
- "modularity_class":8
- },
- "value":31.428574,
- "category":8
- },
- {
- "id":"60",
- "name":"Prouvaire",
- "label":{
- "normal":{
- "formatter":"Prouvaire",
- "show":false
- }
- },
- "symbolSize":15.942856,
- "x":614.29285,
- "y":-69.3104,
- "attributes":{
- "modularity_class":8
- },
- "value":25.942856,
- "category":8
- },
- {
- "id":"61",
- "name":"Feuilly",
- "label":{
- "normal":{
- "formatter":"Feuilly",
- "show": false
- }
- },
- "symbolSize":21.428574,
- "x":550.1917,
- "y":-128.17537,
- "attributes":{
- "modularity_class":8
- },
- "value":31.428574,
- "category":8
- },
- {
- "id":"62",
- "name":"Courfeyrac",
- "label":{
- "normal":{
- "formatter":"Courfeyrac",
- "show": false
- }
- },
- "symbolSize":26.91429,
- "x":436.17184,
- "y":-12.7286825,
- "attributes":{
- "modularity_class":8
- },
- "value":36.91429,
- "category":8
- },
- {
- "id":"63",
- "name":"Bahorel",
- "label":{
- "normal":{
- "formatter":"Bahorel",
- "show": false
- }
- },
- "symbolSize":24.17143,
- "x":602.55225,
- "y":16.421427,
- "attributes":{
- "modularity_class":8
- },
- "value":34.17143,
- "category":8
- },
- {
- "id":"64",
- "name":"Bossuet",
- "label":{
- "normal":{
- "formatter":"Bossuet",
- "show": false
- }
- },
- "symbolSize":26.91429,
- "x":455.81955,
- "y":-115.45826,
- "attributes":{
- "modularity_class":8
- },
- "value":36.91429,
- "category":8
- },
- {
- "id":"65",
- "name":"Joly",
- "label":{
- "normal":{
- "formatter":"Joly",
- "show": false
- }
- },
- "symbolSize":24.17143,
- "x":516.40784,
- "y":47.242233,
- "attributes":{
- "modularity_class":8
- },
- "value":34.17143,
- "category":8
- },
- {
- "id":"66",
- "name":"Grantaire",
- "label":{
- "normal":{
- "formatter":"Grantaire",
- "show":false
- }
- },
- "symbolSize":28.685715,
- "x":646.4313,
- "y":-151.06331,
- "attributes":{
- "modularity_class":8
- },
- "value":28.685715,
- "category":8
- },
- {
- "id":"67",
- "name":"MotherPlutarch",
- "label":{
- "normal":{
- "formatter":"MotherPlutarch",
- "show":false
- }
- },
- "symbolSize":4,
- "x":668.9568,
- "y":204.65488,
- "attributes":{
- "modularity_class":8
- },
- "value":4,
- "category":8
- },
- {
- "id":"68",
- "name":"Gueulemer",
- "label":{
- "normal":{
- "formatter":"Gueulemer",
- "show":false
- }
- },
- "symbolSize":28.685715,
- "x":78.4799,
- "y":-347.15146,
- "attributes":{
- "modularity_class":7
- },
- "value":28.685715,
- "category":7
- },
- {
- "id":"69",
- "name":"Babet",
- "label":{
- "normal":{
- "formatter":"Babet",
- "show":false
- }
- },
- "symbolSize":28.685715,
- "x":150.35959,
- "y":-298.50797,
- "attributes":{
- "modularity_class":7
- },
- "value":28.685715,
- "category":7
- },
- {
- "id":"70",
- "name":"Claquesous",
- "label":{
- "normal":{
- "formatter":"Claquesous",
- "show":false
- }
- },
- "symbolSize":28.685715,
- "x":137.3717,
- "y":-410.2809,
- "attributes":{
- "modularity_class":7
- },
- "value":28.685715,
- "category":7
- },
- {
- "id":"71",
- "name":"Montparnasse",
- "label":{
- "normal":{
- "formatter":"Montparnasse",
- "show":false
- }
- },
- "symbolSize":25.942856,
- "x":234.87747,
- "y":-400.85983,
- "attributes":{
- "modularity_class":7
- },
- "value":25.942856,
- "category":7
- },
- {
- "id":"72",
- "name":"Toussaint",
- "label":{
- "normal":{
- "formatter":"Toussaint",
- "show":false
- }
- },
- "symbolSize":9.485714,
- "x":40.942253,
- "y":113.78272,
- "attributes":{
- "modularity_class":1
- },
- "value":9.485714,
- "category":1
- },
- {
- "id":"73",
- "name":"Child1",
- "label":{
- "normal":{
- "formatter":"Child1",
- "show":false
- }
- },
- "symbolSize":6.742859,
- "x":437.939,
- "y":291.58234,
- "attributes":{
- "modularity_class":8
- },
- "value":6.742859,
- "category":8
- },
- {
- "id":"74",
- "name":"Child2",
- "label":{
- "normal":{
- "formatter":"Child2",
- "show":false
- }
- },
- "symbolSize":6.742859,
- "x":466.04922,
- "y":283.3606,
- "attributes":{
- "modularity_class":8
- },
- "value":6.742859,
- "category":8
- },
- {
- "id":"75",
- "name":"Brujon",
- "label":{
- "normal":{
- "formatter":"Brujon",
- "show":false
- }
- },
- "symbolSize":20.457146,
- "x":238.79364,
- "y":-314.06345,
- "attributes":{
- "modularity_class":7
- },
- "value":20.457146,
- "category":7
- },
- {
- "id":"76",
- "name":"MmeHucheloup",
- "label":{
- "normal":{
- "formatter":"MmeHucheloup",
- "show":false
- }
- },
- "symbolSize":20.457146,
- "x":712.18353,
- "y":4.8131495,
- "attributes":{
- "modularity_class":8
- },
- "value":20.457146,
- "category":8
- }
- ],
- "links":[
- {
- "id":"0",
- "name":null,
- "source":"1",
- "target":"0"
- },
- {
- "id":"1",
- "name":null,
- "source":"2",
- "target":"0"
- },
- {
- "id":"2",
- "name":null,
- "source":"3",
- "target":"0"
- },
- {
- "id":"3",
- "name":null,
- "source":"3",
- "target":"2"
- },
- {
- "id":"4",
- "name":null,
- "source":"4",
- "target":"0"
- },
- {
- "id":"5",
- "name":null,
- "source":"5",
- "target":"0"
- },
- {
- "id":"6",
- "name":null,
- "source":"6",
- "target":"0"
- },
- {
- "id":"7",
- "name":null,
- "source":"7",
- "target":"0"
- },
- {
- "id":"8",
- "name":null,
- "source":"8",
- "target":"0"
- },
- {
- "id":"9",
- "name":null,
- "source":"9",
- "target":"0"
- },
- {
- "id":"13",
- "name":null,
- "source":"11",
- "target":"0"
- },
- {
- "id":null,
- "name":null,
- "source":"11",
- "target":"2"
- },
- {
- "id":"11",
- "name":null,
- "source":"11",
- "target":"3"
- },
- {
- "id":"10",
- "name":null,
- "source":"11",
- "target":"10"
- },
- {
- "id":"14",
- "name":null,
- "source":"12",
- "target":"11"
- },
- {
- "id":"15",
- "name":null,
- "source":"13",
- "target":"11"
- },
- {
- "id":"16",
- "name":null,
- "source":"14",
- "target":"11"
- },
- {
- "id":"17",
- "name":null,
- "source":"15",
- "target":"11"
- },
- {
- "id":"18",
- "name":null,
- "source":"17",
- "target":"16"
- },
- {
- "id":"19",
- "name":null,
- "source":"18",
- "target":"16"
- },
- {
- "id":"20",
- "name":null,
- "source":"18",
- "target":"17"
- },
- {
- "id":"21",
- "name":null,
- "source":"19",
- "target":"16"
- },
- {
- "id":"22",
- "name":null,
- "source":"19",
- "target":"17"
- },
- {
- "id":"23",
- "name":null,
- "source":"19",
- "target":"18"
- },
- {
- "id":"24",
- "name":null,
- "source":"20",
- "target":"16"
- },
- {
- "id":"25",
- "name":null,
- "source":"20",
- "target":"17"
- },
- {
- "id":"26",
- "name":null,
- "source":"20",
- "target":"18"
- },
- {
- "id":"27",
- "name":null,
- "source":"20",
- "target":"19"
- },
- {
- "id":"28",
- "name":null,
- "source":"21",
- "target":"16"
- },
- {
- "id":"29",
- "name":null,
- "source":"21",
- "target":"17"
- },
- {
- "id":"30",
- "name":null,
- "source":"21",
- "target":"18"
- },
- {
- "id":"31",
- "name":null,
- "source":"21",
- "target":"19"
- },
- {
- "id":"32",
- "name":null,
- "source":"21",
- "target":"20"
- },
- {
- "id":"33",
- "name":null,
- "source":"22",
- "target":"16"
- },
- {
- "id":"34",
- "name":null,
- "source":"22",
- "target":"17"
- },
- {
- "id":"35",
- "name":null,
- "source":"22",
- "target":"18"
- },
- {
- "id":"36",
- "name":null,
- "source":"22",
- "target":"19"
- },
- {
- "id":"37",
- "name":null,
- "source":"22",
- "target":"20"
- },
- {
- "id":"38",
- "name":null,
- "source":"22",
- "target":"21"
- },
- {
- "id":"47",
- "name":null,
- "source":"23",
- "target":"11"
- },
- {
- "id":"46",
- "name":null,
- "source":"23",
- "target":"12"
- },
- {
- "id":"39",
- "name":null,
- "source":"23",
- "target":"16"
- },
- {
- "id":"40",
- "name":null,
- "source":"23",
- "target":"17"
- },
- {
- "id":"41",
- "name":null,
- "source":"23",
- "target":"18"
- },
- {
- "id":"42",
- "name":null,
- "source":"23",
- "target":"19"
- },
- {
- "id":"43",
- "name":null,
- "source":"23",
- "target":"20"
- },
- {
- "id":"44",
- "name":null,
- "source":"23",
- "target":"21"
- },
- {
- "id":"45",
- "name":null,
- "source":"23",
- "target":"22"
- },
- {
- "id":null,
- "name":null,
- "source":"24",
- "target":"11"
- },
- {
- "id":"48",
- "name":null,
- "source":"24",
- "target":"23"
- },
- {
- "id":"52",
- "name":null,
- "source":"25",
- "target":"11"
- },
- {
- "id":"51",
- "name":null,
- "source":"25",
- "target":"23"
- },
- {
- "id":"50",
- "name":null,
- "source":"25",
- "target":"24"
- },
- {
- "id":null,
- "name":null,
- "source":"26",
- "target":"11"
- },
- {
- "id":null,
- "name":null,
- "source":"26",
- "target":"16"
- },
- {
- "id":"53",
- "name":null,
- "source":"26",
- "target":"24"
- },
- {
- "id":"56",
- "name":null,
- "source":"26",
- "target":"25"
- },
- {
- "id":"57",
- "name":null,
- "source":"27",
- "target":"11"
- },
- {
- "id":"58",
- "name":null,
- "source":"27",
- "target":"23"
- },
- {
- "id":null,
- "name":null,
- "source":"27",
- "target":"24"
- },
- {
- "id":"59",
- "name":null,
- "source":"27",
- "target":"25"
- },
- {
- "id":"61",
- "name":null,
- "source":"27",
- "target":"26"
- },
- {
- "id":"62",
- "name":null,
- "source":"28",
- "target":"11"
- },
- {
- "id":"63",
- "name":null,
- "source":"28",
- "target":"27"
- },
- {
- "id":"66",
- "name":null,
- "source":"29",
- "target":"11"
- },
- {
- "id":"64",
- "name":null,
- "source":"29",
- "target":"23"
- },
- {
- "id":"65",
- "name":null,
- "source":"29",
- "target":"27"
- },
- {
- "id":"67",
- "name":null,
- "source":"30",
- "target":"23"
- },
- {
- "id":null,
- "name":null,
- "source":"31",
- "target":"11"
- },
- {
- "id":null,
- "name":null,
- "source":"31",
- "target":"23"
- },
- {
- "id":null,
- "name":null,
- "source":"31",
- "target":"27"
- },
- {
- "id":"68",
- "name":null,
- "source":"31",
- "target":"30"
- },
- {
- "id":"72",
- "name":null,
- "source":"32",
- "target":"11"
- },
- {
- "id":"73",
- "name":null,
- "source":"33",
- "target":"11"
- },
- {
- "id":"74",
- "name":null,
- "source":"33",
- "target":"27"
- },
- {
- "id":"75",
- "name":null,
- "source":"34",
- "target":"11"
- },
- {
- "id":"76",
- "name":null,
- "source":"34",
- "target":"29"
- },
- {
- "id":"77",
- "name":null,
- "source":"35",
- "target":"11"
- },
- {
- "id":null,
- "name":null,
- "source":"35",
- "target":"29"
- },
- {
- "id":"78",
- "name":null,
- "source":"35",
- "target":"34"
- },
- {
- "id":"82",
- "name":null,
- "source":"36",
- "target":"11"
- },
- {
- "id":"83",
- "name":null,
- "source":"36",
- "target":"29"
- },
- {
- "id":"80",
- "name":null,
- "source":"36",
- "target":"34"
- },
- {
- "id":"81",
- "name":null,
- "source":"36",
- "target":"35"
- },
- {
- "id":"87",
- "name":null,
- "source":"37",
- "target":"11"
- },
- {
- "id":"88",
- "name":null,
- "source":"37",
- "target":"29"
- },
- {
- "id":"84",
- "name":null,
- "source":"37",
- "target":"34"
- },
- {
- "id":"85",
- "name":null,
- "source":"37",
- "target":"35"
- },
- {
- "id":"86",
- "name":null,
- "source":"37",
- "target":"36"
- },
- {
- "id":"93",
- "name":null,
- "source":"38",
- "target":"11"
- },
- {
- "id":"94",
- "name":null,
- "source":"38",
- "target":"29"
- },
- {
- "id":"89",
- "name":null,
- "source":"38",
- "target":"34"
- },
- {
- "id":"90",
- "name":null,
- "source":"38",
- "target":"35"
- },
- {
- "id":"91",
- "name":null,
- "source":"38",
- "target":"36"
- },
- {
- "id":"92",
- "name":null,
- "source":"38",
- "target":"37"
- },
- {
- "id":"95",
- "name":null,
- "source":"39",
- "target":"25"
- },
- {
- "id":"96",
- "name":null,
- "source":"40",
- "target":"25"
- },
- {
- "id":"97",
- "name":null,
- "source":"41",
- "target":"24"
- },
- {
- "id":"98",
- "name":null,
- "source":"41",
- "target":"25"
- },
- {
- "id":"101",
- "name":null,
- "source":"42",
- "target":"24"
- },
- {
- "id":"100",
- "name":null,
- "source":"42",
- "target":"25"
- },
- {
- "id":"99",
- "name":null,
- "source":"42",
- "target":"41"
- },
- {
- "id":"102",
- "name":null,
- "source":"43",
- "target":"11"
- },
- {
- "id":"103",
- "name":null,
- "source":"43",
- "target":"26"
- },
- {
- "id":"104",
- "name":null,
- "source":"43",
- "target":"27"
- },
- {
- "id":null,
- "name":null,
- "source":"44",
- "target":"11"
- },
- {
- "id":"105",
- "name":null,
- "source":"44",
- "target":"28"
- },
- {
- "id":"107",
- "name":null,
- "source":"45",
- "target":"28"
- },
- {
- "id":"108",
- "name":null,
- "source":"47",
- "target":"46"
- },
- {
- "id":"112",
- "name":null,
- "source":"48",
- "target":"11"
- },
- {
- "id":"110",
- "name":null,
- "source":"48",
- "target":"25"
- },
- {
- "id":"111",
- "name":null,
- "source":"48",
- "target":"27"
- },
- {
- "id":"109",
- "name":null,
- "source":"48",
- "target":"47"
- },
- {
- "id":null,
- "name":null,
- "source":"49",
- "target":"11"
- },
- {
- "id":"113",
- "name":null,
- "source":"49",
- "target":"26"
- },
- {
- "id":null,
- "name":null,
- "source":"50",
- "target":"24"
- },
- {
- "id":"115",
- "name":null,
- "source":"50",
- "target":"49"
- },
- {
- "id":"119",
- "name":null,
- "source":"51",
- "target":"11"
- },
- {
- "id":"118",
- "name":null,
- "source":"51",
- "target":"26"
- },
- {
- "id":"117",
- "name":null,
- "source":"51",
- "target":"49"
- },
- {
- "id":null,
- "name":null,
- "source":"52",
- "target":"39"
- },
- {
- "id":"120",
- "name":null,
- "source":"52",
- "target":"51"
- },
- {
- "id":"122",
- "name":null,
- "source":"53",
- "target":"51"
- },
- {
- "id":"125",
- "name":null,
- "source":"54",
- "target":"26"
- },
- {
- "id":"124",
- "name":null,
- "source":"54",
- "target":"49"
- },
- {
- "id":"123",
- "name":null,
- "source":"54",
- "target":"51"
- },
- {
- "id":"131",
- "name":null,
- "source":"55",
- "target":"11"
- },
- {
- "id":"132",
- "name":null,
- "source":"55",
- "target":"16"
- },
- {
- "id":"133",
- "name":null,
- "source":"55",
- "target":"25"
- },
- {
- "id":null,
- "name":null,
- "source":"55",
- "target":"26"
- },
- {
- "id":"128",
- "name":null,
- "source":"55",
- "target":"39"
- },
- {
- "id":"134",
- "name":null,
- "source":"55",
- "target":"41"
- },
- {
- "id":"135",
- "name":null,
- "source":"55",
- "target":"48"
- },
- {
- "id":"127",
- "name":null,
- "source":"55",
- "target":"49"
- },
- {
- "id":"126",
- "name":null,
- "source":"55",
- "target":"51"
- },
- {
- "id":"129",
- "name":null,
- "source":"55",
- "target":"54"
- },
- {
- "id":"136",
- "name":null,
- "source":"56",
- "target":"49"
- },
- {
- "id":"137",
- "name":null,
- "source":"56",
- "target":"55"
- },
- {
- "id":null,
- "name":null,
- "source":"57",
- "target":"41"
- },
- {
- "id":null,
- "name":null,
- "source":"57",
- "target":"48"
- },
- {
- "id":"138",
- "name":null,
- "source":"57",
- "target":"55"
- },
- {
- "id":"145",
- "name":null,
- "source":"58",
- "target":"11"
- },
- {
- "id":null,
- "name":null,
- "source":"58",
- "target":"27"
- },
- {
- "id":"142",
- "name":null,
- "source":"58",
- "target":"48"
- },
- {
- "id":"141",
- "name":null,
- "source":"58",
- "target":"55"
- },
- {
- "id":"144",
- "name":null,
- "source":"58",
- "target":"57"
- },
- {
- "id":"148",
- "name":null,
- "source":"59",
- "target":"48"
- },
- {
- "id":"147",
- "name":null,
- "source":"59",
- "target":"55"
- },
- {
- "id":null,
- "name":null,
- "source":"59",
- "target":"57"
- },
- {
- "id":"146",
- "name":null,
- "source":"59",
- "target":"58"
- },
- {
- "id":"150",
- "name":null,
- "source":"60",
- "target":"48"
- },
- {
- "id":"151",
- "name":null,
- "source":"60",
- "target":"58"
- },
- {
- "id":"152",
- "name":null,
- "source":"60",
- "target":"59"
- },
- {
- "id":"153",
- "name":null,
- "source":"61",
- "target":"48"
- },
- {
- "id":"158",
- "name":null,
- "source":"61",
- "target":"55"
- },
- {
- "id":"157",
- "name":null,
- "source":"61",
- "target":"57"
- },
- {
- "id":"154",
- "name":null,
- "source":"61",
- "target":"58"
- },
- {
- "id":"156",
- "name":null,
- "source":"61",
- "target":"59"
- },
- {
- "id":"155",
- "name":null,
- "source":"61",
- "target":"60"
- },
- {
- "id":"164",
- "name":null,
- "source":"62",
- "target":"41"
- },
- {
- "id":"162",
- "name":null,
- "source":"62",
- "target":"48"
- },
- {
- "id":"159",
- "name":null,
- "source":"62",
- "target":"55"
- },
- {
- "id":null,
- "name":null,
- "source":"62",
- "target":"57"
- },
- {
- "id":"160",
- "name":null,
- "source":"62",
- "target":"58"
- },
- {
- "id":"161",
- "name":null,
- "source":"62",
- "target":"59"
- },
- {
- "id":null,
- "name":null,
- "source":"62",
- "target":"60"
- },
- {
- "id":"165",
- "name":null,
- "source":"62",
- "target":"61"
- },
- {
- "id":null,
- "name":null,
- "source":"63",
- "target":"48"
- },
- {
- "id":"174",
- "name":null,
- "source":"63",
- "target":"55"
- },
- {
- "id":null,
- "name":null,
- "source":"63",
- "target":"57"
- },
- {
- "id":null,
- "name":null,
- "source":"63",
- "target":"58"
- },
- {
- "id":"167",
- "name":null,
- "source":"63",
- "target":"59"
- },
- {
- "id":null,
- "name":null,
- "source":"63",
- "target":"60"
- },
- {
- "id":"172",
- "name":null,
- "source":"63",
- "target":"61"
- },
- {
- "id":"169",
- "name":null,
- "source":"63",
- "target":"62"
- },
- {
- "id":"184",
- "name":null,
- "source":"64",
- "target":"11"
- },
- {
- "id":null,
- "name":null,
- "source":"64",
- "target":"48"
- },
- {
- "id":"175",
- "name":null,
- "source":"64",
- "target":"55"
- },
- {
- "id":"183",
- "name":null,
- "source":"64",
- "target":"57"
- },
- {
- "id":"179",
- "name":null,
- "source":"64",
- "target":"58"
- },
- {
- "id":"182",
- "name":null,
- "source":"64",
- "target":"59"
- },
- {
- "id":"181",
- "name":null,
- "source":"64",
- "target":"60"
- },
- {
- "id":"180",
- "name":null,
- "source":"64",
- "target":"61"
- },
- {
- "id":"176",
- "name":null,
- "source":"64",
- "target":"62"
- },
- {
- "id":"178",
- "name":null,
- "source":"64",
- "target":"63"
- },
- {
- "id":"187",
- "name":null,
- "source":"65",
- "target":"48"
- },
- {
- "id":"194",
- "name":null,
- "source":"65",
- "target":"55"
- },
- {
- "id":"193",
- "name":null,
- "source":"65",
- "target":"57"
- },
- {
- "id":null,
- "name":null,
- "source":"65",
- "target":"58"
- },
- {
- "id":"192",
- "name":null,
- "source":"65",
- "target":"59"
- },
- {
- "id":null,
- "name":null,
- "source":"65",
- "target":"60"
- },
- {
- "id":"190",
- "name":null,
- "source":"65",
- "target":"61"
- },
- {
- "id":"188",
- "name":null,
- "source":"65",
- "target":"62"
- },
- {
- "id":"185",
- "name":null,
- "source":"65",
- "target":"63"
- },
- {
- "id":"186",
- "name":null,
- "source":"65",
- "target":"64"
- },
- {
- "id":"200",
- "name":null,
- "source":"66",
- "target":"48"
- },
- {
- "id":"196",
- "name":null,
- "source":"66",
- "target":"58"
- },
- {
- "id":"197",
- "name":null,
- "source":"66",
- "target":"59"
- },
- {
- "id":"203",
- "name":null,
- "source":"66",
- "target":"60"
- },
- {
- "id":"202",
- "name":null,
- "source":"66",
- "target":"61"
- },
- {
- "id":"198",
- "name":null,
- "source":"66",
- "target":"62"
- },
- {
- "id":"201",
- "name":null,
- "source":"66",
- "target":"63"
- },
- {
- "id":"195",
- "name":null,
- "source":"66",
- "target":"64"
- },
- {
- "id":"199",
- "name":null,
- "source":"66",
- "target":"65"
- },
- {
- "id":"204",
- "name":null,
- "source":"67",
- "target":"57"
- },
- {
- "id":null,
- "name":null,
- "source":"68",
- "target":"11"
- },
- {
- "id":null,
- "name":null,
- "source":"68",
- "target":"24"
- },
- {
- "id":"205",
- "name":null,
- "source":"68",
- "target":"25"
- },
- {
- "id":"208",
- "name":null,
- "source":"68",
- "target":"27"
- },
- {
- "id":null,
- "name":null,
- "source":"68",
- "target":"41"
- },
- {
- "id":"209",
- "name":null,
- "source":"68",
- "target":"48"
- },
- {
- "id":"213",
- "name":null,
- "source":"69",
- "target":"11"
- },
- {
- "id":"214",
- "name":null,
- "source":"69",
- "target":"24"
- },
- {
- "id":"211",
- "name":null,
- "source":"69",
- "target":"25"
- },
- {
- "id":null,
- "name":null,
- "source":"69",
- "target":"27"
- },
- {
- "id":"217",
- "name":null,
- "source":"69",
- "target":"41"
- },
- {
- "id":"216",
- "name":null,
- "source":"69",
- "target":"48"
- },
- {
- "id":"212",
- "name":null,
- "source":"69",
- "target":"68"
- },
- {
- "id":"221",
- "name":null,
- "source":"70",
- "target":"11"
- },
- {
- "id":"222",
- "name":null,
- "source":"70",
- "target":"24"
- },
- {
- "id":"218",
- "name":null,
- "source":"70",
- "target":"25"
- },
- {
- "id":"223",
- "name":null,
- "source":"70",
- "target":"27"
- },
- {
- "id":"224",
- "name":null,
- "source":"70",
- "target":"41"
- },
- {
- "id":"225",
- "name":null,
- "source":"70",
- "target":"58"
- },
- {
- "id":"220",
- "name":null,
- "source":"70",
- "target":"68"
- },
- {
- "id":"219",
- "name":null,
- "source":"70",
- "target":"69"
- },
- {
- "id":"230",
- "name":null,
- "source":"71",
- "target":"11"
- },
- {
- "id":"233",
- "name":null,
- "source":"71",
- "target":"25"
- },
- {
- "id":"226",
- "name":null,
- "source":"71",
- "target":"27"
- },
- {
- "id":"232",
- "name":null,
- "source":"71",
- "target":"41"
- },
- {
- "id":null,
- "name":null,
- "source":"71",
- "target":"48"
- },
- {
- "id":"228",
- "name":null,
- "source":"71",
- "target":"68"
- },
- {
- "id":"227",
- "name":null,
- "source":"71",
- "target":"69"
- },
- {
- "id":"229",
- "name":null,
- "source":"71",
- "target":"70"
- },
- {
- "id":"236",
- "name":null,
- "source":"72",
- "target":"11"
- },
- {
- "id":"234",
- "name":null,
- "source":"72",
- "target":"26"
- },
- {
- "id":"235",
- "name":null,
- "source":"72",
- "target":"27"
- },
- {
- "id":"237",
- "name":null,
- "source":"73",
- "target":"48"
- },
- {
- "id":"238",
- "name":null,
- "source":"74",
- "target":"48"
- },
- {
- "id":"239",
- "name":null,
- "source":"74",
- "target":"73"
- },
- {
- "id":"242",
- "name":null,
- "source":"75",
- "target":"25"
- },
- {
- "id":"244",
- "name":null,
- "source":"75",
- "target":"41"
- },
- {
- "id":null,
- "name":null,
- "source":"75",
- "target":"48"
- },
- {
- "id":"241",
- "name":null,
- "source":"75",
- "target":"68"
- },
- {
- "id":"240",
- "name":null,
- "source":"75",
- "target":"69"
- },
- {
- "id":"245",
- "name":null,
- "source":"75",
- "target":"70"
- },
- {
- "id":"246",
- "name":null,
- "source":"75",
- "target":"71"
- },
- {
- "id":"252",
- "name":null,
- "source":"76",
- "target":"48"
- },
- {
- "id":"253",
- "name":null,
- "source":"76",
- "target":"58"
- },
- {
- "id":"251",
- "name":null,
- "source":"76",
- "target":"62"
- },
- {
- "id":"250",
- "name":null,
- "source":"76",
- "target":"63"
- },
- {
- "id":"247",
- "name":null,
- "source":"76",
- "target":"64"
- },
- {
- "id":"248",
- "name":null,
- "source":"76",
- "target":"65"
- },
- {
- "id":"249",
- "name":null,
- "source":"76",
- "target":"66"
- }
- ],
- "categories":[
- {
- "name":"类目0"
- },
- {
- "name":"类目1"
- },
- {
- "name":"类目2"
- },
- {
- "name":"类目3"
- },
- {
- "name":"类目4"
- },
- {
- "name":"类目5"
- },
- {
- "name":"类目6"
- },
- {
- "name":"类目7"
- },
- {
- "name":"类目8"
- }
- ],
- "label":{
- "normal":{
- "position":"right"
- }
- },
- "symbol": "circle",
- "itemStyle": {
- normal: {
- opacity: 0.8
- }
- },
- lineStyle: {
- normal: {
- curveness: 0.3
- }
- }
- }
- ]
- }, {
- title: {
- text: '热力图'
- },
- xAxis: {
- type: 'category',
- data: ['12a', '1a', '2a', '3a', '4a', '5a', '6a',
- '7a', '8a', '9a','10a','11a', '12p']
- },
- yAxis: {
- type: 'category',
- data: ['周六', '周五', '周四', '周三', '周二', '周一', '周日']
- },
- visualMap: {
- min: 1,
- max: 10,
- calculable: true
- },
- grid: {
- left: 90,
- right: 20,
- top: 40,
- bottom: 40
- },
- series: [{
- name: '热度',
- type: 'heatmap',
- data: (function() {
- var data = [[0,0,5],[0,1,1],[0,2,3],[0,3,2],[0,4,1],[0,5,4],[0,6,6],
- [0,7,6],[0,8,4],[0,9,7],[0,10,0],[0,11,2],[1,0,7],[1,1,0],[1,2,0],
- [1,3,0],[1,4,5],[1,5,7],[1,6,9],[1,7,4],[1,8,7],[1,9,9],[1,10,5],
- [1,11,2],[2,0,7],[2,1,6],[2,2,5],[2,3,5],[2,4,9],[2,5,8],[2,6,0],
- [2,7,0],[2,8,0],[2,9,4],[2,10,3],[2,11,2],[3,0,7],[3,1,3],[3,2,0],
- [3,3,0],[3,4,3],[3,5,0],[3,6,4],[3,7,5],[3,8,1],[3,9,3],[3,10,5],
- [3,11,4],[3,12,7],[4,0,6],[4,1,3],[4,2,6],[4,3,0],[4,4,5],[4,5,1],
- [4,6,0],[4,7,0],[4,8,5],[4,9,2],[4,10,4],[4,11,4],[5,0,2],[5,1,1],
- [5,2,0],[5,3,3],[5,4,8],[5,5,4],[5,6,6],[5,7,0],[5,8,2],[5,9,0],
- [5,10,4],[5,11,1],[6,0,1],[6,1,0],[6,2,8],[6,3,6],[6,4,2],[6,5,0],
- [6,6,0],[6,7,8],[6,8,5],[6,9,10],[6,10,1],[6,11,0]];
- return data.map(function (item) {
- return [item[1], item[0], item[2] || '-'];
- });
- })(),
- label: {
- normal: {
- show: true
- }
- }
- }]
- }, {
- title: {
- text: '树图'
- },
- series: [{
- type: 'treemap',
- label: {
- show: true,
- formatter: '{b}'
- },
- roam: false,
- data: (function() {
- var data = [];
- for (var i = 0; i < groupCnt; ++i) {
- var children = [];
- var cSum = 0;
- for (var c = 0, clen = Math.ceil(Math.random() * 5); c < clen; ++c) {
- var grand = [];
- var gSum = 0;
- for (var g = 0, glen = Math.ceil(Math.random() * 3); g < glen;
- ++g) {
- var v = Math.ceil(Math.random() * 100);
- grand.push({
- value: v,
- name: (i + 1) + '-' + (c + 1) + '-' + (g + 1),
- path: (i + 1) + '/' + (i + 1) + '-' + (c + 1) + '/' +
- (i + 1) + '-' + (c + 1) + '-' + (g + 1)
- });
- gSum += v;
- }
- children.push({
- value: gSum,
- name: (i + 1) + '-' + (c + 1),
- path: (i + 1) + '/' + (i + 1) + '-' + (c + 1),
- children: grand
- });
- cSum += gSum;
- }
- data.push({
- value: cSum,
- name: '' + (i + 1),
- path: '' + (i + 1),
- children: children
- });
- }
- return data;
- })()
- }]
- }];
-
- for (var i = 0; i < options.length; ++i) {
- options[i].legend = options[i].legend || legend;
- options[i].tooltip = options[i].tooltip || tooltip;
- options[i].grid = options[i].grid || grid;
- }
- return options;
-}
diff --git a/app/scripts/options_en.js b/app/scripts/options_en.js
deleted file mode 100644
index 5892fb7..0000000
--- a/app/scripts/options_en.js
+++ /dev/null
@@ -1,3650 +0,0 @@
-function getOptions(vm) {
- var groupCnt = vm ? vm.theme.seriesCnt : 4;
- var axisCat = ['Mon', 'Tus', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
- var dataLength = axisCat.length;
- var getLegend = function() {
- var data = [];
- for (var i = 0; i < groupCnt; ++i) {
- data.push('Group ' + (i + 1));
- }
- return data;
- };
- var getLegendWithName = function() {
- var data = [];
- for (var i = 0; i < groupCnt; ++i) {
- data.push({
- name: 'Group ' + (i + 1)
- });
- }
- return data;
- };
- var legend = {
- data: getLegend(),
- right: 0
- };
- var getSeriesRandomValue = function(typeName) {
- var data = [];
- if (typeName === 'scatter') {
- var dlen = 32;
- } else {
- var dlen = dataLength;
- }
- for (var i = 0; i < groupCnt; ++i) {
- var group = [];
- for (var j = 0; j < dlen; ++j) {
- if (typeName === 'scatter') {
- var v = [Math.floor((Math.random() * 600 + 400) * (groupCnt - i) /
- groupCnt),
- Math.floor((Math.random() * 600 + 400) * (groupCnt - i) /
- groupCnt)];
- } else {
- var v = Math.floor((Math.random() * 600 + 400) * (groupCnt - i) /
- groupCnt);
- }
- group.push(v);
- }
- if (typeName === 'radar') {
- group = [group];
- }
- data.push({
- type: typeName,
- data: group,
- name: 'Group ' + (i + 1),
- markPoint: typeName === 'line' || typeName === 'bar' ||
- typeName === 'scatter' ? {
- data: [{
- name: 'Maximum',
- type: 'max'
- }]
- } : {}
- });
- }
- return data;
- };
- var getSeriesRandomStack = function(typeName) {
- var data = getSeriesRandomValue(typeName);
- for (var i = 0; i < data.length; ++i) {
- data[i].areaStyle = {normal: {}};
- data[i].stack = 'total';
- }
- return data;
- };
- var getSeriesRandomGroup = function(typeName) {
- var data = [];
- for (var i = 0; i < groupCnt; ++i) {
- data.push({
- name: legend.data[i],
- value: Math.floor((Math.random() * 800 + 200) * (groupCnt - i) /
- groupCnt)
- });
- }
- return {
- type: typeName,
- data: data
- };
- };
- var getIndicator = function() {
- var res = [];
- for (var i = 0; i < axisCat.length; ++i) {
- res.push({
- name: axisCat[i],
- max: 1000
- });
- }
- return res;
- }
-
- var toolbox = {
- feature: {
- restore: {
- show: true
- },
- saveAsImage: {
- show: true
- },
- dataView: {
- show: true
- },
- dataZoom: {
- show: true
- }
- }
- };
-
- var tooltip = {
- trigger: 'axis'
- };
-
- var grid = {
- left: 60,
- right: 20,
- top: 40,
- bottom: 50
- };
-
- var dataMap = {};
- function dataFormatter(obj) {
- var pList = ['Beijing','Tianjin','Hebei','Shanxi','Inner Mongolia','Jilin','Heilongjiang','Shanghai','Jiangsu'];
- var temp;
- for (var year = 2002; year <= 2007; year++) {
- var max = 0;
- var sum = 0;
- temp = obj[year];
- for (var i = 0, l = temp.length; i < l; i++) {
- max = Math.max(max, temp[i]);
- sum += temp[i];
- obj[year][i] = {
- name: pList[i],
- value: temp[i]
- }
- }
- obj[year + 'max'] = Math.floor(max / 100) * 100;
- obj[year + 'sum'] = sum;
- }
- return obj;
- }
-
- dataMap.dataPI = dataFormatter({
- //max : 4000,
- 2007:[101.26,110.19,1804.72,311.97,762.1,1133.42,783.8,915.38,101.84,1816.31],
- 2006:[88.8,103.35,1461.81,276.77,634.94,939.43,672.76,750.14,93.81,1545.05,925.1],
- 2005:[88.68,112.38,1400,262.42,589.56,882.41,625.61,684.6,90.26,1461.51,892.83],
- 2004:[87.36,105.28,1370.43,276.3,522.8,798.43,568.69,605.79,83.45,1367.58,814.1],
- 2003:[84.11,89.91,1064.05,215.19,420.1,615.8,488.23,504.8,81.02,1162.45,717.85],
- 2002:[82.44,84.21,956.84,197.8,374.69,590.2,446.17,474.2,79.68,1110.44]
- });
-
- dataMap.dataSI = dataFormatter({
- //max : 26600,
- 2007:[2509.4,2892.53,7201.88,3454.49,3193.67,5544.14,2475.45,3695.58,5571.06,14471.26],
- 2006:[2191.43,2457.08,6110.43,2755.66,2374.96,4566.83,1915.29,3365.31,4969.95,12282.89],
- 2005:[2026.51,2135.07,5271.57,2357.04,1773.21,3869.4,1580.83,2971.68,4381.2,10524.96],
- 2004:[1853.58,1685.93,4301.73,1919.4,1248.27,3061.62,1329.68,2487.04,3892.12,8437.99],
- 2003:[1487.15,1337.31,3417.56,1463.38,967.49,2898.89,1098.37,2084.7,3209.02,6787.11],
- 2002:[1249.99,1069.08,2911.69,1134.31,754.78,2609.85,943.49,1843.6,2622.45,5604.49]
- });
-
- dataMap.dataTI = dataFormatter({
- //max : 25000,
- 2007:[7236.15,2250.04,4600.72,2257.99,2467.41,4486.74,2025.44,2493.04,6821.11,9730.91],
- 2006:[5837.55,1902.31,3895.36,1846.18,1934.35,3798.26,1687.07,2096.35,5508.48,7914.11],
- 2005:[4854.33,1658.19,3340.54,1611.07,1542.26,3295.45,1413.83,1857.42,4776.2,6612.22],
- 2004:[4092.27,1319.76,2805.47,1375.67,1270,2811.95,1223.64,1657.77,4097.26,5198.03],
- 2003:[3435.95,1150.81,2439.68,1176.65,1000.79,2487.85,1075.48,1467.9,3404.19,4493.31],
- 2002:[2982.57,997.47,2149.75,992.69,811.47,2258.17,958.88,1319.4,3038.9,3891.92]
- });
-
- var options = [{
- title: {
- text: 'Line Chart',
- subtext: '(Subtitle here)'
- },
- series: getSeriesRandomValue('line'),
- xAxis: {
- type: 'category',
- data: axisCat
- },
- yAxis: {
- type: 'value'
- },
- grid: {
- left: 60,
- right: 20,
- top: 60,
- bottom: 50
- }
- }, {
- title: {
- text: 'Stacked Line Chart',
- subtext: '(Subtitle here)'
- },
- series: getSeriesRandomStack('line'),
- xAxis: {
- type: 'category',
- data: axisCat,
- boundaryGap: false
- },
- yAxis: {
- type: 'value'
- },
- grid: {
- left: 60,
- right: 20,
- top: 60,
- bottom: 50
- }
- }, {
- title: {
- text: 'Bar Chart'
- },
- series: getSeriesRandomValue('bar'),
- xAxis: {
- type: 'category',
- data: axisCat
- },
- yAxis: {
- type: 'value'
- }
- }, {
- title: {
- text: 'Stacked Bar Chart'
- },
- series: getSeriesRandomStack('bar'),
- xAxis: {
- type: 'category',
- data: axisCat
- },
- yAxis: {
- type: 'value'
- }
- }, {
- title: {
- text: 'Scatter Chart'
- },
- series: getSeriesRandomValue('scatter'),
- toolbox: (function() {
- var t = toolbox;
- t.left = 65;
- return t;
- })(),
- tooltip: {
- trigger: 'item'
- },
- xAxis: {
- type: 'value'
- },
- yAxis: {
- type: 'value'
- }
- }, {
- title: {
- text: 'Pie Chart'
- },
- series: getSeriesRandomGroup('pie'),
- tooltip: {
- trigger: 'item'
- }
- }, {
- title: {
- text: 'Radar Chart'
- },
- series: getSeriesRandomValue('radar'),
- radar: {
- indicator: getIndicator(),
- center: ['50%', '60%']
- }
- }, {
- baseOption: {
- timeline: {
- axisType: 'category',
- autoPlay: false,
- data: [
- '2002-01-01','2003-01-01','2004-01-01',
- {
- value: '2005-01-01',
- tooltip: {
- formatter: '{b} GDP reached a height.'
- }
- },
- '2006-01-01', '2007-01-01','2008-01-01','2009-01-01','2010-01-01',
- {
- value: '2011-01-01',
- tooltip: {
- formatter: function (params) {
- return params.name + 'GDP reached another height.';
- }
- }
- },
- ],
- label: {
- formatter : function(s) {
- return (new Date(s)).getFullYear();
- }
- }
- },
- tooltip: {},
- legend: {
- x: 'right',
- data: ['Primary Industry', 'Secondary Industry', 'Tertiary Industry']
- },
- calculable : true,
- grid: {
- top: 60,
- bottom: 75
- },
- xAxis: [
- {
- 'type':'category',
- 'axisLabel':{'interval':0},
- 'data':[
- 'Beijing','Tianjin','Hebei','Shanxi','Inner Mongolia','Jilin','Heilongjiang','Shanghai','Jiangsu'
- ],
- splitLine: {show: false}
- }
- ],
- yAxis: [
- {
- type: 'value',
- name: 'GDP (hundred million Yuan)'
- }
- ],
- series: [
- {name: 'Primary Industry', type: 'bar'},
- {name: 'Secondary Industry', type: 'bar'},
... 9989 lines suppressed ...
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org