Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
3f093f7
feat(sankey): `sankey` support `edgeLabel`
susiwen8 Mar 29, 2022
ed36fbd
feat(sankey): set edge style to sankeyVisual
susiwen8 Mar 30, 2022
69ec4c8
Merge branch 'master' into 7233
susiwen8 May 2, 2022
1a23b9d
feat(sankey): `edgeLabel` only supports `inside`
susiwen8 May 5, 2022
a051e30
fix: markArea of bar series now covers whole category
jiawulin001 May 24, 2022
27c69b0
fix lint error
jiawulin001 May 24, 2022
8b8e166
Merge branch 'master' of https://github.com/apache/echarts into issue…
jiawulin001 Jun 7, 2022
6dbd5df
New testcase added
jiawulin001 Jun 7, 2022
b47d056
fix: markPoint now can show normally
jiawulin001 Jun 13, 2022
5186308
fix lint error
jiawulin001 Jun 13, 2022
d86c0e2
fix: fix the error caused by markArea x/y
jiawulin001 Jun 15, 2022
fe0555b
chore(deps): bump jsdom from 16.4.0 to 16.7.0
dependabot[bot] Jun 25, 2022
70db7c6
chore: resolve conflict
jiawulin001 Jul 23, 2022
4fe4561
fix: remove legend name duplicate to prevent double inverse bug
Aug 14, 2022
46cdb2b
fix: revert package-lock.json
Aug 15, 2022
59c206c
chore(lint): enforce consistent spacing after comment starts
Ovilia Sep 2, 2022
7808c95
chore(stale): issues with milestone TBD should not be marked as stale
Ovilia Sep 5, 2022
c914787
chore(stale): exclude all prs with milestones
Ovilia Sep 6, 2022
29a4fe9
Merge pull request #17616 from apache/fix-stale
plainheart Sep 6, 2022
2013476
fix(timeline): fix chart can't work when axis line is not shown.
plainheart Sep 14, 2022
c9e9a02
Merge pull request #17647 from apache/fix-timeline
Ovilia Sep 14, 2022
f51f1fe
Merge pull request #17282 from apache/dependabot/npm_and_yarn/jsdom-1…
Ovilia Sep 22, 2022
dc8f361
chore(deps): bump shelljs and jshint
dependabot[bot] Sep 22, 2022
10a8cd1
chore(deps): bump validator and @microsoft/api-extractor
dependabot[bot] Sep 22, 2022
56a989b
Merge pull request #17510 from caiwukun/fix_legend_name_duplicate_rem…
Ovilia Sep 22, 2022
9a1a486
Merge pull request #17684 from apache/dependabot/npm_and_yarn/validat…
Ovilia Sep 22, 2022
878e294
Merge pull request #17683 from apache/dependabot/npm_and_yarn/shelljs…
Ovilia Sep 22, 2022
9c00766
Merge pull request #17606 from apache/fix-lint
Ovilia Sep 23, 2022
583711e
Merge pull request #17098 from jiawulin001/issue#17021
Ovilia Sep 23, 2022
81cbfcb
test(gauge): add reproduce of #17663
ZeekoZhu Sep 24, 2022
e4fbb58
fix(gauge): add sectors in the order of the 'clockwise' option
ZeekoZhu Sep 24, 2022
0d58d5a
docs(extension/bmap): improve documentation of bmap extension.
plainheart Sep 25, 2022
bc32dc4
style(lint): fix spacing issues
plainheart Sep 25, 2022
080bdeb
fix(boxplot): remove empty `boxplotVisual`.
plainheart Sep 25, 2022
14521df
fix(chart): remove unused imports.
plainheart Sep 25, 2022
f98cbab
chore(workflow): add diff filter
plainheart Sep 25, 2022
3ca9e32
Merge pull request #17696 from apache/release
100pah Sep 25, 2022
c40ebbf
Merge pull request #17695 from apache/fix-lint
Ovilia Sep 26, 2022
9bbdb22
Merge pull request #17694 from apache/docs/extension-bmap
Ovilia Sep 26, 2022
204a04c
refactor(treemap): replace Array.forEach with each
ZeekoZhu Sep 27, 2022
213f7eb
Merge pull request #17691 from ZeekoZhu/echarts-17633
Ovilia Sep 28, 2022
91382c2
fix(pie): fix a NPE of `labelLine` when `minShowLabelRadian` is set.
plainheart Sep 29, 2022
81321a6
Merge pull request #17715 from apache/fix-pie
Ovilia Sep 29, 2022
728cf4e
feat(candlestick): provide borderColorDoji option for custom doji color
Ovilia Sep 29, 2022
96f859c
fix: #17667 EChartsInitOpts type error about height and width
Oct 5, 2022
db0f92a
Merge pull request #17727 from MainHou/master
Ovilia Oct 8, 2022
0495331
chore: fix some typos
plainheart Oct 8, 2022
a80fec3
fix(pie): fix percent isn't updated when the legend is changed
plainheart Oct 8, 2022
8c8a1a2
refactor(pie): mount `seats` on data inner
plainheart Oct 8, 2022
a840d46
Merge pull request #17734 from apache/fix/pie-percent
plainheart Oct 8, 2022
e79b4d4
Fix spelling mistake 'unkown' to 'unknown'
mountainash Oct 11, 2022
672c724
Merge pull request #17750 from mountainash/fix/unkown-spelling
plainheart Oct 11, 2022
d7ff8c5
chore: update deprecated nodejs v12 in favor of v16 and update action…
plainheart Oct 14, 2022
c61494f
Merge pull request #17764 from apache/action-node-version
plainheart Oct 14, 2022
069b692
fix: incorrect dataGroupId for old data items in universalTransition …
tyn1998 Oct 15, 2022
79dffe6
Merge pull request #16767 from susiwen8/7233
pissang Oct 16, 2022
28812d1
chore: fix some typos
striezel Oct 16, 2022
788e091
Merge pull request #17776 from striezel-stash/fix-typos
Ovilia Oct 17, 2022
004c3fa
Merge pull request #17717 from apache/fix-11042
Ovilia Oct 17, 2022
5309444
chore(workflow): always install the latest nightly version of zrender…
plainheart Oct 17, 2022
e780ba5
fix(lines): add missing `function` callback into `lineStyle.color` fo…
plainheart Oct 17, 2022
5cdbdd2
chore: fix a few typos
striezel Oct 17, 2022
06ccd5c
Merge pull request #17782 from striezel-stash/fix-typos
plainheart Oct 18, 2022
cd7ec4c
fix(nightly-build): update echarts & zrender version to real nightly …
plainheart Oct 18, 2022
dd7ce35
fix(graph): draggable only work on force layout
kongmoumou Oct 19, 2022
5d6910f
Merge pull request #17779 from apache/nightly-build
plainheart Oct 20, 2022
81cf154
fix(i18n): language code for Ukrainian is UK, not UA
striezel Oct 20, 2022
053f84c
Merge pull request #17800 from striezel-stash/i18n-ukrainian-language…
plainheart Oct 21, 2022
ff67cdc
fix(dataStack): zero is neither positive nor negative stack, close #1…
YuShengHou Oct 21, 2022
5267391
fix(i18n): language code for Ukrainian is UK, not UA
striezel Oct 22, 2022
3c11bf9
Merge pull request #17812 from striezel-stash/i18n-ukrainian-language…
Ovilia Oct 25, 2022
7f029b4
Merge pull request #17809 from MainHou/fix-17801
Ovilia Oct 25, 2022
3dd1342
fix(type): add overflow property to AxisLabelBaseOption interface. cl…
breizh24 Oct 21, 2022
0a5d50a
Merge pull request #17792 from kongmoumou/kongmoumou/fix-graph-draggable
Ovilia Oct 27, 2022
817b84d
Merge pull request #17808 from breizh24/fix-17363
Ovilia Oct 27, 2022
d3d142a
chore(nightly-build): fix potential npm publish error due to time con…
plainheart Nov 1, 2022
f215249
Merge pull request #17857 from apache/nightly-build
plainheart Nov 2, 2022
68b2862
fix(data): fix deprecated access to `HashMap.data` due to ecomfe/zren…
plainheart Nov 2, 2022
3f1de74
chore(dep): update zrender to the latest nightly version
plainheart Nov 4, 2022
9cb806a
chore: fix various typos
striezel Nov 4, 2022
9c4b742
Merge pull request #17873 from striezel-stash/fix-some-typos
plainheart Nov 5, 2022
273f3ed
Merge pull request #17861 from apache/fix/hashmap
pissang Nov 6, 2022
3b20b82
fix(tooltip): fix tooltip arrow may cover the content when border is …
plainheart Nov 6, 2022
0f86a10
fix(heatmap): fix heatmap label may overlap when the dataZoom is enabled
plainheart Nov 6, 2022
84a9de8
Merge pull request #17875 from apache/fix/tooltip-arrow
Ovilia Nov 7, 2022
c8d5a07
Merge pull request #17876 from apache/fix-heatmap
Ovilia Nov 7, 2022
0f149dc
chore: start a local server for testing when run dev #17868 (#17882)
Ovilia Nov 8, 2022
63dd98a
style: fix code style flaw and remove unnecessary default parameter. …
plainheart Nov 8, 2022
7fe9b73
Merge pull request #17887 from apache/fix/code-style-17098
Ovilia Nov 8, 2022
12636cd
chore: export `ECElementEvent` for Typescript
keita-determined Nov 9, 2022
3d69d6c
Merge pull request #17892 from keita-determined/chore/export-ECElemen…
plainheart Nov 9, 2022
1ed2b93
chore: fix some typos
striezel Nov 9, 2022
7bddbe5
Merge pull request #17896 from striezel-stash/fix-some-typos
Ovilia Nov 10, 2022
9a9a3ce
chore(deps): bump socket.io-parser from 3.3.2 to 3.3.3
dependabot[bot] Nov 10, 2022
e59f0b1
Merge pull request #17898 from apache/dependabot/npm_and_yarn/socket.…
plainheart Nov 10, 2022
32382f1
fix(marker): fix magic marker statistic type is not respected in `coo…
plainheart Nov 10, 2022
f0f2f7d
test(marker): add test case for `markArea`
plainheart Nov 10, 2022
77fc767
Merge branch 'master' of https://github.com/apache/echarts into issue…
plainheart Nov 10, 2022
729c399
chore: fix various typos
striezel Nov 10, 2022
c65acfb
Merge pull request #17904 from striezel-stash/fix-various-typos
plainheart Nov 11, 2022
34a8fca
Merge pull request #17217 from jiawulin001/issue#10074
plainheart Nov 11, 2022
59411cb
export GraphicComponentTextOption
lloydzhou Nov 12, 2022
523ddc0
Merge pull request #17780 from apache/fix/lines-type
plainheart Nov 13, 2022
381c6bc
Merge pull request #17906 from lloydzhou/patch-1
plainheart Nov 13, 2022
aabbcf4
chore: fix a few typos
striezel Nov 14, 2022
4df9ad3
Merge pull request #17913 from striezel-stash/fix-a-few-typos
plainheart Nov 14, 2022
4dcf755
fix(type): add `string` & `number` type into the `center` option of p…
plainheart Nov 15, 2022
7b62040
Merge pull request #17917 from apache/fix/pie-center-type
plainheart Nov 15, 2022
b2ee72d
fix(pie): fix `center` may not be converted to the correct point when…
plainheart Nov 15, 2022
a28b219
Merge pull request #17920 from apache/fix/pie-coordinate-system
plainheart Nov 15, 2022
ab39c8a
fix(dataZoom): fallback to extent start/end when parsed value or perc…
plainheart Nov 17, 2022
cb722ae
Merge pull request #17934 from apache/fix-datazoom
plainheart Nov 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc-common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ rules:
- 2
- "never"
space-unary-ops: 2
spaced-comment: 0
spaced-comment: "error"

max-nested-callbacks:
- 1
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [16.x]

steps:
- name: Fetch commit count
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Collect changed files
run: |
mkdir ~/tmp/
git diff ${{ github.event.pull_request.base.sha }} ${{ github.sha }} --name-only --relative '*src/**/*.ts' > ~/tmp/changed_files
git diff ${{ github.event.pull_request.base.sha }} ${{ github.sha }} --diff-filter=ACM --name-only --relative '*src/**/*.ts' > ~/tmp/changed_files
echo -e "Changed files: \n$(cat ~/tmp/changed_files)"

- name: Lint
Expand All @@ -58,7 +58,7 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [16.x]

steps:
- uses: actions/checkout@v3
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/nightly-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Nightly Next

on:
schedule:
- cron: '0 9 * * *' # After zrender nightly published
- cron: '10 9 * * *' # After zrender nightly published
# committers can manually trigger with workflow_dispatch
workflow_dispatch: {}
repository_dispatch:
Expand All @@ -15,24 +15,27 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: next

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
registry-url: https://registry.npmjs.org/
- name: Setup and publish nightly
run: |
node build/nightly/prepare.js --next
npm i zrender@npm:zrender-nightly@next
npm ci
npm ls zrender
node build/nightly/post.js
npm run release
npm run test
npm run test:dts
node build/prepareNightly.js --next
npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
11 changes: 7 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,24 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
registry-url: https://registry.npmjs.org/
- name: Setup and publish nightly
run: |
node build/nightly/prepare.js
npm i zrender@npm:zrender-nightly
npm ci
npm ls zrender
node build/nightly/post.js
npm run release
npm run test
npm run test:dts
node build/prepareNightly.js
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
28 changes: 14 additions & 14 deletions .github/workflows/source-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -26,15 +26,15 @@ jobs:
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Cache node modules
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}

- name: Prepare releaes materials
- name: Prepare release materials
run: |
npm i
node build/source-release/prepareReleaseMaterials.js \
Expand All @@ -44,7 +44,7 @@ jobs:
--out tmp/materials

- name: Archive materials
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: apache-echarts-${{env.RELEASE_VERSION}}-release-materials
path: |
Expand All @@ -56,13 +56,13 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -72,15 +72,15 @@ jobs:

# Get RELEASE_NOTE.txt and pack it into zip.
- name: Download materials
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: apache-echarts-${{env.RELEASE_VERSION}}-release-materials

# TODO Check release version is RC

# Archive before run others to avoid packing unknown files.
- name: Archive source release
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: apache-echarts-${{env.RELEASE_VERSION}}-src
path: |
Expand Down Expand Up @@ -109,11 +109,11 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [16.x]

steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -122,7 +122,7 @@ jobs:
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Download source release
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: apache-echarts-${{env.RELEASE_VERSION}}-src
path: tmp/echarts
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
if: ${{ github.repository_owner == 'apache' }}
steps:
- name: Close Stale Issues
uses: actions/stale@v5
uses: actions/stale@v6
with:
days-before-stale: 730
days-before-close: 7
Expand All @@ -26,5 +26,6 @@ jobs:
stale-pr-message: 'This PR has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this PR. We are sorry for this but 2 years is a long time and the code base has been changed a lot. Thanks for your contribution anyway.'
close-pr-message: 'This PR has been automatically closed because it has not had recent activity. Sorry for that and we are looking forward to your next contribution.'
exempt-issue-labels: 'FAQ,priority: high'
exempt-all-milestones: true
operations-per-run: 500
ascending: true
2 changes: 1 addition & 1 deletion .huskyrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"hooks": {
"pre-commit": "npm run lint && npm run checktype",
"pre-commit": "npm run lint && npm run checktype"
}
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ Execute the instructions in the root directory of the echarts:
npm install

# Rebuild source code immediately in watch mode when changing the source code.
# It opens the `./test` directory and you may open `-cases.html` to get the list
# of all test cases.
# If you wish to create a test case, run `npm run mktest:help` to learn more.
npm run dev

# Check correctness of TypeScript code.
Expand Down
14 changes: 9 additions & 5 deletions src/chart/boxplot/boxplotVisual.ts → build/nightly/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@
* under the License.
*/

import GlobalModel from '../../model/Global';
import ExtensionAPI from '../../core/ExtensionAPI';
import BoxplotSeriesModel from './BoxplotSeries';
const fs = require('fs');

export default function boxplotVisual(ecModel: GlobalModel, api: ExtensionAPI) {
const root = __dirname + '/../../';
const echartsPkg = JSON.parse(fs.readFileSync(root + 'package.json'), 'utf-8');
const zrenderPkg = JSON.parse(fs.readFileSync(root + 'node_modules/zrender/package.json', 'utf-8'));

}
const echartsCorePath = root + 'src/core/echarts.ts';
const echartsCoreFile = fs.readFileSync(echartsCorePath, 'utf-8')
.replace(/export const version = '\S+'/, `export const version = '${echartsPkg.version}'`)
.replace(/(export const dependencies = {\s+zrender: ')\S+('\s+})/, `$1${zrenderPkg.version}$2`);
fs.writeFileSync(echartsCorePath, echartsCoreFile, 'utf-8');
7 changes: 3 additions & 4 deletions build/prepareNightly.js → build/nightly/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


const fs = require('fs');
const packageJsonPath = __dirname + '/../package.json';
const packageJsonPath = __dirname + '/../../package.json';
const nightlyPackageName = 'echarts-nightly';

const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
Expand Down Expand Up @@ -57,8 +57,7 @@ packageJson.version = updateVersion(packageJson.version);

fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2), 'utf-8');


const readmePath = __dirname + '/../README.md';
const readmePath = __dirname + '/../../README.md';
const readmeAttention = `<h3>
<p><em>⚠️ ATTENTION PLEASE</em></p>
<p><em>This is nightly build of Apache ECharts. Please DON't use it in your production environment.</em></p>
Expand All @@ -70,4 +69,4 @@ ${readmeAttention}

