commit | 26fce5f5b8c02f8e6e87a5c7fb7c1b9f484a5e8e | [log] [tgz] |
---|---|---|
author | Yi Shen <bm2736892@gmail.com> | Thu Nov 19 12:29:51 2020 +0800 |
committer | GitHub <noreply@github.com> | Thu Nov 19 12:29:51 2020 +0800 |
tree | 5e7f708fc5498ef60a5a5ddade661900d43849e3 | |
parent | 48bd46fdbce0407e97e31ed22d2c29f748ad603d [diff] | |
parent | 0b9b49f9b2561bf113a7244a474977209522295b [diff] |
Merge pull request #26 from apache/fix-scripts fix(scripts): `dev` script cannot run successfully on Windows.
npm install
npm run dev
npm run release
It will copy all the build resources to incubator-echarts-website/next/examples
common/config.js
local=1
in URL. For example: editor.html?c=area-basic&local=1
node tool/build-example.js
Only for default theme
node tool/build-example.js -t default
All test cases are in the public/data
folder. The comment in the header
/* title: Area Pieces titleCN: 折线图区域高亮 category: 'line, visualMap' */
describes the meta info of this example.
For example:
$.when( $.getScript(ROOT_PATH + '/data/asset/js/myTransform.js'), $.getScript('https://cdn.jsdelivr.net/npm/d3-contour@2.0.0/dist/d3-contour.jXs'), ).done(function () { // ... });
Use this code to enable controller panel for a example:
app.config = { aNameForTheSelectWidget: 'This is the initial value' aNameForTheRangeWidget: 45, aNameForTheButtonWidget: function () { // Do something. }, onChange: function () { // Do something. } }; app.configParameters = { aNameForTheSelectWidget: { options: [ 'This is the initial value', 'This is another value', 'This is the third value' ] }, aNameForTheRangeWidget: { min: -90, max: 90 } };
app.onresize = function () { // Do something. }
var width = myChart.getWidth(); var height = myChart.getHeight();