echarts 4.0.4 → 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 +1 -1
- package/KEYS +74 -0
- package/LICENSE +223 -29
- package/NOTICE +5 -0
- package/README.md +8 -1
- 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 +5624 -1049
- package/dist/echarts-en.common.min.js +21 -1
- package/dist/echarts-en.js +10720 -1979
- package/dist/echarts-en.js.map +1 -1
- package/dist/echarts-en.min.js +21 -1
- package/dist/echarts-en.simple.js +3835 -869
- package/dist/echarts-en.simple.min.js +21 -1
- package/dist/echarts.common.js +5624 -1049
- package/dist/echarts.common.min.js +21 -1
- package/dist/echarts.js +10720 -1979
- package/dist/echarts.js.map +1 -1
- package/dist/echarts.min.js +21 -1
- package/dist/echarts.simple.js +3835 -869
- 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 +112 -14
- 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 +18 -0
- 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 +18 -0
- 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 +53 -12
- package/lib/chart/helper/SymbolDraw.js +22 -2
- package/lib/chart/helper/createGraphFromNodeEdge.js +27 -3
- package/lib/chart/helper/createGraphFromNodeMatrix.js +19 -0
- package/lib/chart/helper/createListFromArray.js +19 -0
- package/lib/chart/helper/createListSimply.js +19 -0
- package/lib/chart/helper/createRenderPlanner.js +21 -2
- package/lib/chart/helper/labelHelper.js +19 -0
- package/lib/chart/helper/treeHelper.js +18 -0
- package/lib/chart/helper/whiskerBoxCommon.js +20 -27
- package/lib/chart/line/LineSeries.js +25 -10
- package/lib/chart/line/LineView.js +122 -41
- package/lib/chart/line/helper.js +39 -4
- package/lib/chart/line/lineAnimationDiff.js +18 -0
- package/lib/chart/line/poly.js +62 -36
- package/lib/chart/line.js +18 -0
- package/lib/chart/lines/LinesSeries.js +25 -4
- 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 +18 -0
- 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 +19 -0
- package/lib/chart/pie/PieView.js +19 -0
- package/lib/chart/pie/labelLayout.js +18 -0
- package/lib/chart/pie/pieLayout.js +18 -0
- package/lib/chart/pie.js +18 -0
- package/lib/chart/radar/RadarSeries.js +19 -0
- 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 +24 -0
- package/lib/chart/sunburst/SunburstSeries.js +18 -0
- package/lib/chart/sunburst/SunburstView.js +27 -9
- 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 +39 -69
- 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 +18 -0
- package/lib/component/axisPointer/findPointFromSeries.js +19 -0
- package/lib/component/axisPointer/globalListener.js +19 -0
- package/lib/component/axisPointer/modelHelper.js +18 -0
- 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 +18 -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 +18 -0
- 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 +19 -0
- package/lib/component/helper/sliderMove.js +19 -0
- package/lib/component/legend/LegendModel.js +19 -0
- 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 +18 -0
- package/lib/component/marker/MarkerModel.js +19 -1
- package/lib/component/marker/MarkerView.js +18 -0
- package/lib/component/marker/markerHelper.js +25 -1
- 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 +41 -31
- 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 +18 -0
- package/lib/component/visualMap/ContinuousView.js +18 -0
- package/lib/component/visualMap/PiecewiseModel.js +19 -0
- package/lib/component/visualMap/PiecewiseView.js +18 -0
- package/lib/component/visualMap/VisualMapModel.js +18 -0
- 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 +164 -85
- package/lib/coord/View.js +19 -0
- package/lib/coord/axisDefault.js +52 -42
- package/lib/coord/axisHelper.js +120 -85
- 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 +19 -1
- 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 +18 -0
- 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 +184 -121
- 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 +26 -2
- package/lib/data/helper/createDimensions.js +19 -0
- package/lib/data/helper/dataProvider.js +22 -4
- package/lib/data/helper/dataStackHelper.js +50 -5
- package/lib/data/helper/dimensionHelper.js +26 -1
- 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 +38 -16
- package/lib/export.js +19 -0
- package/lib/helper.js +21 -1
- 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 +139 -22
- package/lib/layout/barPolar.js +21 -1
- package/lib/layout/points.js +30 -7
- package/lib/loading/default.js +18 -0
- package/lib/model/Component.js +19 -0
- package/lib/model/Global.js +19 -1
- package/lib/model/Model.js +19 -0
- package/lib/model/OptionManager.js +19 -0
- package/lib/model/Series.js +21 -2
- package/lib/model/globalDefault.js +18 -0
- package/lib/model/mixin/areaStyle.js +18 -0
- package/lib/model/mixin/boxLayout.js +18 -0
- package/lib/model/mixin/colorPalette.js +19 -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 +20 -0
- package/lib/processor/dataFilter.js +18 -0
- package/lib/processor/dataSample.js +27 -5
- package/lib/processor/dataStack.js +18 -0
- package/lib/scale/Interval.js +19 -14
- package/lib/scale/Log.js +19 -0
- package/lib/scale/Ordinal.js +26 -1
- package/lib/scale/Scale.js +26 -15
- package/lib/scale/Time.js +18 -0
- package/lib/scale/helper.js +19 -0
- package/lib/stream/Scheduler.js +110 -37
- package/lib/stream/task.js +104 -11
- 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 +30 -1
- package/lib/util/graphic.js +19 -0
- package/lib/util/layout.js +18 -0
- package/lib/util/model.js +19 -0
- 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 +20 -2
- 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 +18 -0
- package/lib/visual/seriesColor.js +18 -0
- package/lib/visual/symbol.js +28 -2
- package/lib/visual/visualDefault.js +19 -0
- package/lib/visual/visualSolution.js +22 -1
- 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 +120 -16
- 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 +19 -0
- 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 +19 -0
- 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 +60 -14
- package/src/chart/helper/SymbolDraw.js +23 -2
- package/src/chart/helper/createGraphFromNodeEdge.js +29 -6
- package/src/chart/helper/createGraphFromNodeMatrix.js +19 -0
- package/src/chart/helper/createListFromArray.js +19 -0
- package/src/chart/helper/createListSimply.js +19 -0
- package/src/chart/helper/createRenderPlanner.js +21 -2
- package/src/chart/helper/labelHelper.js +19 -0
- package/src/chart/helper/treeHelper.js +19 -0
- package/src/chart/helper/whiskerBoxCommon.js +19 -32
- package/src/chart/line/LineSeries.js +28 -10
- package/src/chart/line/LineView.js +127 -38
- package/src/chart/line/helper.js +31 -5
- package/src/chart/line/lineAnimationDiff.js +19 -0
- package/src/chart/line/poly.js +64 -39
- package/src/chart/line.js +19 -0
- package/src/chart/lines/LinesSeries.js +27 -4
- 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 +19 -0
- 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 +19 -0
- package/src/chart/pie/PieView.js +19 -0
- package/src/chart/pie/labelLayout.js +19 -0
- package/src/chart/pie/pieLayout.js +19 -0
- package/src/chart/pie.js +19 -0
- package/src/chart/radar/RadarSeries.js +19 -0
- 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 +24 -0
- package/src/chart/sunburst/SunburstSeries.js +19 -0
- package/src/chart/sunburst/SunburstView.js +28 -9
- 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 +43 -88
- 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 +19 -0
- package/src/component/axisPointer/findPointFromSeries.js +19 -0
- package/src/component/axisPointer/globalListener.js +19 -0
- package/src/component/axisPointer/modelHelper.js +19 -0
- 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 +19 -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 +19 -0
- 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 +19 -0
- package/src/component/helper/sliderMove.js +19 -0
- package/src/component/legend/LegendModel.js +19 -0
- 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 +19 -0
- package/src/component/marker/MarkerModel.js +20 -1
- package/src/component/marker/MarkerView.js +19 -0
- package/src/component/marker/markerHelper.js +24 -1
- 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 +40 -31
- 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 +19 -0
- package/src/component/visualMap/ContinuousView.js +19 -0
- package/src/component/visualMap/PiecewiseModel.js +19 -0
- package/src/component/visualMap/PiecewiseView.js +19 -0
- package/src/component/visualMap/VisualMapModel.js +19 -0
- 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 +157 -98
- package/src/coord/View.js +19 -0
- package/src/coord/axisDefault.js +68 -41
- package/src/coord/axisHelper.js +127 -86
- 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 +23 -1
- package/src/coord/calendar/CalendarModel.js +19 -0
- package/src/coord/calendar/prepareCustom.js +19 -0
- 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 +19 -0
- 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 +163 -87
- 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 +24 -2
- package/src/data/helper/createDimensions.js +19 -0
- package/src/data/helper/dataProvider.js +23 -4
- package/src/data/helper/dataStackHelper.js +46 -9
- package/src/data/helper/dimensionHelper.js +26 -1
- 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 +37 -20
- package/src/export.js +19 -0
- package/src/helper.js +26 -2
- 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 +135 -23
- package/src/layout/barPolar.js +20 -1
- package/src/layout/points.js +27 -7
- package/src/loading/default.js +19 -0
- package/src/model/Component.js +19 -0
- package/src/model/Global.js +19 -2
- package/src/model/Model.js +19 -0
- package/src/model/OptionManager.js +19 -0
- package/src/model/Series.js +21 -2
- package/src/model/globalDefault.js +19 -0
- package/src/model/mixin/areaStyle.js +19 -0
- package/src/model/mixin/boxLayout.js +19 -0
- package/src/model/mixin/colorPalette.js +19 -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 +22 -0
- package/src/processor/dataFilter.js +19 -0
- package/src/processor/dataSample.js +29 -3
- package/src/processor/dataStack.js +19 -0
- package/src/scale/Interval.js +19 -12
- package/src/scale/Log.js +19 -0
- package/src/scale/Ordinal.js +27 -1
- package/src/scale/Scale.js +26 -12
- package/src/scale/Time.js +19 -0
- package/src/scale/helper.js +19 -0
- package/src/stream/Scheduler.js +110 -34
- package/src/stream/task.js +105 -11
- 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 +34 -6
- package/src/util/graphic.js +19 -0
- package/src/util/layout.js +19 -0
- package/src/util/model.js +20 -0
- 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 +21 -2
- 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 +19 -0
- package/src/visual/seriesColor.js +19 -0
- package/src/visual/symbol.js +34 -2
- package/src/visual/visualDefault.js +19 -0
- package/src/visual/visualSolution.js +21 -1
- 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 -222
- 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 -233
- 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
|
@@ -0,0 +1,369 @@
|
|
|
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
|
+
*/
|
|
19
|
+
|
|
20
|
+
import * as zrUtil from 'zrender/src/core/util';
|
|
21
|
+
import * as textContain from 'zrender/src/contain/text';
|
|
22
|
+
import {makeInner} from '../util/model';
|
|
23
|
+
import {makeLabelFormatter} from './axisHelper';
|
|
24
|
+
|
|
25
|
+
var inner = makeInner();
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @param {module:echats/coord/Axis} axis
|
|
29
|
+
* @return {Object} {
|
|
30
|
+
* labels: [{
|
|
31
|
+
* formattedLabel: string,
|
|
32
|
+
* rawLabel: string,
|
|
33
|
+
* tickValue: number
|
|
34
|
+
* }, ...],
|
|
35
|
+
* labelCategoryInterval: number
|
|
36
|
+
* }
|
|
37
|
+
*/
|
|
38
|
+
export function createAxisLabels(axis) {
|
|
39
|
+
// Only ordinal scale support tick interval
|
|
40
|
+
return axis.type === 'category'
|
|
41
|
+
? makeCategoryLabels(axis)
|
|
42
|
+
: makeRealNumberLabels(axis);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @param {module:echats/coord/Axis} axis
|
|
47
|
+
* @param {module:echarts/model/Model} tickModel For example, can be axisTick, splitLine, splitArea.
|
|
48
|
+
* @return {Object} {
|
|
49
|
+
* ticks: Array.<number>
|
|
50
|
+
* tickCategoryInterval: number
|
|
51
|
+
* }
|
|
52
|
+
*/
|
|
53
|
+
export function createAxisTicks(axis, tickModel) {
|
|
54
|
+
// Only ordinal scale support tick interval
|
|
55
|
+
return axis.type === 'category'
|
|
56
|
+
? makeCategoryTicks(axis, tickModel)
|
|
57
|
+
: {ticks: axis.scale.getTicks()};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function makeCategoryLabels(axis) {
|
|
61
|
+
var labelModel = axis.getLabelModel();
|
|
62
|
+
var result = makeCategoryLabelsActually(axis, labelModel);
|
|
63
|
+
|
|
64
|
+
return (!labelModel.get('show') || axis.scale.isBlank())
|
|
65
|
+
? {labels: [], labelCategoryInterval: result.labelCategoryInterval}
|
|
66
|
+
: result;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function makeCategoryLabelsActually(axis, labelModel) {
|
|
70
|
+
var labelsCache = getListCache(axis, 'labels');
|
|
71
|
+
var optionLabelInterval = getOptionCategoryInterval(labelModel);
|
|
72
|
+
var result = listCacheGet(labelsCache, optionLabelInterval);
|
|
73
|
+
|
|
74
|
+
if (result) {
|
|
75
|
+
return result;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
var labels;
|
|
79
|
+
var numericLabelInterval;
|
|
80
|
+
|
|
81
|
+
if (zrUtil.isFunction(optionLabelInterval)) {
|
|
82
|
+
labels = makeLabelsByCustomizedCategoryInterval(axis, optionLabelInterval);
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
numericLabelInterval = optionLabelInterval === 'auto'
|
|
86
|
+
? makeAutoCategoryInterval(axis) : optionLabelInterval;
|
|
87
|
+
labels = makeLabelsByNumericCategoryInterval(axis, numericLabelInterval);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Cache to avoid calling interval function repeatly.
|
|
91
|
+
return listCacheSet(labelsCache, optionLabelInterval, {
|
|
92
|
+
labels: labels, labelCategoryInterval: numericLabelInterval
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function makeCategoryTicks(axis, tickModel) {
|
|
97
|
+
var ticksCache = getListCache(axis, 'ticks');
|
|
98
|
+
var optionTickInterval = getOptionCategoryInterval(tickModel);
|
|
99
|
+
var result = listCacheGet(ticksCache, optionTickInterval);
|
|
100
|
+
|
|
101
|
+
if (result) {
|
|
102
|
+
return result;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
var ticks;
|
|
106
|
+
var tickCategoryInterval;
|
|
107
|
+
|
|
108
|
+
// Optimize for the case that large category data and no label displayed,
|
|
109
|
+
// we should not return all ticks.
|
|
110
|
+
if (!tickModel.get('show') || axis.scale.isBlank()) {
|
|
111
|
+
ticks = [];
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (zrUtil.isFunction(optionTickInterval)) {
|
|
115
|
+
ticks = makeLabelsByCustomizedCategoryInterval(axis, optionTickInterval, true);
|
|
116
|
+
}
|
|
117
|
+
// Always use label interval by default despite label show. Consider this
|
|
118
|
+
// scenario, Use multiple grid with the xAxis sync, and only one xAxis shows
|
|
119
|
+
// labels. `splitLine` and `axisTick` should be consistent in this case.
|
|
120
|
+
else if (optionTickInterval === 'auto') {
|
|
121
|
+
var labelsResult = makeCategoryLabelsActually(axis, axis.getLabelModel());
|
|
122
|
+
tickCategoryInterval = labelsResult.labelCategoryInterval;
|
|
123
|
+
ticks = zrUtil.map(labelsResult.labels, function (labelItem) {
|
|
124
|
+
return labelItem.tickValue;
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
tickCategoryInterval = optionTickInterval;
|
|
129
|
+
ticks = makeLabelsByNumericCategoryInterval(axis, tickCategoryInterval, true);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// Cache to avoid calling interval function repeatly.
|
|
133
|
+
return listCacheSet(ticksCache, optionTickInterval, {
|
|
134
|
+
ticks: ticks, tickCategoryInterval: tickCategoryInterval
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function makeRealNumberLabels(axis) {
|
|
139
|
+
var ticks = axis.scale.getTicks();
|
|
140
|
+
var labelFormatter = makeLabelFormatter(axis);
|
|
141
|
+
return {
|
|
142
|
+
labels: zrUtil.map(ticks, function (tickValue, idx) {
|
|
143
|
+
return {
|
|
144
|
+
formattedLabel: labelFormatter(tickValue, idx),
|
|
145
|
+
rawLabel: axis.scale.getLabel(tickValue),
|
|
146
|
+
tickValue: tickValue
|
|
147
|
+
};
|
|
148
|
+
})
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// Large category data calculation is performence sensitive, and ticks and label
|
|
153
|
+
// probably be fetched by multiple times. So we cache the result.
|
|
154
|
+
// axis is created each time during a ec process, so we do not need to clear cache.
|
|
155
|
+
function getListCache(axis, prop) {
|
|
156
|
+
// Because key can be funciton, and cache size always be small, we use array cache.
|
|
157
|
+
return inner(axis)[prop] || (inner(axis)[prop] = []);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function listCacheGet(cache, key) {
|
|
161
|
+
for (var i = 0; i < cache.length; i++) {
|
|
162
|
+
if (cache[i].key === key) {
|
|
163
|
+
return cache[i].value;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function listCacheSet(cache, key, value) {
|
|
169
|
+
cache.push({key: key, value: value});
|
|
170
|
+
return value;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function makeAutoCategoryInterval(axis) {
|
|
174
|
+
var result = inner(axis).autoInterval;
|
|
175
|
+
return result != null
|
|
176
|
+
? result
|
|
177
|
+
: (inner(axis).autoInterval = axis.calculateCategoryInterval());
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Calculate interval for category axis ticks and labels.
|
|
182
|
+
* To get precise result, at least one of `getRotate` and `isHorizontal`
|
|
183
|
+
* should be implemented in axis.
|
|
184
|
+
*/
|
|
185
|
+
export function calculateCategoryInterval(axis) {
|
|
186
|
+
var params = fetchAutoCategoryIntervalCalculationParams(axis);
|
|
187
|
+
var labelFormatter = makeLabelFormatter(axis);
|
|
188
|
+
var rotation = (params.axisRotate - params.labelRotate) / 180 * Math.PI;
|
|
189
|
+
|
|
190
|
+
var ordinalScale = axis.scale;
|
|
191
|
+
var ordinalExtent = ordinalScale.getExtent();
|
|
192
|
+
// Providing this method is for optimization:
|
|
193
|
+
// avoid generating a long array by `getTicks`
|
|
194
|
+
// in large category data case.
|
|
195
|
+
var tickCount = ordinalScale.count();
|
|
196
|
+
|
|
197
|
+
if (ordinalExtent[1] - ordinalExtent[0] < 1) {
|
|
198
|
+
return 0;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
var step = 1;
|
|
202
|
+
// Simple optimization. Empirical value: tick count should less than 40.
|
|
203
|
+
if (tickCount > 40) {
|
|
204
|
+
step = Math.max(1, Math.floor(tickCount / 40));
|
|
205
|
+
}
|
|
206
|
+
var tickValue = ordinalExtent[0];
|
|
207
|
+
var unitSpan = axis.dataToCoord(tickValue + 1) - axis.dataToCoord(tickValue);
|
|
208
|
+
var unitW = Math.abs(unitSpan * Math.cos(rotation));
|
|
209
|
+
var unitH = Math.abs(unitSpan * Math.sin(rotation));
|
|
210
|
+
|
|
211
|
+
var maxW = 0;
|
|
212
|
+
var maxH = 0;
|
|
213
|
+
|
|
214
|
+
// Caution: Performance sensitive for large category data.
|
|
215
|
+
// Consider dataZoom, we should make appropriate step to avoid O(n) loop.
|
|
216
|
+
for (; tickValue <= ordinalExtent[1]; tickValue += step) {
|
|
217
|
+
var width = 0;
|
|
218
|
+
var height = 0;
|
|
219
|
+
|
|
220
|
+
// Polar is also calculated in assumptive linear layout here.
|
|
221
|
+
// Not precise, do not consider align and vertical align
|
|
222
|
+
// and each distance from axis line yet.
|
|
223
|
+
var rect = textContain.getBoundingRect(
|
|
224
|
+
labelFormatter(tickValue), params.font, 'center', 'top'
|
|
225
|
+
);
|
|
226
|
+
// Magic number
|
|
227
|
+
width = rect.width * 1.3;
|
|
228
|
+
height = rect.height * 1.3;
|
|
229
|
+
|
|
230
|
+
// Min size, void long loop.
|
|
231
|
+
maxW = Math.max(maxW, width, 7);
|
|
232
|
+
maxH = Math.max(maxH, height, 7);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
var dw = maxW / unitW;
|
|
236
|
+
var dh = maxH / unitH;
|
|
237
|
+
// 0/0 is NaN, 1/0 is Infinity.
|
|
238
|
+
isNaN(dw) && (dw = Infinity);
|
|
239
|
+
isNaN(dh) && (dh = Infinity);
|
|
240
|
+
var interval = Math.max(0, Math.floor(Math.min(dw, dh)));
|
|
241
|
+
|
|
242
|
+
var cache = inner(axis.model);
|
|
243
|
+
var lastAutoInterval = cache.lastAutoInterval;
|
|
244
|
+
var lastTickCount = cache.lastTickCount;
|
|
245
|
+
|
|
246
|
+
// Use cache to keep interval stable while moving zoom window,
|
|
247
|
+
// otherwise the calculated interval might jitter when the zoom
|
|
248
|
+
// window size is close to the interval-changing size.
|
|
249
|
+
if (lastAutoInterval != null
|
|
250
|
+
&& lastTickCount != null
|
|
251
|
+
&& Math.abs(lastAutoInterval - interval) <= 1
|
|
252
|
+
&& Math.abs(lastTickCount - tickCount) <= 1
|
|
253
|
+
// Always choose the bigger one, otherwise the critical
|
|
254
|
+
// point is not the same when zooming in or zooming out.
|
|
255
|
+
&& lastAutoInterval > interval
|
|
256
|
+
) {
|
|
257
|
+
interval = lastAutoInterval;
|
|
258
|
+
}
|
|
259
|
+
// Only update cache if cache not used, otherwise the
|
|
260
|
+
// changing of interval is too insensitive.
|
|
261
|
+
else {
|
|
262
|
+
cache.lastTickCount = tickCount;
|
|
263
|
+
cache.lastAutoInterval = interval;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
return interval;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
function fetchAutoCategoryIntervalCalculationParams(axis) {
|
|
270
|
+
var labelModel = axis.getLabelModel();
|
|
271
|
+
return {
|
|
272
|
+
axisRotate: axis.getRotate
|
|
273
|
+
? axis.getRotate()
|
|
274
|
+
: (axis.isHorizontal && !axis.isHorizontal())
|
|
275
|
+
? 90
|
|
276
|
+
: 0,
|
|
277
|
+
labelRotate: labelModel.get('rotate') || 0,
|
|
278
|
+
font: labelModel.getFont()
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
function makeLabelsByNumericCategoryInterval(axis, categoryInterval, onlyTick) {
|
|
283
|
+
var labelFormatter = makeLabelFormatter(axis);
|
|
284
|
+
var ordinalScale = axis.scale;
|
|
285
|
+
var ordinalExtent = ordinalScale.getExtent();
|
|
286
|
+
var labelModel = axis.getLabelModel();
|
|
287
|
+
var result = [];
|
|
288
|
+
|
|
289
|
+
// TODO: axisType: ordinalTime, pick the tick from each month/day/year/...
|
|
290
|
+
|
|
291
|
+
var step = Math.max((categoryInterval || 0) + 1, 1);
|
|
292
|
+
var startTick = ordinalExtent[0];
|
|
293
|
+
var tickCount = ordinalScale.count();
|
|
294
|
+
|
|
295
|
+
// Calculate start tick based on zero if possible to keep label consistent
|
|
296
|
+
// while zooming and moving while interval > 0. Otherwise the selection
|
|
297
|
+
// of displayable ticks and symbols probably keep changing.
|
|
298
|
+
// 3 is empirical value.
|
|
299
|
+
if (startTick !== 0 && step > 1 && tickCount / step > 2) {
|
|
300
|
+
startTick = Math.round(Math.ceil(startTick / step) * step);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
// (1) Only add min max label here but leave overlap checking
|
|
304
|
+
// to render stage, which also ensure the returned list
|
|
305
|
+
// suitable for splitLine and splitArea rendering.
|
|
306
|
+
// (2) Scales except category always contain min max label so
|
|
307
|
+
// do not need to perform this process.
|
|
308
|
+
var showMinMax = {
|
|
309
|
+
min: labelModel.get('showMinLabel'),
|
|
310
|
+
max: labelModel.get('showMaxLabel')
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
if (showMinMax.min && startTick !== ordinalExtent[0]) {
|
|
314
|
+
addItem(ordinalExtent[0]);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// Optimize: avoid generating large array by `ordinalScale.getTicks()`.
|
|
318
|
+
var tickValue = startTick;
|
|
319
|
+
for (; tickValue <= ordinalExtent[1]; tickValue += step) {
|
|
320
|
+
addItem(tickValue);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
if (showMinMax.max && tickValue !== ordinalExtent[1]) {
|
|
324
|
+
addItem(ordinalExtent[1]);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
function addItem(tVal) {
|
|
328
|
+
result.push(onlyTick
|
|
329
|
+
? tVal
|
|
330
|
+
: {
|
|
331
|
+
formattedLabel: labelFormatter(tVal),
|
|
332
|
+
rawLabel: ordinalScale.getLabel(tVal),
|
|
333
|
+
tickValue: tVal
|
|
334
|
+
}
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
return result;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// When interval is function, the result `false` means ignore the tick.
|
|
342
|
+
// It is time consuming for large category data.
|
|
343
|
+
function makeLabelsByCustomizedCategoryInterval(axis, categoryInterval, onlyTick) {
|
|
344
|
+
var ordinalScale = axis.scale;
|
|
345
|
+
var labelFormatter = makeLabelFormatter(axis);
|
|
346
|
+
var result = [];
|
|
347
|
+
|
|
348
|
+
zrUtil.each(ordinalScale.getTicks(), function (tickValue) {
|
|
349
|
+
var rawLabel = ordinalScale.getLabel(tickValue);
|
|
350
|
+
if (categoryInterval(tickValue, rawLabel)) {
|
|
351
|
+
result.push(onlyTick
|
|
352
|
+
? tickValue
|
|
353
|
+
: {
|
|
354
|
+
formattedLabel: labelFormatter(tickValue),
|
|
355
|
+
rawLabel: rawLabel,
|
|
356
|
+
tickValue: tickValue
|
|
357
|
+
}
|
|
358
|
+
);
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
|
|
362
|
+
return result;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
// Can be null|'auto'|number|function
|
|
366
|
+
function getOptionCategoryInterval(model) {
|
|
367
|
+
var interval = model.get('interval');
|
|
368
|
+
return interval == null ? 'auto' : interval;
|
|
369
|
+
}
|
|
@@ -1,3 +1,22 @@
|
|
|
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
|
+
*/
|
|
19
|
+
|
|
1
20
|
import * as zrUtil from 'zrender/src/core/util';
|
|
2
21
|
import * as layout from '../../util/layout';
|
|
3
22
|
import * as numberUtil from '../../util/number';
|
|
@@ -181,7 +200,10 @@ Calendar.prototype = {
|
|
|
181
200
|
var date = dayInfo.formatedDate;
|
|
182
201
|
|
|
183
202
|
// if not in range return [NaN, NaN]
|
|
184
|
-
if (clamp && !(
|
|
203
|
+
if (clamp && !(
|
|
204
|
+
dayInfo.time >= range.start.time
|
|
205
|
+
&& dayInfo.time < range.end.time + PROXIMATE_ONE_DAY
|
|
206
|
+
)) {
|
|
185
207
|
return [NaN, NaN];
|
|
186
208
|
}
|
|
187
209
|
|
|
@@ -1,3 +1,22 @@
|
|
|
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
|
+
*/
|
|
19
|
+
|
|
1
20
|
import * as zrUtil from 'zrender/src/core/util';
|
|
2
21
|
import ComponentModel from '../../model/Component';
|
|
3
22
|
import {
|
|
@@ -1,3 +1,22 @@
|
|
|
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
|
+
*/
|
|
19
|
+
|
|
1
20
|
export default function (coordSys) {
|
|
2
21
|
var rect = coordSys.getRect();
|
|
3
22
|
var rangeInfo = coordSys.getRangeInfo();
|
|
@@ -1,3 +1,22 @@
|
|
|
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
|
+
*/
|
|
19
|
+
|
|
1
20
|
import * as zrUtil from 'zrender/src/core/util';
|
|
2
21
|
import Axis from '../Axis';
|
|
3
22
|
|
|
@@ -41,11 +60,14 @@ Axis2D.prototype = {
|
|
|
41
60
|
* Index of axis, can be used as key
|
|
42
61
|
*/
|
|
43
62
|
index: 0,
|
|
63
|
+
|
|
44
64
|
/**
|
|
45
|
-
*
|
|
46
|
-
* @
|
|
65
|
+
* Implemented in <module:echarts/coord/cartesian/Grid>.
|
|
66
|
+
* @return {Array.<module:echarts/coord/cartesian/Axis2D>}
|
|
67
|
+
* If not on zero of other axis, return null/undefined.
|
|
68
|
+
* If no axes, return an empty array.
|
|
47
69
|
*/
|
|
48
|
-
|
|
70
|
+
getAxesOnZeroOf: null,
|
|
49
71
|
|
|
50
72
|
/**
|
|
51
73
|
* Axis model
|
|
@@ -78,21 +100,6 @@ Axis2D.prototype = {
|
|
|
78
100
|
this.grid.getOtherAxis();
|
|
79
101
|
},
|
|
80
102
|
|
|
81
|
-
/**
|
|
82
|
-
* If label is ignored.
|
|
83
|
-
* Automatically used when axis is category and label can not be all shown
|
|
84
|
-
* @param {number} idx
|
|
85
|
-
* @return {boolean}
|
|
86
|
-
*/
|
|
87
|
-
isLabelIgnored: function (idx) {
|
|
88
|
-
if (this.type === 'category') {
|
|
89
|
-
var labelInterval = this.getLabelInterval();
|
|
90
|
-
return ((typeof labelInterval === 'function')
|
|
91
|
-
&& !labelInterval(idx, this.scale.getLabel(idx)))
|
|
92
|
-
|| idx % (labelInterval + 1);
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
|
|
96
103
|
/**
|
|
97
104
|
* @override
|
|
98
105
|
*/
|
|
@@ -1,3 +1,22 @@
|
|
|
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
|
+
*/
|
|
19
|
+
|
|
1
20
|
import * as zrUtil from 'zrender/src/core/util';
|
|
2
21
|
import ComponentModel from '../../model/Component';
|
|
3
22
|
import axisModelCreator from '../axisModelCreator';
|
|
@@ -1,3 +1,22 @@
|
|
|
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
|
+
*/
|
|
19
|
+
|
|
1
20
|
/**
|
|
2
21
|
* Cartesian coordinate system
|
|
3
22
|
* @module echarts/coord/Cartesian
|
|
@@ -1,3 +1,22 @@
|
|
|
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
|
+
*/
|
|
19
|
+
|
|
1
20
|
|
|
2
21
|
import * as zrUtil from 'zrender/src/core/util';
|
|
3
22
|
import Cartesian from './Cartesian';
|
|
@@ -72,15 +91,19 @@ Cartesian2D.prototype = {
|
|
|
72
91
|
* @return {Array.<number>}
|
|
73
92
|
*/
|
|
74
93
|
clampData: function (data, out) {
|
|
75
|
-
var
|
|
76
|
-
var
|
|
94
|
+
var xScale = this.getAxis('x').scale;
|
|
95
|
+
var yScale = this.getAxis('y').scale;
|
|
96
|
+
var xAxisExtent = xScale.getExtent();
|
|
97
|
+
var yAxisExtent = yScale.getExtent();
|
|
98
|
+
var x = xScale.parse(data[0]);
|
|
99
|
+
var y = yScale.parse(data[1]);
|
|
77
100
|
out = out || [];
|
|
78
101
|
out[0] = Math.min(
|
|
79
|
-
Math.max(Math.min(xAxisExtent[0], xAxisExtent[1]),
|
|
102
|
+
Math.max(Math.min(xAxisExtent[0], xAxisExtent[1]), x),
|
|
80
103
|
Math.max(xAxisExtent[0], xAxisExtent[1])
|
|
81
104
|
);
|
|
82
105
|
out[1] = Math.min(
|
|
83
|
-
Math.max(Math.min(yAxisExtent[0], yAxisExtent[1]),
|
|
106
|
+
Math.max(Math.min(yAxisExtent[0], yAxisExtent[1]), y),
|
|
84
107
|
Math.max(yAxisExtent[0], yAxisExtent[1])
|
|
85
108
|
);
|
|
86
109
|
|