${readmeContent}
`, 'utf-8');
}
}
4 changes: 2 additions & 2 deletions extension-src/bmap/BMapModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ export default echarts.extendComponentModel({

zoom: 5,

// 2.0 http://lbsyun.baidu.com/custom/index.htm
// 2.0 https://lbsyun.baidu.com/custom/index.htm
mapStyle: {},

// 3.0 http://lbsyun.baidu.com/index.php?title=open/custom
// 3.0 https://lbsyun.baidu.com/index.php?title=open/custom
mapStyleV2: {},

// See https://lbsyun.baidu.com/cms/jsapi/reference/jsapi_reference.html#a0b1
Expand Down
34 changes: 23 additions & 11 deletions extension-src/bmap/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 百度地图扩展

ECharts 百度地图扩展,可以在百度地图上展现 [点图](https://echarts.apache.org/zh/option.html#series-scatter),[线图](https://echarts.apache.org/zh/option.html#series-line),[热力图](https://echarts.apache.org/zh/option.html#series-heatmap) 等可视化。
ECharts 百度地图扩展,可以在百度地图上展现 [点图](https://echarts.apache.org/zh/option.html#series-scatter),[线图](https://echarts.apache.org/zh/option.html#series-lines),[热力图](https://echarts.apache.org/zh/option.html#series-heatmap) 等可视化。


### 示例
Expand All @@ -11,18 +11,19 @@ ECharts 百度地图扩展,可以在百度地图上展现 [点图](https://ech

[北京公交路线特效](https://echarts.apache.org/examples/zh/editor.html?c=lines-bmap-effect)

[北京公交路线特效](https://echarts.apache.org/examples/zh/editor.html?c=lines-bmap-effect)

[杭州热门步行路线](https://echarts.apache.org/examples/zh/editor.html?c=heatmap-bmap)

[在地图上显示分箱图](https://echarts.apache.org/examples/zh/editor.html?c=map-bin)


### 引入

可以直接引入打包好的扩展文件和百度地图的 jssdk

```html
<!--引入百度地图的jssdk,这里需要使用你在百度地图开发者平台申请的 ak-->
<script src="http://api.map.baidu.com/api?v=2.0&ak="></script>
<!-- 引入百度地图的 JS SDK,这里需要使用你在百度地图开发者平台申请的 ak -->
<!-- 如需使用百度地图 2.0 版本,请将 `v=3.0` 改为 `v=2.0` -->
<script src="https://api.map.baidu.com/api?v=3.0&ak="></script>
<!-- 引入 ECharts -->
<script src="dist/echarts.min.js"></script>
<!-- 引入百度地图扩展 -->
Expand All @@ -46,21 +47,32 @@ require('echarts/extension/bmap/bmap');
option = {
// 加载 bmap 组件
bmap: {
// 百度地图中心经纬度
// 百度地图中心经纬度。默认为 [104.114129, 37.550339]。
center: [120.13066322374, 30.240018034923],
// 百度地图缩放
// 百度地图缩放级别。默认为 5。
zoom: 14,
// 是否开启拖拽缩放,可以只设置 'scale' 或者 'move'
// 是否开启拖拽缩放,可以只设置 'scale' 或者 'move'。默认关闭。
roam: true,
// 百度地图的自定义样式,见 http://developer.baidu.com/map/jsdevelop-11.htm
mapStyle: {}
// 百度地图的旧版自定义样式,见 https://lbsyun.baidu.com/custom/index.htm
mapStyle: {},
// 百度地图 3.0 之后的新版自定义样式,见 https://lbsyun.baidu.com/index.php?title=open/custom
mapStyleV2: {},
// 百度地图的初始化配置,见 https://lbsyun.baidu.com/cms/jsapi/reference/jsapi_reference.html#a0b1
mapOptions: {
// 禁用百度地图自带的底图可点功能
enableMapClick: false
}
},
series: [{
type: 'scatter',
// 使用百度地图坐标系
coordinateSystem: 'bmap',
// 数据格式跟在 geo 坐标系上一样,每一项都是 [经度,纬度,数值大小,其它维度...]
data: [ [120, 30, 1] ]
data: [ [120, 30, 1] ],
// 编码数据项中第三个元素作为 value 维度
encode: {
value: 2
}
}]
}

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion i18n/langUA.js → i18n/langUK.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,6 @@ var localeObj = {
}
};

echarts.registerLocale('UA', localeObj);
echarts.registerLocale('UK', localeObj);

});
Loading