echarts 4.0.1 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jshintrc-dist +70 -0
- package/KEYS +74 -0
- package/LICENSE +223 -29
- package/NOTICE +5 -0
- package/README.md +22 -8
- package/build/addHeader.js +113 -0
- package/build/amd2common.js +19 -0
- package/build/build.js +19 -0
- package/build/config.js +25 -1
- package/build/mangleString.js +19 -0
- package/build/optimize.js +19 -0
- package/build/pre-publish.js +26 -3
- package/build/preamble.js +20 -0
- package/build/rollup-plugin-ec-lang.js +20 -0
- package/build/rollup-plugin-ec-remove-dev.js +19 -0
- package/dist/echarts-en.common.js +7106 -1621
- package/dist/echarts-en.common.min.js +21 -1
- package/dist/echarts-en.js +13949 -4217
- package/dist/echarts-en.js.map +1 -1
- package/dist/echarts-en.min.js +21 -1
- package/dist/echarts-en.simple.js +5206 -1375
- package/dist/echarts-en.simple.min.js +21 -1
- package/dist/echarts.common.js +7106 -1621
- package/dist/echarts.common.min.js +21 -1
- package/dist/echarts.js +13949 -4217
- package/dist/echarts.js.map +1 -1
- package/dist/echarts.min.js +21 -1
- package/dist/echarts.simple.js +5206 -1375
- package/dist/echarts.simple.min.js +21 -1
- package/dist/extension/bmap.js +76 -0
- package/dist/extension/bmap.js.map +1 -1
- package/dist/extension/bmap.min.js +20 -0
- package/dist/extension/dataTool.js +95 -0
- package/dist/extension/dataTool.js.map +1 -1
- package/dist/extension/dataTool.min.js +20 -0
- package/echarts.all.js +19 -0
- package/echarts.blank.js +19 -0
- package/echarts.common.js +19 -0
- package/echarts.simple.js +19 -0
- package/extension/bmap/BMapCoordSys.js +19 -0
- package/extension/bmap/BMapModel.js +18 -0
- package/extension/bmap/BMapView.js +18 -0
- package/extension/bmap/bmap.js +19 -0
- package/extension/dataTool/gexf.js +18 -0
- package/extension/dataTool/index.js +19 -0
- package/extension/dataTool/prepareBoxplotData.js +19 -0
- package/extension/dataTool/quantile.js +19 -0
- package/extension/echarts.js +19 -0
- package/extension/webpack.config.js +19 -0
- package/extension-src/bmap/BMapCoordSys.js +19 -0
- package/extension-src/bmap/BMapModel.js +19 -0
- package/extension-src/bmap/BMapView.js +19 -0
- package/extension-src/bmap/bmap.js +19 -0
- package/extension-src/dataTool/gexf.js +19 -0
- package/extension-src/dataTool/index.js +19 -0
- package/extension-src/dataTool/prepareBoxplotData.js +19 -0
- package/extension-src/dataTool/quantile.js +19 -0
- package/index.common.js +19 -0
- package/index.js +19 -0
- package/index.simple.js +19 -0
- package/lib/CoordinateSystem.js +18 -0
- package/lib/ExtensionAPI.js +18 -0
- package/lib/action/createDataSelectAction.js +18 -0
- package/lib/action/geoRoam.js +19 -0
- package/lib/action/roamHelper.js +19 -0
- package/lib/chart/bar/BarSeries.js +42 -1
- package/lib/chart/bar/BarView.js +120 -15
- package/lib/chart/bar/BaseBarSeries.js +22 -0
- package/lib/chart/bar/PictorialBarSeries.js +18 -0
- package/lib/chart/bar/PictorialBarView.js +19 -0
- package/lib/chart/bar/barItemStyle.js +18 -0
- package/lib/chart/bar/helper.js +18 -0
- package/lib/chart/bar.js +28 -7
- package/lib/chart/boxplot/BoxplotSeries.js +35 -1
- package/lib/chart/boxplot/BoxplotView.js +128 -21
- package/lib/chart/boxplot/boxplotLayout.js +70 -63
- package/lib/chart/boxplot/boxplotVisual.js +18 -0
- package/lib/chart/boxplot.js +18 -0
- package/lib/chart/candlestick/CandlestickSeries.js +38 -4
- package/lib/chart/candlestick/CandlestickView.js +236 -22
- package/lib/chart/candlestick/candlestickLayout.js +143 -83
- package/lib/chart/candlestick/candlestickVisual.js +59 -14
- package/lib/chart/candlestick/preprocessor.js +18 -0
- package/lib/chart/candlestick.js +18 -0
- package/lib/chart/chord/ChordSeries.js +18 -0
- package/lib/chart/chord/ChordView.js +18 -0
- package/lib/chart/chord/Ribbon.js +18 -0
- package/lib/chart/chord/chordCircularLayout.js +19 -0
- package/lib/chart/chord.js +18 -0
- package/lib/chart/custom.js +20 -2
- package/lib/chart/effectScatter/EffectScatterSeries.js +18 -0
- package/lib/chart/effectScatter/EffectScatterView.js +18 -0
- package/lib/chart/effectScatter.js +18 -0
- package/lib/chart/funnel/FunnelSeries.js +19 -0
- package/lib/chart/funnel/FunnelView.js +19 -0
- package/lib/chart/funnel/funnelLayout.js +18 -0
- package/lib/chart/funnel.js +18 -0
- package/lib/chart/gauge/GaugeSeries.js +18 -0
- package/lib/chart/gauge/GaugeView.js +18 -0
- package/lib/chart/gauge/PointerPath.js +18 -0
- package/lib/chart/graph/GraphSeries.js +25 -1
- package/lib/chart/graph/GraphView.js +18 -0
- package/lib/chart/graph/adjustEdge.js +18 -0
- package/lib/chart/graph/backwardCompat.js +18 -0
- package/lib/chart/graph/categoryFilter.js +18 -0
- package/lib/chart/graph/categoryVisual.js +18 -0
- package/lib/chart/graph/circularLayout.js +18 -0
- package/lib/chart/graph/circularLayoutHelper.js +18 -0
- package/lib/chart/graph/createView.js +18 -0
- package/lib/chart/graph/edgeVisual.js +18 -0
- package/lib/chart/graph/forceHelper.js +18 -0
- package/lib/chart/graph/forceLayout.js +18 -0
- package/lib/chart/graph/graphAction.js +19 -0
- package/lib/chart/graph/simpleLayout.js +18 -0
- package/lib/chart/graph/simpleLayoutHelper.js +18 -0
- package/lib/chart/graph.js +18 -0
- package/lib/chart/heatmap/HeatmapLayer.js +19 -0
- package/lib/chart/heatmap/HeatmapSeries.js +21 -1
- package/lib/chart/heatmap/HeatmapView.js +18 -0
- package/lib/chart/helper/EffectLine.js +19 -0
- package/lib/chart/helper/EffectPolyline.js +19 -0
- package/lib/chart/helper/EffectSymbol.js +19 -0
- package/lib/chart/helper/LargeLineDraw.js +18 -0
- package/lib/chart/helper/LargeSymbolDraw.js +18 -0
- package/lib/chart/helper/Line.js +31 -13
- package/lib/chart/helper/LineDraw.js +26 -1
- package/lib/chart/helper/LinePath.js +19 -0
- package/lib/chart/helper/Polyline.js +19 -0
- package/lib/chart/helper/Symbol.js +63 -12
- package/lib/chart/helper/SymbolDraw.js +65 -18
- package/lib/chart/helper/createGraphFromNodeEdge.js +27 -3
- package/lib/chart/helper/createGraphFromNodeMatrix.js +19 -0
- package/lib/chart/helper/createListFromArray.js +33 -8
- package/lib/chart/helper/createListSimply.js +19 -0
- package/lib/chart/helper/createRenderPlanner.js +22 -3
- package/lib/chart/helper/labelHelper.js +19 -0
- package/lib/chart/helper/treeHelper.js +18 -0
- package/lib/chart/helper/whiskerBoxCommon.js +20 -21
- package/lib/chart/line/LineSeries.js +32 -11
- package/lib/chart/line/LineView.js +165 -102
- package/lib/chart/line/helper.js +117 -0
- package/lib/chart/line/lineAnimationDiff.js +31 -32
- package/lib/chart/line/poly.js +136 -0
- package/lib/chart/line.js +18 -0
- package/lib/chart/lines/LinesSeries.js +25 -6
- package/lib/chart/lines/LinesView.js +20 -1
- package/lib/chart/lines/linesLayout.js +19 -1
- package/lib/chart/lines/linesVisual.js +18 -0
- package/lib/chart/lines.js +18 -0
- package/lib/chart/map/MapSeries.js +45 -8
- package/lib/chart/map/MapView.js +18 -0
- package/lib/chart/map/backwardCompat.js +18 -0
- package/lib/chart/map/mapDataStatistic.js +18 -0
- package/lib/chart/map/mapSymbolLayout.js +18 -0
- package/lib/chart/map/mapVisual.js +18 -0
- package/lib/chart/map.js +18 -0
- package/lib/chart/parallel/ParallelSeries.js +20 -7
- package/lib/chart/parallel/ParallelView.js +86 -55
- package/lib/chart/parallel/parallelVisual.js +38 -15
- package/lib/chart/parallel.js +18 -0
- package/lib/chart/pictorialBar.js +18 -0
- package/lib/chart/pie/PieSeries.js +39 -2
- package/lib/chart/pie/PieView.js +19 -0
- package/lib/chart/pie/labelLayout.js +18 -0
- package/lib/chart/pie/pieLayout.js +19 -1
- package/lib/chart/pie.js +18 -0
- package/lib/chart/radar/RadarSeries.js +21 -2
- package/lib/chart/radar/RadarView.js +18 -0
- package/lib/chart/radar/backwardCompat.js +18 -0
- package/lib/chart/radar/radarLayout.js +19 -1
- package/lib/chart/radar.js +18 -0
- package/lib/chart/sankey/SankeySeries.js +26 -0
- package/lib/chart/sankey/SankeyView.js +62 -10
- package/lib/chart/sankey/sankeyAction.js +34 -0
- package/lib/chart/sankey/sankeyLayout.js +68 -19
- package/lib/chart/sankey/sankeyVisual.js +49 -19
- package/lib/chart/sankey.js +20 -0
- package/lib/chart/scatter/ScatterSeries.js +20 -2
- package/lib/chart/scatter/ScatterView.js +18 -0
- package/lib/chart/scatter.js +18 -0
- package/lib/chart/sunburst/SunburstPiece.js +70 -19
- package/lib/chart/sunburst/SunburstSeries.js +18 -0
- package/lib/chart/sunburst/SunburstView.js +39 -20
- package/lib/chart/sunburst/sunburstAction.js +19 -0
- package/lib/chart/sunburst/sunburstLayout.js +18 -0
- package/lib/chart/sunburst.js +18 -0
- package/lib/chart/themeRiver/ThemeRiverSeries.js +19 -1
- package/lib/chart/themeRiver/ThemeRiverView.js +19 -0
- package/lib/chart/themeRiver/themeRiverLayout.js +19 -0
- package/lib/chart/themeRiver/themeRiverVisual.js +19 -0
- package/lib/chart/themeRiver.js +18 -0
- package/lib/chart/tree/TreeSeries.js +40 -3
- package/lib/chart/tree/TreeView.js +32 -6
- package/lib/chart/tree/layoutHelper.js +19 -0
- package/lib/chart/tree/traversalHelper.js +19 -0
- package/lib/chart/tree/treeAction.js +18 -0
- package/lib/chart/tree/treeLayout.js +137 -0
- package/lib/chart/tree.js +20 -5
- package/lib/chart/treemap/Breadcrumb.js +19 -0
- package/lib/chart/treemap/TreemapSeries.js +18 -0
- package/lib/chart/treemap/TreemapView.js +18 -0
- package/lib/chart/treemap/helper.js +18 -0
- package/lib/chart/treemap/treemapAction.js +19 -0
- package/lib/chart/treemap/treemapLayout.js +18 -0
- package/lib/chart/treemap/treemapVisual.js +18 -0
- package/lib/chart/treemap.js +18 -0
- package/lib/component/axis/AngleAxisView.js +59 -27
- package/lib/component/axis/AxisBuilder.js +59 -73
- package/lib/component/axis/AxisView.js +19 -0
- package/lib/component/axis/CartesianAxisView.js +71 -39
- package/lib/component/axis/ParallelAxisView.js +18 -0
- package/lib/component/axis/RadiusAxisView.js +26 -4
- package/lib/component/axis/SingleAxisView.js +25 -14
- package/lib/component/axis/parallelAxisAction.js +19 -0
- package/lib/component/axisPointer/AxisPointerModel.js +18 -0
- package/lib/component/axisPointer/AxisPointerView.js +18 -0
- package/lib/component/axisPointer/BaseAxisPointer.js +19 -0
- package/lib/component/axisPointer/CartesianAxisPointer.js +20 -2
- package/lib/component/axisPointer/PolarAxisPointer.js +19 -1
- package/lib/component/axisPointer/SingleAxisPointer.js +19 -1
- package/lib/component/axisPointer/axisTrigger.js +20 -1
- package/lib/component/axisPointer/findPointFromSeries.js +19 -0
- package/lib/component/axisPointer/globalListener.js +19 -0
- package/lib/component/axisPointer/modelHelper.js +20 -1
- package/lib/component/axisPointer/viewHelper.js +20 -0
- package/lib/component/axisPointer.js +18 -0
- package/lib/component/brush/BrushModel.js +25 -1
- package/lib/component/brush/BrushView.js +23 -0
- package/lib/component/brush/brushAction.js +19 -0
- package/lib/component/brush/preprocessor.js +18 -0
- package/lib/component/brush/selector.js +18 -0
- package/lib/component/brush/visualEncoding.js +18 -0
- package/lib/component/brush.js +19 -0
- package/lib/component/calendar/CalendarView.js +18 -0
- package/lib/component/dataZoom/AxisProxy.js +42 -23
- package/lib/component/dataZoom/DataZoomModel.js +18 -0
- package/lib/component/dataZoom/DataZoomView.js +18 -0
- package/lib/component/dataZoom/InsideZoomModel.js +18 -0
- package/lib/component/dataZoom/InsideZoomView.js +36 -13
- package/lib/component/dataZoom/SelectZoomModel.js +18 -0
- package/lib/component/dataZoom/SelectZoomView.js +18 -0
- package/lib/component/dataZoom/SliderZoomModel.js +18 -0
- package/lib/component/dataZoom/SliderZoomView.js +29 -6
- package/lib/component/dataZoom/dataZoomAction.js +18 -0
- package/lib/component/dataZoom/dataZoomProcessor.js +23 -1
- package/lib/component/dataZoom/helper.js +18 -0
- package/lib/component/dataZoom/history.js +18 -0
- package/lib/component/dataZoom/roams.js +19 -18
- package/lib/component/dataZoom/typeDefaulter.js +18 -0
- package/lib/component/dataset.js +56 -3
- package/lib/component/geo/GeoView.js +18 -0
- package/lib/component/geo.js +18 -0
- package/lib/component/graphic.js +18 -0
- package/lib/component/gridSimple.js +18 -0
- package/lib/component/helper/BrushController.js +18 -0
- package/lib/component/helper/BrushTargetManager.js +18 -0
- package/lib/component/helper/MapDraw.js +18 -0
- package/lib/component/helper/RoamController.js +19 -0
- package/lib/component/helper/brushHelper.js +18 -0
- package/lib/component/helper/cursorHelper.js +18 -0
- package/lib/component/helper/interactionMutex.js +18 -0
- package/lib/component/helper/listComponent.js +19 -0
- package/lib/component/helper/roamHelper.js +19 -0
- package/lib/component/helper/selectableMixin.js +21 -16
- package/lib/component/helper/sliderMove.js +19 -0
- package/lib/component/legend/LegendModel.js +25 -6
- package/lib/component/legend/LegendView.js +41 -12
- package/lib/component/legend/ScrollableLegendModel.js +19 -0
- package/lib/component/legend/ScrollableLegendView.js +19 -0
- package/lib/component/legend/legendAction.js +18 -0
- package/lib/component/legend/legendFilter.js +18 -0
- package/lib/component/legend/scrollableLegendAction.js +19 -0
- package/lib/component/legend.js +18 -0
- package/lib/component/markArea.js +18 -0
- package/lib/component/markLine.js +18 -0
- package/lib/component/markPoint.js +18 -0
- package/lib/component/marker/MarkAreaModel.js +18 -0
- package/lib/component/marker/MarkAreaView.js +20 -2
- package/lib/component/marker/MarkLineModel.js +18 -0
- package/lib/component/marker/MarkLineView.js +20 -2
- package/lib/component/marker/MarkPointModel.js +18 -0
- package/lib/component/marker/MarkPointView.js +20 -4
- package/lib/component/marker/MarkerModel.js +19 -1
- package/lib/component/marker/MarkerView.js +18 -0
- package/lib/component/marker/markerHelper.js +58 -17
- package/lib/component/parallel.js +18 -0
- package/lib/component/polar.js +18 -0
- package/lib/component/radar/RadarView.js +22 -4
- package/lib/component/singleAxis.js +18 -0
- package/lib/component/timeline/SliderTimelineModel.js +18 -0
- package/lib/component/timeline/SliderTimelineView.js +42 -33
- package/lib/component/timeline/TimelineAxis.js +24 -35
- package/lib/component/timeline/TimelineModel.js +18 -0
- package/lib/component/timeline/TimelineView.js +18 -0
- package/lib/component/timeline/preprocessor.js +18 -0
- package/lib/component/timeline/timelineAction.js +18 -0
- package/lib/component/timeline/typeDefaulter.js +18 -0
- package/lib/component/timeline.js +19 -0
- package/lib/component/title.js +19 -0
- package/lib/component/toolbox/ToolboxModel.js +20 -2
- package/lib/component/toolbox/ToolboxView.js +18 -0
- package/lib/component/toolbox/feature/Brush.js +18 -0
- package/lib/component/toolbox/feature/DataView.js +18 -0
- package/lib/component/toolbox/feature/DataZoom.js +22 -1
- package/lib/component/toolbox/feature/MagicType.js +18 -0
- package/lib/component/toolbox/feature/Restore.js +18 -0
- package/lib/component/toolbox/feature/SaveAsImage.js +18 -0
- package/lib/component/toolbox/featureManager.js +18 -0
- package/lib/component/tooltip/TooltipContent.js +18 -0
- package/lib/component/tooltip/TooltipModel.js +18 -0
- package/lib/component/tooltip/TooltipView.js +19 -1
- package/lib/component/tooltip.js +18 -0
- package/lib/component/visualMap/ContinuousModel.js +19 -1
- package/lib/component/visualMap/ContinuousView.js +18 -0
- package/lib/component/visualMap/PiecewiseModel.js +20 -1
- package/lib/component/visualMap/PiecewiseView.js +18 -0
- package/lib/component/visualMap/VisualMapModel.js +32 -1
- package/lib/component/visualMap/VisualMapView.js +18 -0
- package/lib/component/visualMap/helper.js +19 -0
- package/lib/component/visualMap/preprocessor.js +18 -0
- package/lib/component/visualMap/typeDefaulter.js +18 -0
- package/lib/component/visualMap/visualEncoding.js +21 -1
- package/lib/component/visualMap/visualMapAction.js +18 -0
- package/lib/component/visualMapContinuous.js +19 -0
- package/lib/component/visualMapPiecewise.js +19 -0
- package/lib/config.js +18 -0
- package/lib/coord/Axis.js +166 -87
- package/lib/coord/View.js +19 -0
- package/lib/coord/axisDefault.js +52 -42
- package/lib/coord/axisHelper.js +136 -89
- package/lib/coord/axisModelCommonMixin.js +18 -8
- package/lib/coord/axisModelCreator.js +26 -3
- package/lib/coord/axisTickLabelBuilder.js +350 -0
- package/lib/coord/calendar/Calendar.js +20 -2
- package/lib/coord/calendar/CalendarModel.js +19 -0
- package/lib/coord/calendar/prepareCustom.js +18 -0
- package/lib/coord/cartesian/Axis2D.js +24 -16
- package/lib/coord/cartesian/AxisModel.js +18 -0
- package/lib/coord/cartesian/Cartesian.js +19 -0
- package/lib/coord/cartesian/Cartesian2D.js +26 -4
- package/lib/coord/cartesian/Grid.js +71 -79
- package/lib/coord/cartesian/GridModel.js +18 -0
- package/lib/{component/axis → coord/cartesian}/cartesianAxisHelper.js +29 -9
- package/lib/coord/cartesian/prepareCustom.js +18 -0
- package/lib/coord/geo/Geo.js +18 -0
- package/lib/coord/geo/GeoModel.js +18 -0
- package/lib/coord/geo/Region.js +19 -0
- package/lib/coord/geo/fix/diaoyuIsland.js +18 -0
- package/lib/coord/geo/fix/geoCoord.js +18 -0
- package/lib/coord/geo/fix/nanhai.js +18 -0
- package/lib/coord/geo/fix/textCoord.js +18 -0
- package/lib/coord/geo/geoCreator.js +19 -0
- package/lib/coord/geo/parseGeoJson.js +19 -0
- package/lib/coord/geo/prepareCustom.js +23 -3
- package/lib/coord/parallel/AxisModel.js +31 -4
- package/lib/coord/parallel/Parallel.js +35 -12
- package/lib/coord/parallel/ParallelAxis.js +19 -0
- package/lib/coord/parallel/ParallelModel.js +18 -0
- package/lib/coord/parallel/parallelCreator.js +19 -0
- package/lib/coord/parallel/parallelPreprocessor.js +18 -0
- package/lib/coord/polar/AngleAxis.js +18 -0
- package/lib/coord/polar/AxisModel.js +18 -0
- package/lib/coord/polar/Polar.js +19 -0
- package/lib/coord/polar/PolarModel.js +18 -0
- package/lib/coord/polar/RadiusAxis.js +18 -0
- package/lib/coord/polar/polarCreator.js +24 -3
- package/lib/coord/polar/prepareCustom.js +18 -0
- package/lib/coord/radar/IndicatorAxis.js +18 -0
- package/lib/coord/radar/Radar.js +18 -0
- package/lib/coord/radar/RadarModel.js +18 -0
- package/lib/coord/single/AxisModel.js +18 -0
- package/lib/coord/single/Single.js +19 -0
- package/lib/coord/single/SingleAxis.js +19 -5
- package/lib/coord/single/prepareCustom.js +18 -0
- package/lib/{component/axis → coord/single}/singleAxisHelper.js +20 -2
- package/lib/coord/single/singleCreator.js +19 -0
- package/lib/data/DataDiffer.js +18 -0
- package/lib/data/Graph.js +19 -0
- package/lib/data/List.js +413 -201
- package/lib/data/OrdinalMeta.js +19 -0
- package/lib/data/Source.js +19 -0
- package/lib/data/Tree.js +19 -0
- package/lib/data/helper/completeDimensions.js +63 -22
- package/lib/data/helper/createDimensions.js +23 -4
- package/lib/data/helper/dataProvider.js +63 -6
- package/lib/data/helper/dataStackHelper.js +162 -0
- package/lib/data/helper/dimensionHelper.js +46 -10
- package/lib/data/helper/linkList.js +19 -0
- package/lib/data/helper/sourceHelper.js +19 -0
- package/lib/data/helper/sourceType.js +18 -0
- package/lib/echarts.js +128 -118
- package/lib/export.js +19 -0
- package/lib/helper.js +41 -0
- package/lib/lang.js +18 -0
- package/lib/langEN.js +18 -0
- package/lib/langFI.js +18 -0
- package/lib/langTH.js +18 -0
- package/lib/layout/barGrid.js +178 -53
- package/lib/layout/barPolar.js +88 -71
- package/lib/layout/points.js +39 -4
- package/lib/loading/default.js +18 -0
- package/lib/model/Component.js +19 -0
- package/lib/model/Global.js +30 -2
- package/lib/model/Model.js +19 -0
- package/lib/model/OptionManager.js +19 -0
- package/lib/model/Series.js +23 -5
- package/lib/model/globalDefault.js +21 -5
- package/lib/model/mixin/areaStyle.js +18 -0
- package/lib/model/mixin/boxLayout.js +18 -0
- package/lib/model/mixin/colorPalette.js +27 -0
- package/lib/model/mixin/dataFormat.js +20 -1
- package/lib/model/mixin/itemStyle.js +18 -0
- package/lib/model/mixin/lineStyle.js +18 -0
- package/lib/model/mixin/makeStyleMapper.js +18 -0
- package/lib/model/mixin/textStyle.js +18 -0
- package/lib/model/referHelper.js +19 -0
- package/lib/preprocessor/backwardCompat.js +18 -0
- package/lib/preprocessor/helper/compatStyle.js +42 -15
- package/lib/processor/dataFilter.js +19 -1
- package/lib/processor/dataSample.js +27 -5
- package/lib/processor/dataStack.js +118 -0
- package/lib/scale/Interval.js +19 -14
- package/lib/scale/Log.js +22 -3
- package/lib/scale/Ordinal.js +27 -2
- package/lib/scale/Scale.js +27 -16
- package/lib/scale/Time.js +18 -0
- package/lib/scale/helper.js +19 -0
- package/lib/stream/Scheduler.js +123 -37
- package/lib/stream/task.js +165 -14
- package/lib/theme/dark.js +18 -0
- package/lib/theme/light.js +18 -0
- package/lib/util/KDTree.js +19 -0
- package/lib/util/animation.js +19 -0
- package/lib/util/array/nest.js +19 -0
- package/lib/util/clazz.js +18 -0
- package/lib/util/component.js +19 -0
- package/lib/util/format.js +36 -11
- package/lib/util/graphic.js +19 -0
- package/lib/util/layout.js +18 -0
- package/lib/util/model.js +33 -6
- package/lib/util/number.js +18 -0
- package/lib/util/quickSelect.js +19 -0
- package/lib/util/symbol.js +18 -0
- package/lib/util/throttle.js +26 -1
- package/lib/view/Chart.js +44 -7
- package/lib/view/Component.js +18 -0
- package/lib/visual/VisualMapping.js +28 -0
- package/lib/visual/aria.js +18 -0
- package/lib/visual/dataColor.js +19 -1
- package/lib/visual/seriesColor.js +19 -1
- package/lib/visual/symbol.js +28 -2
- package/lib/visual/visualDefault.js +19 -0
- package/lib/visual/visualSolution.js +24 -3
- package/licenses/LICENSE-d3 +27 -0
- package/licenses/LICENSE-zrender +29 -0
- package/map/js/china-contour.js +19 -0
- package/map/js/china.js +19 -0
- package/map/js/province/anhui.js +19 -0
- package/map/js/province/aomen.js +19 -0
- package/map/js/province/beijing.js +19 -0
- package/map/js/province/chongqing.js +19 -0
- package/map/js/province/fujian.js +19 -0
- package/map/js/province/gansu.js +19 -0
- package/map/js/province/guangdong.js +19 -0
- package/map/js/province/guangxi.js +19 -0
- package/map/js/province/guizhou.js +19 -0
- package/map/js/province/hainan.js +19 -0
- package/map/js/province/hebei.js +19 -0
- package/map/js/province/heilongjiang.js +19 -0
- package/map/js/province/henan.js +19 -0
- package/map/js/province/hubei.js +19 -0
- package/map/js/province/hunan.js +19 -0
- package/map/js/province/jiangsu.js +19 -0
- package/map/js/province/jiangxi.js +19 -0
- package/map/js/province/jilin.js +19 -0
- package/map/js/province/liaoning.js +19 -0
- package/map/js/province/neimenggu.js +19 -0
- package/map/js/province/ningxia.js +19 -0
- package/map/js/province/qinghai.js +19 -0
- package/map/js/province/shandong.js +19 -0
- package/map/js/province/shanghai.js +19 -0
- package/map/js/province/shanxi.js +19 -0
- package/map/js/province/shanxi1.js +19 -0
- package/map/js/province/sichuan.js +19 -0
- package/map/js/province/taiwan.js +19 -0
- package/map/js/province/tianjin.js +19 -0
- package/map/js/province/xianggang.js +19 -0
- package/map/js/province/xinjiang.js +19 -0
- package/map/js/province/xizang.js +19 -0
- package/map/js/province/yunnan.js +19 -0
- package/map/js/province/zhejiang.js +19 -0
- package/map/js/world.js +19 -0
- package/package.json +3 -3
- package/src/CoordinateSystem.js +19 -0
- package/src/ExtensionAPI.js +19 -0
- package/src/action/createDataSelectAction.js +19 -0
- package/src/action/geoRoam.js +19 -0
- package/src/action/roamHelper.js +19 -0
- package/src/chart/bar/BarSeries.js +44 -1
- package/src/chart/bar/BarView.js +128 -17
- package/src/chart/bar/BaseBarSeries.js +24 -0
- package/src/chart/bar/PictorialBarSeries.js +19 -0
- package/src/chart/bar/PictorialBarView.js +19 -0
- package/src/chart/bar/barItemStyle.js +19 -0
- package/src/chart/bar/helper.js +20 -1
- package/src/chart/bar.js +28 -7
- package/src/chart/boxplot/BoxplotSeries.js +26 -1
- package/src/chart/boxplot/BoxplotView.js +152 -21
- package/src/chart/boxplot/boxplotLayout.js +75 -71
- package/src/chart/boxplot/boxplotVisual.js +19 -0
- package/src/chart/boxplot.js +19 -0
- package/src/chart/candlestick/CandlestickSeries.js +35 -4
- package/src/chart/candlestick/CandlestickView.js +272 -24
- package/src/chart/candlestick/candlestickLayout.js +151 -97
- package/src/chart/candlestick/candlestickVisual.js +66 -17
- package/src/chart/candlestick/preprocessor.js +19 -0
- package/src/chart/candlestick.js +19 -0
- package/src/chart/chord/ChordSeries.js +19 -0
- package/src/chart/chord/ChordView.js +19 -0
- package/src/chart/chord/Ribbon.js +19 -0
- package/src/chart/chord/chordCircularLayout.js +19 -0
- package/src/chart/chord.js +19 -0
- package/src/chart/custom.js +23 -6
- package/src/chart/effectScatter/EffectScatterSeries.js +19 -0
- package/src/chart/effectScatter/EffectScatterView.js +19 -0
- package/src/chart/effectScatter.js +19 -0
- package/src/chart/funnel/FunnelSeries.js +19 -0
- package/src/chart/funnel/FunnelView.js +19 -0
- package/src/chart/funnel/funnelLayout.js +19 -0
- package/src/chart/funnel.js +19 -0
- package/src/chart/gauge/GaugeSeries.js +19 -0
- package/src/chart/gauge/GaugeView.js +19 -0
- package/src/chart/gauge/PointerPath.js +19 -0
- package/src/chart/gauge.js +19 -0
- package/src/chart/graph/GraphSeries.js +27 -0
- package/src/chart/graph/GraphView.js +19 -0
- package/src/chart/graph/adjustEdge.js +19 -0
- package/src/chart/graph/backwardCompat.js +19 -0
- package/src/chart/graph/categoryFilter.js +19 -0
- package/src/chart/graph/categoryVisual.js +19 -0
- package/src/chart/graph/circularLayout.js +19 -0
- package/src/chart/graph/circularLayoutHelper.js +19 -0
- package/src/chart/graph/createView.js +19 -0
- package/src/chart/graph/edgeVisual.js +19 -0
- package/src/chart/graph/forceHelper.js +19 -0
- package/src/chart/graph/forceLayout.js +19 -0
- package/src/chart/graph/graphAction.js +19 -0
- package/src/chart/graph/simpleLayout.js +19 -0
- package/src/chart/graph/simpleLayoutHelper.js +19 -0
- package/src/chart/graph.js +19 -0
- package/src/chart/heatmap/HeatmapLayer.js +19 -0
- package/src/chart/heatmap/HeatmapSeries.js +22 -1
- package/src/chart/heatmap/HeatmapView.js +19 -0
- package/src/chart/heatmap.js +19 -0
- package/src/chart/helper/EffectLine.js +19 -0
- package/src/chart/helper/EffectPolyline.js +19 -0
- package/src/chart/helper/EffectSymbol.js +19 -0
- package/src/chart/helper/LargeLineDraw.js +20 -0
- package/src/chart/helper/LargeSymbolDraw.js +19 -0
- package/src/chart/helper/Line.js +38 -16
- package/src/chart/helper/LineDraw.js +27 -0
- package/src/chart/helper/LinePath.js +19 -0
- package/src/chart/helper/Polyline.js +19 -0
- package/src/chart/helper/Symbol.js +68 -15
- package/src/chart/helper/SymbolDraw.js +61 -18
- package/src/chart/helper/createGraphFromNodeEdge.js +29 -6
- package/src/chart/helper/createGraphFromNodeMatrix.js +19 -0
- package/src/chart/helper/createListFromArray.js +32 -7
- package/src/chart/helper/createListSimply.js +19 -0
- package/src/chart/helper/createRenderPlanner.js +22 -3
- package/src/chart/helper/labelHelper.js +19 -0
- package/src/chart/helper/treeHelper.js +19 -0
- package/src/chart/helper/whiskerBoxCommon.js +19 -24
- package/src/chart/line/LineSeries.js +35 -11
- package/src/chart/line/LineView.js +174 -105
- package/src/chart/line/helper.js +106 -0
- package/src/chart/line/lineAnimationDiff.js +32 -39
- package/src/chart/line/poly.js +149 -0
- package/src/chart/line.js +19 -0
- package/src/chart/lines/LinesSeries.js +27 -7
- package/src/chart/lines/LinesView.js +21 -1
- package/src/chart/lines/linesLayout.js +20 -1
- package/src/chart/lines/linesVisual.js +19 -0
- package/src/chart/lines.js +19 -0
- package/src/chart/map/MapSeries.js +42 -5
- package/src/chart/map/MapView.js +19 -0
- package/src/chart/map/backwardCompat.js +19 -0
- package/src/chart/map/mapDataStatistic.js +19 -0
- package/src/chart/map/mapSymbolLayout.js +19 -0
- package/src/chart/map/mapVisual.js +19 -0
- package/src/chart/map.js +19 -0
- package/src/chart/parallel/ParallelSeries.js +21 -7
- package/src/chart/parallel/ParallelView.js +90 -58
- package/src/chart/parallel/parallelVisual.js +39 -14
- package/src/chart/parallel.js +19 -0
- package/src/chart/pictorialBar.js +19 -0
- package/src/chart/pie/PieSeries.js +37 -2
- package/src/chart/pie/PieView.js +19 -0
- package/src/chart/pie/labelLayout.js +19 -0
- package/src/chart/pie/pieLayout.js +20 -1
- package/src/chart/pie.js +19 -0
- package/src/chart/radar/RadarSeries.js +21 -2
- package/src/chart/radar/RadarView.js +19 -0
- package/src/chart/radar/backwardCompat.js +19 -0
- package/src/chart/radar/radarLayout.js +20 -1
- package/src/chart/radar.js +19 -0
- package/src/chart/sankey/SankeySeries.js +28 -0
- package/src/chart/sankey/SankeyView.js +62 -11
- package/src/chart/sankey/sankeyAction.js +31 -0
- package/src/chart/sankey/sankeyLayout.js +71 -17
- package/src/chart/sankey/sankeyVisual.js +49 -25
- package/src/chart/sankey.js +20 -0
- package/src/chart/scatter/ScatterSeries.js +21 -2
- package/src/chart/scatter/ScatterView.js +19 -0
- package/src/chart/scatter.js +19 -0
- package/src/chart/sunburst/SunburstPiece.js +72 -20
- package/src/chart/sunburst/SunburstSeries.js +19 -0
- package/src/chart/sunburst/SunburstView.js +39 -17
- package/src/chart/sunburst/sunburstAction.js +19 -0
- package/src/chart/sunburst/sunburstLayout.js +19 -0
- package/src/chart/sunburst.js +19 -0
- package/src/chart/themeRiver/ThemeRiverSeries.js +19 -1
- package/src/chart/themeRiver/ThemeRiverView.js +19 -0
- package/src/chart/themeRiver/themeRiverLayout.js +19 -0
- package/src/chart/themeRiver/themeRiverVisual.js +19 -0
- package/src/chart/themeRiver.js +19 -0
- package/src/chart/tree/TreeSeries.js +38 -2
- package/src/chart/tree/TreeView.js +31 -5
- package/src/chart/tree/layoutHelper.js +19 -0
- package/src/chart/tree/traversalHelper.js +19 -0
- package/src/chart/tree/treeAction.js +19 -0
- package/src/chart/tree/treeLayout.js +128 -0
- package/src/chart/tree.js +21 -4
- package/src/chart/treemap/Breadcrumb.js +19 -0
- package/src/chart/treemap/TreemapSeries.js +19 -0
- package/src/chart/treemap/TreemapView.js +19 -0
- package/src/chart/treemap/helper.js +19 -0
- package/src/chart/treemap/treemapAction.js +19 -0
- package/src/chart/treemap/treemapLayout.js +19 -0
- package/src/chart/treemap/treemapVisual.js +19 -0
- package/src/chart/treemap.js +19 -0
- package/src/component/angleAxis.js +19 -0
- package/src/component/axis/AngleAxisView.js +62 -25
- package/src/component/axis/AxisBuilder.js +68 -94
- package/src/component/axis/AxisView.js +19 -0
- package/src/component/axis/CartesianAxisView.js +69 -54
- package/src/component/axis/ParallelAxisView.js +19 -0
- package/src/component/axis/RadiusAxisView.js +26 -4
- package/src/component/axis/SingleAxisView.js +26 -18
- package/src/component/axis/parallelAxisAction.js +19 -0
- package/src/component/axis.js +19 -0
- package/src/component/axisPointer/AxisPointerModel.js +19 -0
- package/src/component/axisPointer/AxisPointerView.js +19 -0
- package/src/component/axisPointer/BaseAxisPointer.js +19 -0
- package/src/component/axisPointer/CartesianAxisPointer.js +21 -2
- package/src/component/axisPointer/PolarAxisPointer.js +20 -1
- package/src/component/axisPointer/SingleAxisPointer.js +20 -1
- package/src/component/axisPointer/axisTrigger.js +21 -1
- package/src/component/axisPointer/findPointFromSeries.js +19 -0
- package/src/component/axisPointer/globalListener.js +19 -0
- package/src/component/axisPointer/modelHelper.js +21 -1
- package/src/component/axisPointer/viewHelper.js +20 -0
- package/src/component/axisPointer.js +19 -0
- package/src/component/brush/BrushModel.js +26 -1
- package/src/component/brush/BrushView.js +24 -0
- package/src/component/brush/brushAction.js +19 -0
- package/src/component/brush/preprocessor.js +19 -0
- package/src/component/brush/selector.js +19 -0
- package/src/component/brush/visualEncoding.js +19 -0
- package/src/component/brush.js +19 -0
- package/src/component/calendar/CalendarView.js +19 -0
- package/src/component/calendar.js +19 -0
- package/src/component/dataZoom/AxisProxy.js +42 -20
- package/src/component/dataZoom/DataZoomModel.js +19 -0
- package/src/component/dataZoom/DataZoomView.js +19 -0
- package/src/component/dataZoom/InsideZoomModel.js +19 -0
- package/src/component/dataZoom/InsideZoomView.js +37 -10
- package/src/component/dataZoom/SelectZoomModel.js +19 -0
- package/src/component/dataZoom/SelectZoomView.js +19 -0
- package/src/component/dataZoom/SliderZoomModel.js +19 -0
- package/src/component/dataZoom/SliderZoomView.js +30 -5
- package/src/component/dataZoom/dataZoomAction.js +19 -0
- package/src/component/dataZoom/dataZoomProcessor.js +24 -1
- package/src/component/dataZoom/helper.js +19 -0
- package/src/component/dataZoom/history.js +19 -0
- package/src/component/dataZoom/roams.js +20 -15
- package/src/component/dataZoom/typeDefaulter.js +19 -0
- package/src/component/dataZoom.js +19 -0
- package/src/component/dataZoomInside.js +19 -0
- package/src/component/dataZoomSelect.js +19 -0
- package/src/component/dataset.js +63 -3
- package/src/component/geo/GeoView.js +19 -0
- package/src/component/geo.js +19 -0
- package/src/component/graphic.js +19 -0
- package/src/component/grid.js +19 -0
- package/src/component/gridSimple.js +19 -0
- package/src/component/helper/BrushController.js +19 -0
- package/src/component/helper/BrushTargetManager.js +19 -0
- package/src/component/helper/MapDraw.js +19 -0
- package/src/component/helper/RoamController.js +19 -0
- package/src/component/helper/brushHelper.js +19 -0
- package/src/component/helper/cursorHelper.js +19 -0
- package/src/component/helper/interactionMutex.js +19 -0
- package/src/component/helper/listComponent.js +19 -0
- package/src/component/helper/roamHelper.js +19 -0
- package/src/component/helper/selectableMixin.js +22 -12
- package/src/component/helper/sliderMove.js +19 -0
- package/src/component/legend/LegendModel.js +25 -6
- package/src/component/legend/LegendView.js +51 -13
- package/src/component/legend/ScrollableLegendModel.js +19 -0
- package/src/component/legend/ScrollableLegendView.js +19 -0
- package/src/component/legend/legendAction.js +19 -0
- package/src/component/legend/legendFilter.js +19 -0
- package/src/component/legend/scrollableLegendAction.js +19 -0
- package/src/component/legend.js +19 -0
- package/src/component/legendScroll.js +19 -0
- package/src/component/markArea.js +19 -0
- package/src/component/markLine.js +19 -0
- package/src/component/markPoint.js +19 -0
- package/src/component/marker/MarkAreaModel.js +19 -0
- package/src/component/marker/MarkAreaView.js +22 -3
- package/src/component/marker/MarkLineModel.js +19 -0
- package/src/component/marker/MarkLineView.js +22 -3
- package/src/component/marker/MarkPointModel.js +19 -0
- package/src/component/marker/MarkPointView.js +21 -3
- package/src/component/marker/MarkerModel.js +20 -1
- package/src/component/marker/MarkerView.js +19 -0
- package/src/component/marker/markerHelper.js +60 -20
- package/src/component/parallel.js +19 -0
- package/src/component/parallelAxis.js +19 -0
- package/src/component/polar.js +19 -0
- package/src/component/radar/RadarView.js +23 -4
- package/src/component/radar.js +19 -0
- package/src/component/radiusAxis.js +19 -0
- package/src/component/singleAxis.js +19 -0
- package/src/component/timeline/SliderTimelineModel.js +19 -0
- package/src/component/timeline/SliderTimelineView.js +41 -33
- package/src/component/timeline/TimelineAxis.js +25 -43
- package/src/component/timeline/TimelineModel.js +19 -0
- package/src/component/timeline/TimelineView.js +19 -0
- package/src/component/timeline/preprocessor.js +19 -0
- package/src/component/timeline/timelineAction.js +19 -0
- package/src/component/timeline/typeDefaulter.js +19 -0
- package/src/component/timeline.js +19 -0
- package/src/component/title.js +19 -0
- package/src/component/toolbox/ToolboxModel.js +21 -2
- package/src/component/toolbox/ToolboxView.js +19 -0
- package/src/component/toolbox/feature/Brush.js +19 -0
- package/src/component/toolbox/feature/DataView.js +19 -0
- package/src/component/toolbox/feature/DataZoom.js +22 -0
- package/src/component/toolbox/feature/MagicType.js +19 -0
- package/src/component/toolbox/feature/Restore.js +19 -0
- package/src/component/toolbox/feature/SaveAsImage.js +19 -0
- package/src/component/toolbox/featureManager.js +19 -0
- package/src/component/toolbox.js +19 -0
- package/src/component/tooltip/TooltipContent.js +19 -0
- package/src/component/tooltip/TooltipModel.js +19 -0
- package/src/component/tooltip/TooltipView.js +20 -1
- package/src/component/tooltip.js +19 -0
- package/src/component/visualMap/ContinuousModel.js +20 -1
- package/src/component/visualMap/ContinuousView.js +19 -0
- package/src/component/visualMap/PiecewiseModel.js +20 -1
- package/src/component/visualMap/PiecewiseView.js +19 -0
- package/src/component/visualMap/VisualMapModel.js +31 -3
- package/src/component/visualMap/VisualMapView.js +19 -0
- package/src/component/visualMap/helper.js +19 -0
- package/src/component/visualMap/preprocessor.js +19 -0
- package/src/component/visualMap/typeDefaulter.js +19 -0
- package/src/component/visualMap/visualEncoding.js +23 -1
- package/src/component/visualMap/visualMapAction.js +19 -0
- package/src/component/visualMap.js +19 -0
- package/src/component/visualMapContinuous.js +19 -0
- package/src/component/visualMapPiecewise.js +19 -0
- package/src/config.js +19 -0
- package/src/coord/Axis.js +159 -100
- package/src/coord/View.js +19 -0
- package/src/coord/axisDefault.js +68 -41
- package/src/coord/axisHelper.js +142 -93
- package/src/coord/axisModelCommonMixin.js +19 -11
- package/src/coord/axisModelCreator.js +25 -2
- package/src/coord/axisTickLabelBuilder.js +369 -0
- package/src/coord/calendar/Calendar.js +24 -2
- package/src/coord/calendar/CalendarModel.js +19 -0
- package/src/coord/calendar/prepareCustom.js +20 -1
- package/src/coord/cartesian/Axis2D.js +25 -18
- package/src/coord/cartesian/AxisModel.js +19 -0
- package/src/coord/cartesian/Cartesian.js +19 -0
- package/src/coord/cartesian/Cartesian2D.js +27 -4
- package/src/coord/cartesian/Grid.js +65 -76
- package/src/coord/cartesian/GridModel.js +19 -0
- package/src/{component/axis → coord/cartesian}/cartesianAxisHelper.js +28 -9
- package/src/coord/cartesian/prepareCustom.js +19 -0
- package/src/coord/geo/Geo.js +19 -0
- package/src/coord/geo/GeoModel.js +19 -0
- package/src/coord/geo/Region.js +19 -0
- package/src/coord/geo/fix/diaoyuIsland.js +19 -0
- package/src/coord/geo/fix/geoCoord.js +19 -0
- package/src/coord/geo/fix/nanhai.js +19 -0
- package/src/coord/geo/fix/textCoord.js +19 -0
- package/src/coord/geo/geoCreator.js +19 -0
- package/src/coord/geo/parseGeoJson.js +19 -0
- package/src/coord/geo/prepareCustom.js +24 -3
- package/src/coord/parallel/AxisModel.js +32 -3
- package/src/coord/parallel/Parallel.js +38 -12
- package/src/coord/parallel/ParallelAxis.js +19 -0
- package/src/coord/parallel/ParallelModel.js +19 -0
- package/src/coord/parallel/parallelCreator.js +19 -0
- package/src/coord/parallel/parallelPreprocessor.js +19 -0
- package/src/coord/polar/AngleAxis.js +19 -0
- package/src/coord/polar/AxisModel.js +19 -0
- package/src/coord/polar/Polar.js +19 -0
- package/src/coord/polar/PolarModel.js +19 -0
- package/src/coord/polar/RadiusAxis.js +19 -0
- package/src/coord/polar/polarCreator.js +26 -3
- package/src/coord/polar/prepareCustom.js +19 -0
- package/src/coord/radar/IndicatorAxis.js +19 -0
- package/src/coord/radar/Radar.js +19 -0
- package/src/coord/radar/RadarModel.js +19 -0
- package/src/coord/single/AxisModel.js +19 -0
- package/src/coord/single/Single.js +19 -0
- package/src/coord/single/SingleAxis.js +19 -5
- package/src/coord/single/prepareCustom.js +19 -0
- package/src/{component/axis → coord/single}/singleAxisHelper.js +21 -4
- package/src/coord/single/singleCreator.js +19 -0
- package/src/data/DataDiffer.js +19 -0
- package/src/data/Graph.js +20 -1
- package/src/data/List.js +412 -207
- package/src/data/OrdinalMeta.js +19 -0
- package/src/data/Source.js +19 -0
- package/src/data/Tree.js +19 -0
- package/src/data/helper/completeDimensions.js +62 -29
- package/src/data/helper/createDimensions.js +23 -4
- package/src/data/helper/dataProvider.js +61 -6
- package/src/data/helper/dataStackHelper.js +162 -0
- package/src/data/helper/dimensionHelper.js +49 -10
- package/src/data/helper/linkList.js +19 -0
- package/src/data/helper/sourceHelper.js +19 -0
- package/src/data/helper/sourceType.js +19 -0
- package/src/echarts.js +127 -114
- package/src/export.js +19 -0
- package/src/helper.js +30 -1
- package/src/lang.js +19 -0
- package/src/langEN.js +19 -0
- package/src/langFI.js +19 -0
- package/src/langTH.js +19 -0
- package/src/layout/barGrid.js +174 -64
- package/src/layout/barPolar.js +81 -66
- package/src/layout/points.js +32 -4
- package/src/loading/default.js +19 -0
- package/src/model/Component.js +19 -0
- package/src/model/Global.js +29 -2
- package/src/model/Model.js +19 -0
- package/src/model/OptionManager.js +19 -0
- package/src/model/Series.js +23 -5
- package/src/model/globalDefault.js +23 -5
- package/src/model/mixin/areaStyle.js +19 -0
- package/src/model/mixin/boxLayout.js +19 -0
- package/src/model/mixin/colorPalette.js +26 -0
- package/src/model/mixin/dataFormat.js +20 -1
- package/src/model/mixin/itemStyle.js +19 -0
- package/src/model/mixin/lineStyle.js +19 -0
- package/src/model/mixin/makeStyleMapper.js +19 -0
- package/src/model/mixin/textStyle.js +19 -0
- package/src/model/referHelper.js +19 -0
- package/src/preprocessor/backwardCompat.js +19 -0
- package/src/preprocessor/helper/compatStyle.js +45 -15
- package/src/processor/dataFilter.js +20 -1
- package/src/processor/dataSample.js +29 -3
- package/src/processor/dataStack.js +129 -0
- package/src/scale/Interval.js +19 -12
- package/src/scale/Log.js +22 -3
- package/src/scale/Ordinal.js +28 -2
- package/src/scale/Scale.js +27 -13
- package/src/scale/Time.js +19 -0
- package/src/scale/helper.js +19 -0
- package/src/stream/Scheduler.js +124 -32
- package/src/stream/task.js +166 -16
- package/src/theme/dark.js +19 -0
- package/src/theme/light.js +19 -0
- package/src/util/KDTree.js +19 -0
- package/src/util/animation.js +19 -0
- package/src/util/array/nest.js +19 -0
- package/src/util/clazz.js +19 -0
- package/src/util/component.js +19 -0
- package/src/util/format.js +47 -20
- package/src/util/graphic.js +19 -0
- package/src/util/layout.js +19 -0
- package/src/util/model.js +33 -5
- package/src/util/number.js +19 -0
- package/src/util/quickSelect.js +19 -0
- package/src/util/symbol.js +19 -0
- package/src/util/throttle.js +27 -0
- package/src/view/Chart.js +48 -10
- package/src/view/Component.js +19 -0
- package/src/visual/VisualMapping.js +29 -0
- package/src/visual/aria.js +19 -0
- package/src/visual/dataColor.js +21 -1
- package/src/visual/seriesColor.js +20 -1
- package/src/visual/symbol.js +34 -2
- package/src/visual/visualDefault.js +19 -0
- package/src/visual/visualSolution.js +23 -3
- package/theme/dark.js +19 -0
- package/theme/infographic.js +19 -0
- package/theme/macarons.js +19 -0
- package/theme/roma.js +19 -0
- package/theme/shine.js +19 -0
- package/theme/vintage.js +19 -0
- package/build/rollup-plugin-ec-dev.js +0 -38
- package/lib/chart/helper/WhiskerBoxDraw.js +0 -201
- package/lib/chart/tree/commonLayout.js +0 -108
- package/lib/chart/tree/orthogonalLayout.js +0 -9
- package/lib/chart/tree/radialLayout.js +0 -9
- package/lib/component/dataset/DatasetModel.js +0 -29
- package/src/chart/helper/WhiskerBoxDraw.js +0 -213
- package/src/chart/tree/commonLayout.js +0 -96
- package/src/chart/tree/orthogonalLayout.js +0 -7
- package/src/chart/tree/radialLayout.js +0 -7
- package/src/component/dataset/DatasetModel.js +0 -31
|
@@ -35,6 +35,25 @@ var SOURCE_FORMAT_KEYED_COLUMNS = _sourceType.SOURCE_FORMAT_KEYED_COLUMNS;
|
|
|
35
35
|
var SOURCE_FORMAT_UNKNOWN = _sourceType.SOURCE_FORMAT_UNKNOWN;
|
|
36
36
|
var SOURCE_FORMAT_TYPED_ARRAY = _sourceType.SOURCE_FORMAT_TYPED_ARRAY;
|
|
37
37
|
var SERIES_LAYOUT_BY_ROW = _sourceType.SERIES_LAYOUT_BY_ROW;
|
|
38
|
+
|
|
39
|
+
/*
|
|
40
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
41
|
+
* or more contributor license agreements. See the NOTICE file
|
|
42
|
+
* distributed with this work for additional information
|
|
43
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
44
|
+
* to you under the Apache License, Version 2.0 (the
|
|
45
|
+
* "License"); you may not use this file except in compliance
|
|
46
|
+
* with the License. You may obtain a copy of the License at
|
|
47
|
+
*
|
|
48
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
49
|
+
*
|
|
50
|
+
* Unless required by applicable law or agreed to in writing,
|
|
51
|
+
* software distributed under the License is distributed on an
|
|
52
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
53
|
+
* KIND, either express or implied. See the License for the
|
|
54
|
+
* specific language governing permissions and limitations
|
|
55
|
+
* under the License.
|
|
56
|
+
*/
|
|
38
57
|
var inner = makeInner();
|
|
39
58
|
/**
|
|
40
59
|
* @see {module:echarts/data/Source}
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
3
|
+
* or more contributor license agreements. See the NOTICE file
|
|
4
|
+
* distributed with this work for additional information
|
|
5
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
6
|
+
* to you under the Apache License, Version 2.0 (the
|
|
7
|
+
* "License"); you may not use this file except in compliance
|
|
8
|
+
* with the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
1
19
|
// Avoid typo.
|
|
2
20
|
var SOURCE_FORMAT_ORIGINAL = 'original';
|
|
3
21
|
var SOURCE_FORMAT_ARRAY_ROWS = 'arrayRows';
|
package/lib/echarts.js
CHANGED
|
@@ -24,6 +24,8 @@ var OptionManager = require("./model/OptionManager");
|
|
|
24
24
|
|
|
25
25
|
var backwardCompat = require("./preprocessor/backwardCompat");
|
|
26
26
|
|
|
27
|
+
var dataStack = require("./processor/dataStack");
|
|
28
|
+
|
|
27
29
|
var ComponentModel = require("./model/Component");
|
|
28
30
|
|
|
29
31
|
var SeriesModel = require("./model/Series");
|
|
@@ -52,23 +54,34 @@ var lightTheme = require("./theme/light");
|
|
|
52
54
|
|
|
53
55
|
var darkTheme = require("./theme/dark");
|
|
54
56
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
require("./component/dataset");
|
|
58
|
+
|
|
59
|
+
/*
|
|
60
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
61
|
+
* or more contributor license agreements. See the NOTICE file
|
|
62
|
+
* distributed with this work for additional information
|
|
63
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
64
|
+
* to you under the Apache License, Version 2.0 (the
|
|
65
|
+
* "License"); you may not use this file except in compliance
|
|
66
|
+
* with the License. You may obtain a copy of the License at
|
|
67
|
+
*
|
|
68
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
69
|
+
*
|
|
70
|
+
* Unless required by applicable law or agreed to in writing,
|
|
71
|
+
* software distributed under the License is distributed on an
|
|
72
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
73
|
+
* KIND, either express or implied. See the License for the
|
|
74
|
+
* specific language governing permissions and limitations
|
|
75
|
+
* under the License.
|
|
76
|
+
*/
|
|
64
77
|
var assert = zrUtil.assert;
|
|
65
78
|
var each = zrUtil.each;
|
|
66
79
|
var isFunction = zrUtil.isFunction;
|
|
67
80
|
var isObject = zrUtil.isObject;
|
|
68
81
|
var parseClassType = ComponentModel.parseClassType;
|
|
69
|
-
var version = '4.0
|
|
82
|
+
var version = '4.1.0';
|
|
70
83
|
var dependencies = {
|
|
71
|
-
zrender: '4.0.
|
|
84
|
+
zrender: '4.0.4'
|
|
72
85
|
};
|
|
73
86
|
var TEST_FRAME_REMAIN_TIME = 1;
|
|
74
87
|
var PRIORITY_PROCESSOR_FILTER = 1000;
|
|
@@ -99,7 +112,6 @@ var PRIORITY = {
|
|
|
99
112
|
// All events will be triggered out side main process (i.e. when !this[IN_MAIN_PROCESS]).
|
|
100
113
|
|
|
101
114
|
var IN_MAIN_PROCESS = '__flagInMainProcess';
|
|
102
|
-
var HAS_GRADIENT_OR_PATTERN_BG = '__hasGradientOrPatternBg';
|
|
103
115
|
var OPTION_UPDATED = '__optionUpdated';
|
|
104
116
|
var ACTION_REG = /^[a-zA-Z0-9_]+$/;
|
|
105
117
|
|
|
@@ -213,35 +225,35 @@ function ECharts(dom, theme, opts) {
|
|
|
213
225
|
* @private
|
|
214
226
|
*/
|
|
215
227
|
|
|
216
|
-
var api = this._api = createExtensionAPI(this);
|
|
228
|
+
var api = this._api = createExtensionAPI(this); // Sort on demand
|
|
229
|
+
|
|
230
|
+
function prioritySortFunc(a, b) {
|
|
231
|
+
return a.__prio - b.__prio;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
timsort(visualFuncs, prioritySortFunc);
|
|
235
|
+
timsort(dataProcessorFuncs, prioritySortFunc);
|
|
217
236
|
/**
|
|
218
237
|
* @type {module:echarts/stream/Scheduler}
|
|
219
238
|
*/
|
|
220
239
|
|
|
221
|
-
this._scheduler = new Scheduler(this, api);
|
|
240
|
+
this._scheduler = new Scheduler(this, api, dataProcessorFuncs, visualFuncs);
|
|
222
241
|
Eventful.call(this);
|
|
223
242
|
/**
|
|
224
243
|
* @type {module:echarts~MessageCenter}
|
|
225
244
|
* @private
|
|
226
245
|
*/
|
|
227
246
|
|
|
228
|
-
this._messageCenter = new MessageCenter(); //
|
|
229
|
-
// Init mouse events
|
|
247
|
+
this._messageCenter = new MessageCenter(); // Init mouse events
|
|
230
248
|
|
|
231
249
|
this._initEvents(); // In case some people write `window.onresize = chart.resize`
|
|
232
250
|
|
|
233
251
|
|
|
234
252
|
this.resize = zrUtil.bind(this.resize, this); // Can't dispatch action during rendering procedure
|
|
235
253
|
|
|
236
|
-
this._pendingActions = [];
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
return a.__prio - b.__prio;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
timsort(visualFuncs, prioritySortFunc);
|
|
243
|
-
timsort(dataProcessorFuncs, prioritySortFunc);
|
|
244
|
-
zr.animation.on('frame', this._onframe, this); // ECharts instance can be used as value.
|
|
254
|
+
this._pendingActions = [];
|
|
255
|
+
zr.animation.on('frame', this._onframe, this);
|
|
256
|
+
bindRenderedEvent(zr, this); // ECharts instance can be used as value.
|
|
245
257
|
|
|
246
258
|
zrUtil.setAsPrimitive(this);
|
|
247
259
|
}
|
|
@@ -276,7 +288,7 @@ echartsProto._onframe = function () {
|
|
|
276
288
|
var startTime = +new Date();
|
|
277
289
|
scheduler.performSeriesTasks(ecModel); // Currently dataProcessorFuncs do not check threshold.
|
|
278
290
|
|
|
279
|
-
scheduler.performDataProcessorTasks(
|
|
291
|
+
scheduler.performDataProcessorTasks(ecModel);
|
|
280
292
|
updateStreamModes(this, ecModel); // Do not update coordinate system here. Because that coord system update in
|
|
281
293
|
// each frame is not a good user experience. So we follow the rule that
|
|
282
294
|
// the extent of the coordinate system is determin in the first frame (the
|
|
@@ -284,14 +296,14 @@ echartsProto._onframe = function () {
|
|
|
284
296
|
// this._coordSysMgr.update(ecModel, api);
|
|
285
297
|
// console.log('--- ec frame visual ---', remainTime);
|
|
286
298
|
|
|
287
|
-
scheduler.performVisualTasks(
|
|
299
|
+
scheduler.performVisualTasks(ecModel);
|
|
288
300
|
renderSeries(this, this._model, api, 'remain');
|
|
289
301
|
remainTime -= +new Date() - startTime;
|
|
290
|
-
} while (remainTime > 0 && scheduler.unfinished);
|
|
302
|
+
} while (remainTime > 0 && scheduler.unfinished); // Call flush explicitly for trigger finished event.
|
|
303
|
+
|
|
291
304
|
|
|
292
305
|
if (!scheduler.unfinished) {
|
|
293
|
-
this._zr
|
|
294
|
-
this.trigger('finished');
|
|
306
|
+
this._zr.flush();
|
|
295
307
|
} // Else, zr flushing be ensue within the same frame,
|
|
296
308
|
// because zr flushing is after onframe event.
|
|
297
309
|
|
|
@@ -432,12 +444,13 @@ echartsProto.getRenderedCanvas = function (opts) {
|
|
|
432
444
|
opts = opts || {};
|
|
433
445
|
opts.pixelRatio = opts.pixelRatio || 1;
|
|
434
446
|
opts.backgroundColor = opts.backgroundColor || this._model.get('backgroundColor');
|
|
435
|
-
var zr = this._zr;
|
|
436
|
-
|
|
447
|
+
var zr = this._zr; // var list = zr.storage.getDisplayList();
|
|
448
|
+
// Stop animations
|
|
449
|
+
// Never works before in init animation, so remove it.
|
|
450
|
+
// zrUtil.each(list, function (el) {
|
|
451
|
+
// el.stopAnimation(true);
|
|
452
|
+
// });
|
|
437
453
|
|
|
438
|
-
zrUtil.each(list, function (el) {
|
|
439
|
-
el.stopAnimation(true);
|
|
440
|
-
});
|
|
441
454
|
return zr.painter.getRenderedCanvas(opts);
|
|
442
455
|
};
|
|
443
456
|
/**
|
|
@@ -457,7 +470,7 @@ echartsProto.getSvgDataUrl = function () {
|
|
|
457
470
|
zrUtil.each(list, function (el) {
|
|
458
471
|
el.stopAnimation(true);
|
|
459
472
|
});
|
|
460
|
-
return zr.painter.
|
|
473
|
+
return zr.painter.pathToDataUrl();
|
|
461
474
|
};
|
|
462
475
|
/**
|
|
463
476
|
* @return {string}
|
|
@@ -728,7 +741,7 @@ var updateMethods = {
|
|
|
728
741
|
return;
|
|
729
742
|
}
|
|
730
743
|
|
|
731
|
-
|
|
744
|
+
scheduler.restoreData(ecModel, payload);
|
|
732
745
|
scheduler.performSeriesTasks(ecModel); // TODO
|
|
733
746
|
// Save total ecModel here for undo/redo (after restoring data and before processing data).
|
|
734
747
|
// Undo (restoration of total ecModel) can be carried out in 'action' or outside API call.
|
|
@@ -736,53 +749,31 @@ var updateMethods = {
|
|
|
736
749
|
// In LineView may save the old coordinate system and use it to get the orignal point
|
|
737
750
|
|
|
738
751
|
coordSysMgr.create(ecModel, api);
|
|
739
|
-
scheduler.performDataProcessorTasks(
|
|
752
|
+
scheduler.performDataProcessorTasks(ecModel, payload); // Current stream render is not supported in data process. So we can update
|
|
740
753
|
// stream modes after data processing, where the filtered data is used to
|
|
741
754
|
// deteming whether use progressive rendering.
|
|
742
755
|
|
|
743
|
-
updateStreamModes(this, ecModel);
|
|
744
|
-
|
|
756
|
+
updateStreamModes(this, ecModel); // We update stream modes before coordinate system updated, then the modes info
|
|
757
|
+
// can be fetched when coord sys updating (consider the barGrid extent fix). But
|
|
758
|
+
// the drawback is the full coord info can not be fetched. Fortunately this full
|
|
759
|
+
// coord is not requied in stream mode updater currently.
|
|
760
|
+
|
|
745
761
|
coordSysMgr.update(ecModel, api);
|
|
746
762
|
clearColorPalette(ecModel);
|
|
747
|
-
scheduler.performVisualTasks(
|
|
763
|
+
scheduler.performVisualTasks(ecModel, payload);
|
|
748
764
|
render(this, ecModel, api, payload); // Set background
|
|
749
765
|
|
|
750
|
-
var backgroundColor = ecModel.get('backgroundColor') || 'transparent';
|
|
751
|
-
var painter = zr.painter; // TODO all use clearColor ?
|
|
766
|
+
var backgroundColor = ecModel.get('backgroundColor') || 'transparent'; // In IE8
|
|
752
767
|
|
|
753
|
-
if (
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
});
|
|
757
|
-
} else {
|
|
758
|
-
// In IE8
|
|
759
|
-
if (!env.canvasSupported) {
|
|
760
|
-
var colorArr = colorTool.parse(backgroundColor);
|
|
761
|
-
backgroundColor = colorTool.stringify(colorArr, 'rgb');
|
|
768
|
+
if (!env.canvasSupported) {
|
|
769
|
+
var colorArr = colorTool.parse(backgroundColor);
|
|
770
|
+
backgroundColor = colorTool.stringify(colorArr, 'rgb');
|
|
762
771
|
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
if (backgroundColor.colorStops || backgroundColor.image) {
|
|
769
|
-
// Gradient background
|
|
770
|
-
// FIXME Fixed layer?
|
|
771
|
-
zr.configLayer(0, {
|
|
772
|
-
clearColor: backgroundColor
|
|
773
|
-
});
|
|
774
|
-
this[HAS_GRADIENT_OR_PATTERN_BG] = true;
|
|
775
|
-
this._dom.style.background = 'transparent';
|
|
776
|
-
} else {
|
|
777
|
-
if (this[HAS_GRADIENT_OR_PATTERN_BG]) {
|
|
778
|
-
zr.configLayer(0, {
|
|
779
|
-
clearColor: null
|
|
780
|
-
});
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
this[HAS_GRADIENT_OR_PATTERN_BG] = false;
|
|
784
|
-
this._dom.style.background = backgroundColor;
|
|
772
|
+
if (colorArr[3] === 0) {
|
|
773
|
+
backgroundColor = 'transparent';
|
|
785
774
|
}
|
|
775
|
+
} else {
|
|
776
|
+
zr.setBackgroundColor(backgroundColor);
|
|
786
777
|
}
|
|
787
778
|
|
|
788
779
|
performPostUpdateFuncs(ecModel, api); // console.profile && console.profileEnd('update');
|
|
@@ -827,9 +818,9 @@ var updateMethods = {
|
|
|
827
818
|
}
|
|
828
819
|
});
|
|
829
820
|
clearColorPalette(ecModel); // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.
|
|
830
|
-
// this._scheduler.performVisualTasks(
|
|
821
|
+
// this._scheduler.performVisualTasks(ecModel, payload, 'layout', true);
|
|
831
822
|
|
|
832
|
-
this._scheduler.performVisualTasks(
|
|
823
|
+
this._scheduler.performVisualTasks(ecModel, payload, {
|
|
833
824
|
setDirty: true,
|
|
834
825
|
dirtyMap: seriesDirtyMap
|
|
835
826
|
}); // Currently, not call render of components. Geo render cost a lot.
|
|
@@ -854,7 +845,7 @@ var updateMethods = {
|
|
|
854
845
|
ChartView.markUpdateMethod(payload, 'updateView');
|
|
855
846
|
clearColorPalette(ecModel); // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.
|
|
856
847
|
|
|
857
|
-
this._scheduler.performVisualTasks(
|
|
848
|
+
this._scheduler.performVisualTasks(ecModel, payload, {
|
|
858
849
|
setDirty: true
|
|
859
850
|
});
|
|
860
851
|
|
|
@@ -875,7 +866,7 @@ var updateMethods = {
|
|
|
875
866
|
// ChartView.markUpdateMethod(payload, 'updateVisual');
|
|
876
867
|
// clearColorPalette(ecModel);
|
|
877
868
|
// // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.
|
|
878
|
-
// this._scheduler.performVisualTasks(
|
|
869
|
+
// this._scheduler.performVisualTasks(ecModel, payload, {visualType: 'visual', setDirty: true});
|
|
879
870
|
// render(this, this._model, this._api, payload);
|
|
880
871
|
// performPostUpdateFuncs(ecModel, this._api);
|
|
881
872
|
},
|
|
@@ -892,8 +883,8 @@ var updateMethods = {
|
|
|
892
883
|
// }
|
|
893
884
|
// ChartView.markUpdateMethod(payload, 'updateLayout');
|
|
894
885
|
// // Keep pipe to the exist pipeline because it depends on the render task of the full pipeline.
|
|
895
|
-
// // this._scheduler.performVisualTasks(
|
|
896
|
-
// this._scheduler.performVisualTasks(
|
|
886
|
+
// // this._scheduler.performVisualTasks(ecModel, payload, 'layout', true);
|
|
887
|
+
// this._scheduler.performVisualTasks(ecModel, payload, {setDirty: true});
|
|
897
888
|
// render(this, this._model, this._api, payload);
|
|
898
889
|
// performPostUpdateFuncs(ecModel, this._api);
|
|
899
890
|
}
|
|
@@ -903,8 +894,7 @@ function prepare(ecIns) {
|
|
|
903
894
|
var ecModel = ecIns._model;
|
|
904
895
|
var scheduler = ecIns._scheduler;
|
|
905
896
|
scheduler.restorePipelines(ecModel);
|
|
906
|
-
scheduler.prepareStageTasks(
|
|
907
|
-
scheduler.prepareStageTasks(visualFuncs);
|
|
897
|
+
scheduler.prepareStageTasks();
|
|
908
898
|
prepareView(ecIns, 'component', ecModel, scheduler);
|
|
909
899
|
prepareView(ecIns, 'chart', ecModel, scheduler);
|
|
910
900
|
scheduler.plan();
|
|
@@ -934,10 +924,18 @@ function updateDirectly(ecIns, method, payload, mainType, subType) {
|
|
|
934
924
|
query: query
|
|
935
925
|
};
|
|
936
926
|
subType && (condition.subType = subType); // subType may be '' by parseClassType;
|
|
937
|
-
// If dispatchAction before setOption, do nothing.
|
|
938
927
|
|
|
939
|
-
|
|
940
|
-
|
|
928
|
+
var excludeSeriesId = payload.excludeSeriesId;
|
|
929
|
+
|
|
930
|
+
if (excludeSeriesId != null) {
|
|
931
|
+
excludeSeriesId = zrUtil.createHashMap(modelUtil.normalizeToArray(excludeSeriesId));
|
|
932
|
+
} // If dispatchAction before setOption, do nothing.
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
ecModel && ecModel.eachComponent(condition, function (model) {
|
|
936
|
+
if (!excludeSeriesId || excludeSeriesId.get(model.id) == null) {
|
|
937
|
+
callView(ecIns[mainType === 'series' ? '_chartsMap' : '_componentsMap'][model.__viewId]);
|
|
938
|
+
}
|
|
941
939
|
}, ecIns);
|
|
942
940
|
|
|
943
941
|
function callView(view) {
|
|
@@ -965,18 +963,15 @@ echartsProto.resize = function (opts) {
|
|
|
965
963
|
}
|
|
966
964
|
|
|
967
965
|
var optionChanged = ecModel.resetOption('media');
|
|
968
|
-
|
|
966
|
+
var silent = opts && opts.silent;
|
|
967
|
+
this[IN_MAIN_PROCESS] = true;
|
|
968
|
+
optionChanged && prepare(this);
|
|
969
|
+
updateMethods.update.call(this);
|
|
970
|
+
this[IN_MAIN_PROCESS] = false;
|
|
971
|
+
flushPendingActions.call(this, silent);
|
|
972
|
+
triggerUpdatedEvent.call(this, silent);
|
|
969
973
|
};
|
|
970
974
|
|
|
971
|
-
function refresh(ecIns, needPrepare, silent) {
|
|
972
|
-
ecIns[IN_MAIN_PROCESS] = true;
|
|
973
|
-
needPrepare && prepare(ecIns);
|
|
974
|
-
updateMethods.update.call(ecIns);
|
|
975
|
-
ecIns[IN_MAIN_PROCESS] = false;
|
|
976
|
-
flushPendingActions.call(ecIns, silent);
|
|
977
|
-
triggerUpdatedEvent.call(ecIns, silent);
|
|
978
|
-
}
|
|
979
|
-
|
|
980
975
|
function updateStreamModes(ecIns, ecModel) {
|
|
981
976
|
var chartsMap = ecIns._chartsMap;
|
|
982
977
|
var scheduler = ecIns._scheduler;
|
|
@@ -1163,6 +1158,35 @@ function flushPendingActions(silent) {
|
|
|
1163
1158
|
function triggerUpdatedEvent(silent) {
|
|
1164
1159
|
!silent && this.trigger('updated');
|
|
1165
1160
|
}
|
|
1161
|
+
/**
|
|
1162
|
+
* Event `rendered` is triggered when zr
|
|
1163
|
+
* rendered. It is useful for realtime
|
|
1164
|
+
* snapshot (reflect animation).
|
|
1165
|
+
*
|
|
1166
|
+
* Event `finished` is triggered when:
|
|
1167
|
+
* (1) zrender rendering finished.
|
|
1168
|
+
* (2) initial animation finished.
|
|
1169
|
+
* (3) progressive rendering finished.
|
|
1170
|
+
* (4) no pending action.
|
|
1171
|
+
* (5) no delayed setOption needs to be processed.
|
|
1172
|
+
*/
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
function bindRenderedEvent(zr, ecIns) {
|
|
1176
|
+
zr.on('rendered', function () {
|
|
1177
|
+
ecIns.trigger('rendered'); // The `finished` event should not be triggered repeatly,
|
|
1178
|
+
// so it should only be triggered when rendering indeed happend
|
|
1179
|
+
// in zrender. (Consider the case that dipatchAction is keep
|
|
1180
|
+
// triggering when mouse move).
|
|
1181
|
+
|
|
1182
|
+
if ( // Although zr is dirty if initial animation is not finished
|
|
1183
|
+
// and this checking is called on frame, we also check
|
|
1184
|
+
// animation finished for robustness.
|
|
1185
|
+
zr.animation.isFinished() && !ecIns[OPTION_UPDATED] && !ecIns._scheduler.unfinished && !ecIns._pendingActions.length) {
|
|
1186
|
+
ecIns.trigger('finished');
|
|
1187
|
+
}
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1166
1190
|
/**
|
|
1167
1191
|
* @param {Object} params
|
|
1168
1192
|
* @param {number} params.seriesIndex
|
|
@@ -1174,7 +1198,14 @@ echartsProto.appendData = function (params) {
|
|
|
1174
1198
|
var seriesIndex = params.seriesIndex;
|
|
1175
1199
|
var ecModel = this.getModel();
|
|
1176
1200
|
var seriesModel = ecModel.getSeriesByIndex(seriesIndex);
|
|
1177
|
-
seriesModel.appendData(params);
|
|
1201
|
+
seriesModel.appendData(params); // Note: `appendData` does not support that update extent of coordinate
|
|
1202
|
+
// system, util some scenario require that. In the expected usage of
|
|
1203
|
+
// `appendData`, the initial extent of coordinate system should better
|
|
1204
|
+
// be fixed by axis `min`/`max` setting or initial data, otherwise if
|
|
1205
|
+
// the extent changed while `appendData`, the location of the painted
|
|
1206
|
+
// graphic elements have to be changed, which make the usage of
|
|
1207
|
+
// `appendData` meaningless.
|
|
1208
|
+
|
|
1178
1209
|
this._scheduler.unfinished = true;
|
|
1179
1210
|
};
|
|
1180
1211
|
/**
|
|
@@ -1246,28 +1277,6 @@ function prepareView(ecIns, type, ecModel, scheduler) {
|
|
|
1246
1277
|
i++;
|
|
1247
1278
|
}
|
|
1248
1279
|
}
|
|
1249
|
-
}
|
|
1250
|
-
/**
|
|
1251
|
-
* @private
|
|
1252
|
-
*/
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
function stackSeriesData(ecModel) {
|
|
1256
|
-
var stackedDataMap = {};
|
|
1257
|
-
ecModel.eachSeries(function (series) {
|
|
1258
|
-
var stack = series.get('stack');
|
|
1259
|
-
var data = series.getData();
|
|
1260
|
-
|
|
1261
|
-
if (stack && data.type === 'list') {
|
|
1262
|
-
var previousStack = stackedDataMap[stack]; // Avoid conflict with Object.prototype
|
|
1263
|
-
|
|
1264
|
-
if (stackedDataMap.hasOwnProperty(stack) && previousStack) {
|
|
1265
|
-
data.stackedOn = previousStack;
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
stackedDataMap[stack] = data;
|
|
1269
|
-
}
|
|
1270
|
-
});
|
|
1271
1280
|
} // /**
|
|
1272
1281
|
// * Encode visual infomation from data after data processing
|
|
1273
1282
|
// *
|
|
@@ -1992,6 +2001,7 @@ function getMap(mapName) {
|
|
|
1992
2001
|
|
|
1993
2002
|
registerVisual(PRIORITY_VISUAL_GLOBAL, seriesColor);
|
|
1994
2003
|
registerPreprocessor(backwardCompat);
|
|
2004
|
+
registerProcessor(PRIORITY_PROCESSOR_STATISTIC, dataStack);
|
|
1995
2005
|
registerLoading('default', loadingDefault); // Default actions
|
|
1996
2006
|
|
|
1997
2007
|
registerAction({
|
package/lib/export.js
CHANGED
|
@@ -57,6 +57,25 @@ var _env = require("zrender/lib/core/env");
|
|
|
57
57
|
|
|
58
58
|
exports.env = _env;
|
|
59
59
|
|
|
60
|
+
/*
|
|
61
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
62
|
+
* or more contributor license agreements. See the NOTICE file
|
|
63
|
+
* distributed with this work for additional information
|
|
64
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
65
|
+
* to you under the Apache License, Version 2.0 (the
|
|
66
|
+
* "License"); you may not use this file except in compliance
|
|
67
|
+
* with the License. You may obtain a copy of the License at
|
|
68
|
+
*
|
|
69
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
70
|
+
*
|
|
71
|
+
* Unless required by applicable law or agreed to in writing,
|
|
72
|
+
* software distributed under the License is distributed on an
|
|
73
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
74
|
+
* KIND, either express or implied. See the License for the
|
|
75
|
+
* specific language governing permissions and limitations
|
|
76
|
+
* under the License.
|
|
77
|
+
*/
|
|
78
|
+
|
|
60
79
|
/**
|
|
61
80
|
* Do not mount those modules on 'src/echarts' for better tree shaking.
|
|
62
81
|
*/
|
package/lib/helper.js
CHANGED
|
@@ -13,6 +13,12 @@ var _layout = require("./util/layout");
|
|
|
13
13
|
var getLayoutRect = _layout.getLayoutRect;
|
|
14
14
|
exports.getLayoutRect = _layout.getLayoutRect;
|
|
15
15
|
|
|
16
|
+
var _dataStackHelper = require("./data/helper/dataStackHelper");
|
|
17
|
+
|
|
18
|
+
var enableDataStack = _dataStackHelper.enableDataStack;
|
|
19
|
+
var isDimensionStacked = _dataStackHelper.isDimensionStacked;
|
|
20
|
+
var getStackedDimension = _dataStackHelper.getStackedDimension;
|
|
21
|
+
|
|
16
22
|
var _completeDimensions = require("./data/helper/completeDimensions");
|
|
17
23
|
|
|
18
24
|
exports.completeDimensions = _completeDimensions;
|
|
@@ -25,6 +31,24 @@ var _symbol = require("./util/symbol");
|
|
|
25
31
|
|
|
26
32
|
exports.createSymbol = _symbol.createSymbol;
|
|
27
33
|
|
|
34
|
+
/*
|
|
35
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
36
|
+
* or more contributor license agreements. See the NOTICE file
|
|
37
|
+
* distributed with this work for additional information
|
|
38
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
39
|
+
* to you under the Apache License, Version 2.0 (the
|
|
40
|
+
* "License"); you may not use this file except in compliance
|
|
41
|
+
* with the License. You may obtain a copy of the License at
|
|
42
|
+
*
|
|
43
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
44
|
+
*
|
|
45
|
+
* Unless required by applicable law or agreed to in writing,
|
|
46
|
+
* software distributed under the License is distributed on an
|
|
47
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
48
|
+
* KIND, either express or implied. See the License for the
|
|
49
|
+
* specific language governing permissions and limitations
|
|
50
|
+
* under the License.
|
|
51
|
+
*/
|
|
28
52
|
// import createGraphFromNodeEdge from './chart/helper/createGraphFromNodeEdge';
|
|
29
53
|
|
|
30
54
|
/**
|
|
@@ -41,6 +65,22 @@ function createList(seriesModel) {
|
|
|
41
65
|
// }
|
|
42
66
|
|
|
43
67
|
|
|
68
|
+
var dataStack = {
|
|
69
|
+
isDimensionStacked: isDimensionStacked,
|
|
70
|
+
enableDataStack: enableDataStack,
|
|
71
|
+
getStackedDimension: getStackedDimension
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Create a symbol element with given symbol configuration: shape, x, y, width, height, color
|
|
75
|
+
* @see http://echarts.baidu.com/option.html#series-scatter.symbol
|
|
76
|
+
* @param {string} symbolDesc
|
|
77
|
+
* @param {number} x
|
|
78
|
+
* @param {number} y
|
|
79
|
+
* @param {number} w
|
|
80
|
+
* @param {number} h
|
|
81
|
+
* @param {string} color
|
|
82
|
+
*/
|
|
83
|
+
|
|
44
84
|
/**
|
|
45
85
|
* Create scale
|
|
46
86
|
* @param {Array.<number>} dataExtent
|
|
@@ -78,5 +118,6 @@ function mixinAxisModelCommonMethods(Model) {
|
|
|
78
118
|
}
|
|
79
119
|
|
|
80
120
|
exports.createList = createList;
|
|
121
|
+
exports.dataStack = dataStack;
|
|
81
122
|
exports.createScale = createScale;
|
|
82
123
|
exports.mixinAxisModelCommonMethods = mixinAxisModelCommonMethods;
|
package/lib/lang.js
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
3
|
+
* or more contributor license agreements. See the NOTICE file
|
|
4
|
+
* distributed with this work for additional information
|
|
5
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
6
|
+
* to you under the Apache License, Version 2.0 (the
|
|
7
|
+
* "License"); you may not use this file except in compliance
|
|
8
|
+
* with the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
1
19
|
var _default = {
|
|
2
20
|
toolbox: {
|
|
3
21
|
brush: {
|
package/lib/langEN.js
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
3
|
+
* or more contributor license agreements. See the NOTICE file
|
|
4
|
+
* distributed with this work for additional information
|
|
5
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
6
|
+
* to you under the Apache License, Version 2.0 (the
|
|
7
|
+
* "License"); you may not use this file except in compliance
|
|
8
|
+
* with the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
1
19
|
var _default = {
|
|
2
20
|
toolbox: {
|
|
3
21
|
brush: {
|
package/lib/langFI.js
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
3
|
+
* or more contributor license agreements. See the NOTICE file
|
|
4
|
+
* distributed with this work for additional information
|
|
5
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
6
|
+
* to you under the Apache License, Version 2.0 (the
|
|
7
|
+
* "License"); you may not use this file except in compliance
|
|
8
|
+
* with the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
1
19
|
var _default = {
|
|
2
20
|
toolbox: {
|
|
3
21
|
brush: {
|
package/lib/langTH.js
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
3
|
+
* or more contributor license agreements. See the NOTICE file
|
|
4
|
+
* distributed with this work for additional information
|
|
5
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
6
|
+
* to you under the Apache License, Version 2.0 (the
|
|
7
|
+
* "License"); you may not use this file except in compliance
|
|
8
|
+
* with the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
1
19
|
var _default = {
|
|
2
20
|
toolbox: {
|
|
3
21
|
brush: {
|