274 lines
6.4 KiB
JavaScript
274 lines
6.4 KiB
JavaScript
|
/*
|
||
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||
|
* or more contributor license agreements. See the NOTICE file
|
||
|
* distributed with this work for additional information
|
||
|
* regarding copyright ownership. The ASF licenses this file
|
||
|
* to you under the Apache License, Version 2.0 (the
|
||
|
* "License"); you may not use this file except in compliance
|
||
|
* with the License. You may obtain a copy of the License at
|
||
|
*
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* Unless required by applicable law or agreed to in writing,
|
||
|
* software distributed under the License is distributed on an
|
||
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
* KIND, either express or implied. See the License for the
|
||
|
* specific language governing permissions and limitations
|
||
|
* under the License.
|
||
|
*/
|
||
|
|
||
|
export * from './src/echarts';
|
||
|
export * from './src/export';
|
||
|
|
||
|
import './src/component/dataset';
|
||
|
|
||
|
|
||
|
|
||
|
// ----------------------------------------------
|
||
|
// All of the modules that are allowed to be
|
||
|
// imported are listed below.
|
||
|
//
|
||
|
// Users MUST NOT import other modules that are
|
||
|
// not included in this list.
|
||
|
// ----------------------------------------------
|
||
|
|
||
|
|
||
|
|
||
|
// ----------------
|
||
|
// Charts (series)
|
||
|
// ----------------
|
||
|
|
||
|
|
||
|
|
||
|
// All of the series types, for example:
|
||
|
// chart.setOption({
|
||
|
// series: [{
|
||
|
// type: 'line' // or 'bar', 'pie', ...
|
||
|
// }]
|
||
|
// });
|
||
|
|
||
|
import './src/chart/line';
|
||
|
import './src/chart/bar';
|
||
|
import './src/chart/pie';
|
||
|
import './src/chart/scatter';
|
||
|
import './src/chart/radar';
|
||
|
import './src/chart/map';
|
||
|
import './src/chart/tree';
|
||
|
import './src/chart/treemap';
|
||
|
import './src/chart/graph';
|
||
|
import './src/chart/gauge';
|
||
|
import './src/chart/funnel';
|
||
|
import './src/chart/parallel';
|
||
|
import './src/chart/sankey';
|
||
|
import './src/chart/boxplot';
|
||
|
import './src/chart/candlestick';
|
||
|
import './src/chart/effectScatter';
|
||
|
import './src/chart/lines';
|
||
|
import './src/chart/heatmap';
|
||
|
import './src/chart/pictorialBar';
|
||
|
import './src/chart/themeRiver';
|
||
|
import './src/chart/sunburst';
|
||
|
import './src/chart/custom';
|
||
|
|
||
|
|
||
|
|
||
|
// -------------------
|
||
|
// Coordinate systems
|
||
|
// -------------------
|
||
|
|
||
|
|
||
|
|
||
|
// All of the axis modules have been included in the
|
||
|
// coordinate system module below, do not need to
|
||
|
// make extra import.
|
||
|
|
||
|
// `cartesian` coordinate system. For some historical
|
||
|
// reasons, it is named as grid, for example:
|
||
|
// chart.setOption({
|
||
|
// grid: {...},
|
||
|
// xAxis: {...},
|
||
|
// yAxis: {...},
|
||
|
// series: [{...}]
|
||
|
// });
|
||
|
import './src/component/grid';
|
||
|
|
||
|
// `polar` coordinate system, for example:
|
||
|
// chart.setOption({
|
||
|
// polar: {...},
|
||
|
// radiusAxis: {...},
|
||
|
// angleAxis: {...},
|
||
|
// series: [{
|
||
|
// coordinateSystem: 'polar'
|
||
|
// }]
|
||
|
// });
|
||
|
import './src/component/polar';
|
||
|
|
||
|
// `geo` coordinate system, for example:
|
||
|
// chart.setOption({
|
||
|
// geo: {...},
|
||
|
// series: [{
|
||
|
// coordinateSystem: 'geo'
|
||
|
// }]
|
||
|
// });
|
||
|
import './src/component/geo';
|
||
|
|
||
|
// `singleAxis` coordinate system (notice, it is a coordinate system
|
||
|
// with only one axis, work for chart like theme river), for example:
|
||
|
// chart.setOption({
|
||
|
// singleAxis: {...}
|
||
|
// series: [{type: 'themeRiver', ...}]
|
||
|
// });
|
||
|
import './src/component/singleAxis';
|
||
|
|
||
|
// `parallel` coordinate system, only work for parallel series, for example:
|
||
|
// chart.setOption({
|
||
|
// parallel: {...},
|
||
|
// parallelAxis: [{...}, ...],
|
||
|
// series: [{
|
||
|
// type: 'parallel'
|
||
|
// }]
|
||
|
// });
|
||
|
import './src/component/parallel';
|
||
|
|
||
|
// `calendar` coordinate system. for example,
|
||
|
// chart.setOptionp({
|
||
|
// calendar: {...},
|
||
|
// series: [{
|
||
|
// coordinateSystem: 'calendar'
|
||
|
// }]
|
||
|
// );
|
||
|
import './src/component/calendar';
|
||
|
|
||
|
|
||
|
|
||
|
// ------------------
|
||
|
// Other components
|
||
|
// ------------------
|
||
|
|
||
|
|
||
|
|
||
|
// `graphic` component, for example:
|
||
|
// chart.setOption({
|
||
|
// graphic: {...}
|
||
|
// });
|
||
|
import './src/component/graphic';
|
||
|
|
||
|
// `toolbox` component, for example:
|
||
|
// chart.setOption({
|
||
|
// toolbox: {...}
|
||
|
// });
|
||
|
import './src/component/toolbox';
|
||
|
|
||
|
// `tooltip` component, for example:
|
||
|
// chart.setOption({
|
||
|
// tooltip: {...}
|
||
|
// });
|
||
|
import './src/component/tooltip';
|
||
|
|
||
|
// `axisPointer` component, for example:
|
||
|
// chart.setOption({
|
||
|
// tooltip: {axisPointer: {...}, ...}
|
||
|
// });
|
||
|
// Or
|
||
|
// chart.setOption({
|
||
|
// axisPointer: {...}
|
||
|
// });
|
||
|
import './src/component/axisPointer';
|
||
|
|
||
|
// `brush` component, for example:
|
||
|
// chart.setOption({
|
||
|
// brush: {...}
|
||
|
// });
|
||
|
// Or
|
||
|
// chart.setOption({
|
||
|
// tooltip: {feature: {brush: {...}}
|
||
|
// })
|
||
|
import './src/component/brush';
|
||
|
|
||
|
// `title` component, for example:
|
||
|
// chart.setOption({
|
||
|
// title: {...}
|
||
|
// });
|
||
|
import './src/component/title';
|
||
|
|
||
|
// `timeline` component, for example:
|
||
|
// chart.setOption({
|
||
|
// timeline: {...}
|
||
|
// });
|
||
|
import './src/component/timeline';
|
||
|
|
||
|
// `markPoint` component, for example:
|
||
|
// chart.setOption({
|
||
|
// series: [{markPoint: {...}}]
|
||
|
// });
|
||
|
import './src/component/markPoint';
|
||
|
|
||
|
// `markLine` component, for example:
|
||
|
// chart.setOption({
|
||
|
// series: [{markLine: {...}}]
|
||
|
// });
|
||
|
import './src/component/markLine';
|
||
|
|
||
|
// `markArea` component, for example:
|
||
|
// chart.setOption({
|
||
|
// series: [{markArea: {...}}]
|
||
|
// });
|
||
|
import './src/component/markArea';
|
||
|
|
||
|
// `legend` component scrollable, for example:
|
||
|
// chart.setOption({
|
||
|
// legend: {type: 'scroll'}
|
||
|
// });
|
||
|
import './src/component/legendScroll';
|
||
|
|
||
|
// `legend` component not scrollable. for example:
|
||
|
// chart.setOption({
|
||
|
// legend: {...}
|
||
|
// });
|
||
|
import './src/component/legend';
|
||
|
|
||
|
// `dataZoom` component including both `dataZoomInside` and `dataZoomSlider`.
|
||
|
import './src/component/dataZoom';
|
||
|
|
||
|
// `dataZoom` component providing drag, pinch, wheel behaviors
|
||
|
// inside coodinate system, for example:
|
||
|
// chart.setOption({
|
||
|
// dataZoom: {type: 'inside'}
|
||
|
// });
|
||
|
import './src/component/dataZoomInside';
|
||
|
|
||
|
// `dataZoom` component providing a slider bar, for example:
|
||
|
// chart.setOption({
|
||
|
// dataZoom: {type: 'slider'}
|
||
|
// });
|
||
|
import './src/component/dataZoomSlider';
|
||
|
|
||
|
// `dataZoom` component including both `visualMapContinuous` and `visualMapPiecewise`.
|
||
|
import './src/component/visualMap';
|
||
|
|
||
|
// `visualMap` component providing continuous bar, for example:
|
||
|
// chart.setOption({
|
||
|
// visualMap: {type: 'continuous'}
|
||
|
// });
|
||
|
import './src/component/visualMapContinuous';
|
||
|
|
||
|
// `visualMap` component providing pieces bar, for example:
|
||
|
// chart.setOption({
|
||
|
// visualMap: {type: 'piecewise'}
|
||
|
// });
|
||
|
import './src/component/visualMapPiecewise';
|
||
|
|
||
|
|
||
|
|
||
|
// -----------------
|
||
|
// Render engines
|
||
|
// -----------------
|
||
|
|
||
|
|
||
|
|
||
|
// Provide IE 6,7,8 compatibility.
|
||
|
import 'zrender/src/vml/vml';
|
||
|
|
||
|
// Render via SVG rather than canvas.
|
||
|
import 'zrender/src/svg/svg';
|