tvision-charts-component 3.3.24
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/README.md +40 -0
- package/dist/esm/_type/chart.d.ts +6 -0
- package/dist/esm/_type/chart.js +2 -0
- package/dist/esm/_type/chart.js.map +1 -0
- package/dist/esm/_type/data.d.ts +40 -0
- package/dist/esm/_type/data.js +2 -0
- package/dist/esm/_type/data.js.map +1 -0
- package/dist/esm/_type/index.d.ts +3 -0
- package/dist/esm/_type/index.js +4 -0
- package/dist/esm/_type/index.js.map +1 -0
- package/dist/esm/_type/options.d.ts +83 -0
- package/dist/esm/_type/options.js +2 -0
- package/dist/esm/_type/options.js.map +1 -0
- package/dist/esm/basicBar/README.md +79 -0
- package/dist/esm/basicBar/_example/Basic.d.ts +1 -0
- package/dist/esm/basicBar/_example/Basic.js +29 -0
- package/dist/esm/basicBar/_example/Basic.js.map +1 -0
- package/dist/esm/basicBar/_example/Basic.jsx +32 -0
- package/dist/esm/basicBar/_example/CustomColorSingleBar.d.ts +1 -0
- package/dist/esm/basicBar/_example/CustomColorSingleBar.js +58 -0
- package/dist/esm/basicBar/_example/CustomColorSingleBar.js.map +1 -0
- package/dist/esm/basicBar/_example/CustomColorSingleBar.jsx +66 -0
- package/dist/esm/basicBar/_example/FixedWidthBar.d.ts +1 -0
- package/dist/esm/basicBar/_example/FixedWidthBar.js +57 -0
- package/dist/esm/basicBar/_example/FixedWidthBar.js.map +1 -0
- package/dist/esm/basicBar/_example/FixedWidthBar.jsx +92 -0
- package/dist/esm/basicBar/_example/GroupedBar.d.ts +1 -0
- package/dist/esm/basicBar/_example/GroupedBar.js +35 -0
- package/dist/esm/basicBar/_example/GroupedBar.js.map +1 -0
- package/dist/esm/basicBar/_example/GroupedBar.jsx +37 -0
- package/dist/esm/basicBar/_example/HorizontalBar.d.ts +1 -0
- package/dist/esm/basicBar/_example/HorizontalBar.js +92 -0
- package/dist/esm/basicBar/_example/HorizontalBar.js.map +1 -0
- package/dist/esm/basicBar/_example/HorizontalBar.jsx +95 -0
- package/dist/esm/basicBar/_example/HorizontalStackedBar.d.ts +1 -0
- package/dist/esm/basicBar/_example/HorizontalStackedBar.js +97 -0
- package/dist/esm/basicBar/_example/HorizontalStackedBar.js.map +1 -0
- package/dist/esm/basicBar/_example/HorizontalStackedBar.jsx +100 -0
- package/dist/esm/basicBar/_example/LabelRotate.d.ts +1 -0
- package/dist/esm/basicBar/_example/LabelRotate.js +20 -0
- package/dist/esm/basicBar/_example/LabelRotate.js.map +1 -0
- package/dist/esm/basicBar/_example/LabelRotate.jsx +24 -0
- package/dist/esm/basicBar/_example/StackedBar.d.ts +1 -0
- package/dist/esm/basicBar/_example/StackedBar.js +44 -0
- package/dist/esm/basicBar/_example/StackedBar.js.map +1 -0
- package/dist/esm/basicBar/_example/StackedBar.jsx +46 -0
- package/dist/esm/basicBar/_example/VerticalWaterfallBar.d.ts +1 -0
- package/dist/esm/basicBar/_example/VerticalWaterfallBar.js +100 -0
- package/dist/esm/basicBar/_example/VerticalWaterfallBar.js.map +1 -0
- package/dist/esm/basicBar/_example/VerticalWaterfallBar.jsx +117 -0
- package/dist/esm/basicBar/_example/WaterfallHoverBar.d.ts +1 -0
- package/dist/esm/basicBar/_example/WaterfallHoverBar.js +134 -0
- package/dist/esm/basicBar/_example/WaterfallHoverBar.js.map +1 -0
- package/dist/esm/basicBar/_example/WaterfallHoverBar.jsx +152 -0
- package/dist/esm/basicBar/_example/WaterfallZebraBar.d.ts +1 -0
- package/dist/esm/basicBar/_example/WaterfallZebraBar.js +122 -0
- package/dist/esm/basicBar/_example/WaterfallZebraBar.js.map +1 -0
- package/dist/esm/basicBar/_example/WaterfallZebraBar.jsx +137 -0
- package/dist/esm/basicBar/_example/XaxisBelowWaterfall.d.ts +1 -0
- package/dist/esm/basicBar/_example/XaxisBelowWaterfall.js +93 -0
- package/dist/esm/basicBar/_example/XaxisBelowWaterfall.js.map +1 -0
- package/dist/esm/basicBar/_example/XaxisBelowWaterfall.jsx +101 -0
- package/dist/esm/basicBar/_example/XaxisHideBar.d.ts +1 -0
- package/dist/esm/basicBar/_example/XaxisHideBar.js +54 -0
- package/dist/esm/basicBar/_example/XaxisHideBar.js.map +1 -0
- package/dist/esm/basicBar/_example/XaxisHideBar.jsx +59 -0
- package/dist/esm/basicBar/_example/XaxisLabelWrap.d.ts +1 -0
- package/dist/esm/basicBar/_example/XaxisLabelWrap.js +66 -0
- package/dist/esm/basicBar/_example/XaxisLabelWrap.js.map +1 -0
- package/dist/esm/basicBar/_example/XaxisLabelWrap.jsx +70 -0
- package/dist/esm/basicBar/_example/XaxisTopWaterfall.d.ts +1 -0
- package/dist/esm/basicBar/_example/XaxisTopWaterfall.js +94 -0
- package/dist/esm/basicBar/_example/XaxisTopWaterfall.js.map +1 -0
- package/dist/esm/basicBar/_example/XaxisTopWaterfall.jsx +102 -0
- package/dist/esm/basicBar/_example/XaxisTopWaterfallWithLabel.d.ts +1 -0
- package/dist/esm/basicBar/_example/XaxisTopWaterfallWithLabel.js +104 -0
- package/dist/esm/basicBar/_example/XaxisTopWaterfallWithLabel.js.map +1 -0
- package/dist/esm/basicBar/_example/XaxisTopWaterfallWithLabel.jsx +112 -0
- package/dist/esm/basicBar/_example/YaxisNegativeBasicBar.d.ts +1 -0
- package/dist/esm/basicBar/_example/YaxisNegativeBasicBar.js +28 -0
- package/dist/esm/basicBar/_example/YaxisNegativeBasicBar.js.map +1 -0
- package/dist/esm/basicBar/_example/YaxisNegativeBasicBar.jsx +31 -0
- package/dist/esm/basicBar/_example/YaxisReverseZoomBar.d.ts +1 -0
- package/dist/esm/basicBar/_example/YaxisReverseZoomBar.js +117 -0
- package/dist/esm/basicBar/_example/YaxisReverseZoomBar.js.map +1 -0
- package/dist/esm/basicBar/_example/YaxisReverseZoomBar.jsx +135 -0
- package/dist/esm/basicBar/demo/basic.md +34 -0
- package/dist/esm/basicBar/demo/labelRotate.md +35 -0
- package/dist/esm/basicBar/index.d.ts +56 -0
- package/dist/esm/basicBar/index.js +42 -0
- package/dist/esm/basicBar/index.js.map +1 -0
- package/dist/esm/basicBar/index.md +30 -0
- package/dist/esm/basicBar/style/index.less +0 -0
- package/dist/esm/basicFlame/README.md +56 -0
- package/dist/esm/basicFlame/_example/BackgroundBasic.d.ts +1 -0
- package/dist/esm/basicFlame/_example/BackgroundBasic.js +52 -0
- package/dist/esm/basicFlame/_example/BackgroundBasic.js.map +1 -0
- package/dist/esm/basicFlame/_example/BackgroundBasic.jsx +57 -0
- package/dist/esm/basicFlame/_example/Basic.d.ts +1 -0
- package/dist/esm/basicFlame/_example/Basic.js +49 -0
- package/dist/esm/basicFlame/_example/Basic.js.map +1 -0
- package/dist/esm/basicFlame/_example/Basic.jsx +52 -0
- package/dist/esm/basicFlame/_example/ColorsBasic.d.ts +1 -0
- package/dist/esm/basicFlame/_example/ColorsBasic.js +50 -0
- package/dist/esm/basicFlame/_example/ColorsBasic.js.map +1 -0
- package/dist/esm/basicFlame/_example/ColorsBasic.jsx +53 -0
- package/dist/esm/basicFlame/_example/FillBasic.d.ts +1 -0
- package/dist/esm/basicFlame/_example/FillBasic.js +53 -0
- package/dist/esm/basicFlame/_example/FillBasic.js.map +1 -0
- package/dist/esm/basicFlame/_example/FillBasic.jsx +56 -0
- package/dist/esm/basicFlame/_example/HeightBasic.d.ts +1 -0
- package/dist/esm/basicFlame/_example/HeightBasic.js +49 -0
- package/dist/esm/basicFlame/_example/HeightBasic.js.map +1 -0
- package/dist/esm/basicFlame/_example/HeightBasic.jsx +52 -0
- package/dist/esm/basicFlame/_example/HueBasic.d.ts +1 -0
- package/dist/esm/basicFlame/_example/HueBasic.js +50 -0
- package/dist/esm/basicFlame/_example/HueBasic.js.map +1 -0
- package/dist/esm/basicFlame/_example/HueBasic.jsx +53 -0
- package/dist/esm/basicFlame/_example/LabelBasic.d.ts +1 -0
- package/dist/esm/basicFlame/_example/LabelBasic.js +53 -0
- package/dist/esm/basicFlame/_example/LabelBasic.js.map +1 -0
- package/dist/esm/basicFlame/_example/LabelBasic.jsx +56 -0
- package/dist/esm/basicFlame/_example/LargeBasic1.d.ts +1 -0
- package/dist/esm/basicFlame/_example/LargeBasic1.js +3895 -0
- package/dist/esm/basicFlame/_example/LargeBasic1.js.map +1 -0
- package/dist/esm/basicFlame/_example/LargeBasic1.jsx +3899 -0
- package/dist/esm/basicFlame/_example/LargeBasic2.d.ts +1 -0
- package/dist/esm/basicFlame/_example/LargeBasic2.js +10511 -0
- package/dist/esm/basicFlame/_example/LargeBasic2.js.map +1 -0
- package/dist/esm/basicFlame/_example/LargeBasic2.jsx +10515 -0
- package/dist/esm/basicFlame/_example/ResetBasic.d.ts +1 -0
- package/dist/esm/basicFlame/_example/ResetBasic.js +59 -0
- package/dist/esm/basicFlame/_example/ResetBasic.js.map +1 -0
- package/dist/esm/basicFlame/_example/ResetBasic.jsx +62 -0
- package/dist/esm/basicFlame/demo/basic.md +55 -0
- package/dist/esm/basicFlame/index.d.ts +28 -0
- package/dist/esm/basicFlame/index.js +29 -0
- package/dist/esm/basicFlame/index.js.map +1 -0
- package/dist/esm/basicFlame/index.md +23 -0
- package/dist/esm/basicFlame/style/index.less +0 -0
- package/dist/esm/basicFunnel/README.md +19 -0
- package/dist/esm/basicFunnel/_example/Basic.d.ts +1 -0
- package/dist/esm/basicFunnel/_example/Basic.js +70 -0
- package/dist/esm/basicFunnel/_example/Basic.js.map +1 -0
- package/dist/esm/basicFunnel/_example/Basic.jsx +82 -0
- package/dist/esm/basicFunnel/_example/SpaceFunnel.d.ts +1 -0
- package/dist/esm/basicFunnel/_example/SpaceFunnel.js +71 -0
- package/dist/esm/basicFunnel/_example/SpaceFunnel.js.map +1 -0
- package/dist/esm/basicFunnel/_example/SpaceFunnel.jsx +83 -0
- package/dist/esm/basicFunnel/demo/basic.md +45 -0
- package/dist/esm/basicFunnel/index.d.ts +19 -0
- package/dist/esm/basicFunnel/index.js +27 -0
- package/dist/esm/basicFunnel/index.js.map +1 -0
- package/dist/esm/basicFunnel/index.md +21 -0
- package/dist/esm/basicFunnel/style/index.less +0 -0
- package/dist/esm/basicGauge/README.md +24 -0
- package/dist/esm/basicGauge/_example/Basic.d.ts +1 -0
- package/dist/esm/basicGauge/_example/Basic.js +31 -0
- package/dist/esm/basicGauge/_example/Basic.js.map +1 -0
- package/dist/esm/basicGauge/_example/Basic.jsx +34 -0
- package/dist/esm/basicGauge/_example/ScaleGauge.d.ts +1 -0
- package/dist/esm/basicGauge/_example/ScaleGauge.js +31 -0
- package/dist/esm/basicGauge/_example/ScaleGauge.js.map +1 -0
- package/dist/esm/basicGauge/_example/ScaleGauge.jsx +34 -0
- package/dist/esm/basicGauge/_example/ThresholdGauge.d.ts +1 -0
- package/dist/esm/basicGauge/_example/ThresholdGauge.js +31 -0
- package/dist/esm/basicGauge/_example/ThresholdGauge.js.map +1 -0
- package/dist/esm/basicGauge/_example/ThresholdGauge.jsx +34 -0
- package/dist/esm/basicGauge/index.d.ts +23 -0
- package/dist/esm/basicGauge/index.js +26 -0
- package/dist/esm/basicGauge/index.js.map +1 -0
- package/dist/esm/basicHBar/README.md +15 -0
- package/dist/esm/basicHBar/_example/Basic.d.ts +1 -0
- package/dist/esm/basicHBar/_example/Basic.js +49 -0
- package/dist/esm/basicHBar/_example/Basic.js.map +1 -0
- package/dist/esm/basicHBar/_example/Basic.jsx +56 -0
- package/dist/esm/basicHBar/_example/DiskBasic.d.ts +1 -0
- package/dist/esm/basicHBar/_example/DiskBasic.js +43 -0
- package/dist/esm/basicHBar/_example/DiskBasic.js.map +1 -0
- package/dist/esm/basicHBar/_example/DiskBasic.jsx +46 -0
- package/dist/esm/basicHBar/_example/LabelRotate.d.ts +1 -0
- package/dist/esm/basicHBar/_example/LabelRotate.js +20 -0
- package/dist/esm/basicHBar/_example/LabelRotate.js.map +1 -0
- package/dist/esm/basicHBar/_example/LabelRotate.jsx +26 -0
- package/dist/esm/basicHBar/demo/basic.md +48 -0
- package/dist/esm/basicHBar/demo/labelRotate.md +35 -0
- package/dist/esm/basicHBar/index.d.ts +19 -0
- package/dist/esm/basicHBar/index.js +28 -0
- package/dist/esm/basicHBar/index.js.map +1 -0
- package/dist/esm/basicHBar/index.md +31 -0
- package/dist/esm/basicHBar/style/index.less +0 -0
- package/dist/esm/basicHeatMap/README.md +19 -0
- package/dist/esm/basicHeatMap/_example/Basic.d.ts +1 -0
- package/dist/esm/basicHeatMap/_example/Basic.js +383 -0
- package/dist/esm/basicHeatMap/_example/Basic.js.map +1 -0
- package/dist/esm/basicHeatMap/_example/Basic.jsx +386 -0
- package/dist/esm/basicHeatMap/_example/CustomRoundHeatMap.d.ts +1 -0
- package/dist/esm/basicHeatMap/_example/CustomRoundHeatMap.js +1333 -0
- package/dist/esm/basicHeatMap/_example/CustomRoundHeatMap.js.map +1 -0
- package/dist/esm/basicHeatMap/_example/CustomRoundHeatMap.jsx +1337 -0
- package/dist/esm/basicHeatMap/index.d.ts +52 -0
- package/dist/esm/basicHeatMap/index.js +26 -0
- package/dist/esm/basicHeatMap/index.js.map +1 -0
- package/dist/esm/basicLine/README.md +115 -0
- package/dist/esm/basicLine/_example/AreaLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/AreaLine.js +38 -0
- package/dist/esm/basicLine/_example/AreaLine.js.map +1 -0
- package/dist/esm/basicLine/_example/AreaLine.jsx +41 -0
- package/dist/esm/basicLine/_example/AuxiliaryHLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/AuxiliaryHLine.js +71 -0
- package/dist/esm/basicLine/_example/AuxiliaryHLine.js.map +1 -0
- package/dist/esm/basicLine/_example/AuxiliaryHLine.jsx +74 -0
- package/dist/esm/basicLine/_example/AuxiliaryLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/AuxiliaryLine.js +53 -0
- package/dist/esm/basicLine/_example/AuxiliaryLine.js.map +1 -0
- package/dist/esm/basicLine/_example/AuxiliaryLine.jsx +58 -0
- package/dist/esm/basicLine/_example/AuxiliaryVLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/AuxiliaryVLine.js +71 -0
- package/dist/esm/basicLine/_example/AuxiliaryVLine.js.map +1 -0
- package/dist/esm/basicLine/_example/AuxiliaryVLine.jsx +75 -0
- package/dist/esm/basicLine/_example/AxisFormatter.d.ts +1 -0
- package/dist/esm/basicLine/_example/AxisFormatter.js +95 -0
- package/dist/esm/basicLine/_example/AxisFormatter.js.map +1 -0
- package/dist/esm/basicLine/_example/AxisFormatter.jsx +108 -0
- package/dist/esm/basicLine/_example/BarLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/BarLine.js +91 -0
- package/dist/esm/basicLine/_example/BarLine.js.map +1 -0
- package/dist/esm/basicLine/_example/BarLine.jsx +94 -0
- package/dist/esm/basicLine/_example/Basic.d.ts +1 -0
- package/dist/esm/basicLine/_example/Basic.js +26 -0
- package/dist/esm/basicLine/_example/Basic.js.map +1 -0
- package/dist/esm/basicLine/_example/Basic.jsx +29 -0
- package/dist/esm/basicLine/_example/CustomColorLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/CustomColorLine.js +135 -0
- package/dist/esm/basicLine/_example/CustomColorLine.js.map +1 -0
- package/dist/esm/basicLine/_example/CustomColorLine.jsx +148 -0
- package/dist/esm/basicLine/_example/DataZoomLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/DataZoomLine.js +1332 -0
- package/dist/esm/basicLine/_example/DataZoomLine.js.map +1 -0
- package/dist/esm/basicLine/_example/DataZoomLine.jsx +1344 -0
- package/dist/esm/basicLine/_example/DottedLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/DottedLine.js +105 -0
- package/dist/esm/basicLine/_example/DottedLine.js.map +1 -0
- package/dist/esm/basicLine/_example/DottedLine.jsx +118 -0
- package/dist/esm/basicLine/_example/DualaxisLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/DualaxisLine.js +91 -0
- package/dist/esm/basicLine/_example/DualaxisLine.js.map +1 -0
- package/dist/esm/basicLine/_example/DualaxisLine.jsx +94 -0
- package/dist/esm/basicLine/_example/LabelLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/LabelLine.js +83 -0
- package/dist/esm/basicLine/_example/LabelLine.js.map +1 -0
- package/dist/esm/basicLine/_example/LabelLine.jsx +96 -0
- package/dist/esm/basicLine/_example/LegendLeftLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/LegendLeftLine.js +135 -0
- package/dist/esm/basicLine/_example/LegendLeftLine.js.map +1 -0
- package/dist/esm/basicLine/_example/LegendLeftLine.jsx +138 -0
- package/dist/esm/basicLine/_example/LegendSelectedLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/LegendSelectedLine.js +53 -0
- package/dist/esm/basicLine/_example/LegendSelectedLine.js.map +1 -0
- package/dist/esm/basicLine/_example/LegendSelectedLine.jsx +56 -0
- package/dist/esm/basicLine/_example/MarkLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/MarkLine.js +1345 -0
- package/dist/esm/basicLine/_example/MarkLine.js.map +1 -0
- package/dist/esm/basicLine/_example/MarkLine.jsx +1356 -0
- package/dist/esm/basicLine/_example/ScatterBarLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/ScatterBarLine.js +50 -0
- package/dist/esm/basicLine/_example/ScatterBarLine.js.map +1 -0
- package/dist/esm/basicLine/_example/ScatterBarLine.jsx +53 -0
- package/dist/esm/basicLine/_example/ScatterLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/ScatterLine.js +117 -0
- package/dist/esm/basicLine/_example/ScatterLine.js.map +1 -0
- package/dist/esm/basicLine/_example/ScatterLine.jsx +130 -0
- package/dist/esm/basicLine/_example/SmoothLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/SmoothLine.js +27 -0
- package/dist/esm/basicLine/_example/SmoothLine.js.map +1 -0
- package/dist/esm/basicLine/_example/SmoothLine.jsx +30 -0
- package/dist/esm/basicLine/_example/StackAreaLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/StackAreaLine.js +54 -0
- package/dist/esm/basicLine/_example/StackAreaLine.js.map +1 -0
- package/dist/esm/basicLine/_example/StackAreaLine.jsx +57 -0
- package/dist/esm/basicLine/_example/StepLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/StepLine.js +57 -0
- package/dist/esm/basicLine/_example/StepLine.js.map +1 -0
- package/dist/esm/basicLine/_example/StepLine.jsx +61 -0
- package/dist/esm/basicLine/_example/StepLineArea.d.ts +1 -0
- package/dist/esm/basicLine/_example/StepLineArea.js +58 -0
- package/dist/esm/basicLine/_example/StepLineArea.js.map +1 -0
- package/dist/esm/basicLine/_example/StepLineArea.jsx +62 -0
- package/dist/esm/basicLine/_example/ThresholdLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/ThresholdLine.js +37 -0
- package/dist/esm/basicLine/_example/ThresholdLine.js.map +1 -0
- package/dist/esm/basicLine/_example/ThresholdLine.jsx +40 -0
- package/dist/esm/basicLine/_example/XaxisHideLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/XaxisHideLine.js +86 -0
- package/dist/esm/basicLine/_example/XaxisHideLine.js.map +1 -0
- package/dist/esm/basicLine/_example/XaxisHideLine.jsx +99 -0
- package/dist/esm/basicLine/_example/YaxisSetMaxMinLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/YaxisSetMaxMinLine.js +165 -0
- package/dist/esm/basicLine/_example/YaxisSetMaxMinLine.js.map +1 -0
- package/dist/esm/basicLine/_example/YaxisSetMaxMinLine.jsx +177 -0
- package/dist/esm/basicLine/_example/YaxisTitleLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/YaxisTitleLine.js +1349 -0
- package/dist/esm/basicLine/_example/YaxisTitleLine.js.map +1 -0
- package/dist/esm/basicLine/_example/YaxisTitleLine.jsx +1361 -0
- package/dist/esm/basicLine/_example/ZoombarLine.d.ts +1 -0
- package/dist/esm/basicLine/_example/ZoombarLine.js +25 -0
- package/dist/esm/basicLine/_example/ZoombarLine.js.map +1 -0
- package/dist/esm/basicLine/_example/ZoombarLine.jsx +26 -0
- package/dist/esm/basicLine/demo/basic.md +35 -0
- package/dist/esm/basicLine/demo/labelRotate.md +34 -0
- package/dist/esm/basicLine/demo/linex.md +33 -0
- package/dist/esm/basicLine/index.d.ts +59 -0
- package/dist/esm/basicLine/index.js +122 -0
- package/dist/esm/basicLine/index.js.map +1 -0
- package/dist/esm/basicLine/index.md +30 -0
- package/dist/esm/basicLine/style/index.less +0 -0
- package/dist/esm/basicMap/README.md +31 -0
- package/dist/esm/basicMap/_example/Basic.d.ts +1 -0
- package/dist/esm/basicMap/_example/Basic.js +84 -0
- package/dist/esm/basicMap/_example/Basic.js.map +1 -0
- package/dist/esm/basicMap/_example/Basic.jsx +88 -0
- package/dist/esm/basicMap/_example/ChinaMap.d.ts +1 -0
- package/dist/esm/basicMap/_example/ChinaMap.js +78 -0
- package/dist/esm/basicMap/_example/ChinaMap.js.map +1 -0
- package/dist/esm/basicMap/_example/ChinaMap.jsx +81 -0
- package/dist/esm/basicMap/_example/ChinaMapEx.d.ts +1 -0
- package/dist/esm/basicMap/_example/ChinaMapEx.js +78 -0
- package/dist/esm/basicMap/_example/ChinaMapEx.js.map +1 -0
- package/dist/esm/basicMap/_example/ChinaMapEx.jsx +92 -0
- package/dist/esm/basicMap/_example/ChinaMapNodeLink.d.ts +1 -0
- package/dist/esm/basicMap/_example/ChinaMapNodeLink.js +138 -0
- package/dist/esm/basicMap/_example/ChinaMapNodeLink.js.map +1 -0
- package/dist/esm/basicMap/_example/ChinaMapNodeLink.jsx +183 -0
- package/dist/esm/basicMap/_example/WorldMap.d.ts +1 -0
- package/dist/esm/basicMap/_example/WorldMap.js +49 -0
- package/dist/esm/basicMap/_example/WorldMap.js.map +1 -0
- package/dist/esm/basicMap/_example/WorldMap.jsx +53 -0
- package/dist/esm/basicMap/index.d.ts +40 -0
- package/dist/esm/basicMap/index.js +19 -0
- package/dist/esm/basicMap/index.js.map +1 -0
- package/dist/esm/basicPie/README.md +35 -0
- package/dist/esm/basicPie/_example/Basic.d.ts +1 -0
- package/dist/esm/basicPie/_example/Basic.js +40 -0
- package/dist/esm/basicPie/_example/Basic.js.map +1 -0
- package/dist/esm/basicPie/_example/Basic.jsx +43 -0
- package/dist/esm/basicPie/_example/DonutPic.d.ts +1 -0
- package/dist/esm/basicPie/_example/DonutPic.js +39 -0
- package/dist/esm/basicPie/_example/DonutPic.js.map +1 -0
- package/dist/esm/basicPie/_example/DonutPic.jsx +42 -0
- package/dist/esm/basicPie/_example/LabelPic.d.ts +1 -0
- package/dist/esm/basicPie/_example/LabelPic.js +25 -0
- package/dist/esm/basicPie/_example/LabelPic.js.map +1 -0
- package/dist/esm/basicPie/_example/LabelPic.jsx +27 -0
- package/dist/esm/basicPie/_example/RosePic.d.ts +1 -0
- package/dist/esm/basicPie/_example/RosePic.js +56 -0
- package/dist/esm/basicPie/_example/RosePic.js.map +1 -0
- package/dist/esm/basicPie/_example/RosePic.jsx +65 -0
- package/dist/esm/basicPie/_example/SpaceDonutPic.d.ts +1 -0
- package/dist/esm/basicPie/_example/SpaceDonutPic.js +51 -0
- package/dist/esm/basicPie/_example/SpaceDonutPic.js.map +1 -0
- package/dist/esm/basicPie/_example/SpaceDonutPic.jsx +59 -0
- package/dist/esm/basicPie/_example/SpacePic.d.ts +1 -0
- package/dist/esm/basicPie/_example/SpacePic.js +40 -0
- package/dist/esm/basicPie/_example/SpacePic.js.map +1 -0
- package/dist/esm/basicPie/_example/SpacePic.jsx +43 -0
- package/dist/esm/basicPie/demo/basic.md +31 -0
- package/dist/esm/basicPie/index.d.ts +47 -0
- package/dist/esm/basicPie/index.js +34 -0
- package/dist/esm/basicPie/index.js.map +1 -0
- package/dist/esm/basicPie/index.md +27 -0
- package/dist/esm/basicPie/style/index.less +0 -0
- package/dist/esm/basicSankey/README.md +12 -0
- package/dist/esm/basicSankey/_example/Basic.d.ts +1 -0
- package/dist/esm/basicSankey/_example/Basic.js +75 -0
- package/dist/esm/basicSankey/_example/Basic.js.map +1 -0
- package/dist/esm/basicSankey/_example/Basic.jsx +79 -0
- package/dist/esm/basicSankey/demo/basic.md +88 -0
- package/dist/esm/basicSankey/index.d.ts +19 -0
- package/dist/esm/basicSankey/index.js +27 -0
- package/dist/esm/basicSankey/index.js.map +1 -0
- package/dist/esm/basicSankey/index.md +21 -0
- package/dist/esm/basicSankey/style/index.less +0 -0
- package/dist/esm/basicStat/README.md +23 -0
- package/dist/esm/basicStat/_example/Basic.d.ts +1 -0
- package/dist/esm/basicStat/_example/Basic.js +399 -0
- package/dist/esm/basicStat/_example/Basic.js.map +1 -0
- package/dist/esm/basicStat/_example/Basic.jsx +402 -0
- package/dist/esm/basicStat/_example/LineStat.d.ts +1 -0
- package/dist/esm/basicStat/_example/LineStat.js +399 -0
- package/dist/esm/basicStat/_example/LineStat.js.map +1 -0
- package/dist/esm/basicStat/_example/LineStat.jsx +402 -0
- package/dist/esm/basicStat/_example/ThresholdStat.d.ts +1 -0
- package/dist/esm/basicStat/_example/ThresholdStat.js +399 -0
- package/dist/esm/basicStat/_example/ThresholdStat.js.map +1 -0
- package/dist/esm/basicStat/_example/ThresholdStat.jsx +402 -0
- package/dist/esm/basicStat/index.d.ts +44 -0
- package/dist/esm/basicStat/index.js +85 -0
- package/dist/esm/basicStat/index.js.map +1 -0
- package/dist/esm/basicTopo/README.md +39 -0
- package/dist/esm/basicTopo/_example/Basic.d.ts +1 -0
- package/dist/esm/basicTopo/_example/Basic.js +124 -0
- package/dist/esm/basicTopo/_example/Basic.js.map +1 -0
- package/dist/esm/basicTopo/_example/Basic.jsx +132 -0
- package/dist/esm/basicTopo/_example/GroupLinkTopo.d.ts +1 -0
- package/dist/esm/basicTopo/_example/GroupLinkTopo.js +875 -0
- package/dist/esm/basicTopo/_example/GroupLinkTopo.js.map +1 -0
- package/dist/esm/basicTopo/_example/GroupLinkTopo.jsx +902 -0
- package/dist/esm/basicTopo/_example/GroupTopo.d.ts +1 -0
- package/dist/esm/basicTopo/_example/GroupTopo.js +193 -0
- package/dist/esm/basicTopo/_example/GroupTopo.js.map +1 -0
- package/dist/esm/basicTopo/_example/GroupTopo.jsx +221 -0
- package/dist/esm/basicTopo/_example/LinkLabel.d.ts +1 -0
- package/dist/esm/basicTopo/_example/LinkLabel.js +109 -0
- package/dist/esm/basicTopo/_example/LinkLabel.js.map +1 -0
- package/dist/esm/basicTopo/_example/LinkLabel.jsx +117 -0
- package/dist/esm/basicTopo/_example/NoIconTopo.d.ts +1 -0
- package/dist/esm/basicTopo/_example/NoIconTopo.js +203 -0
- package/dist/esm/basicTopo/_example/NoIconTopo.js.map +1 -0
- package/dist/esm/basicTopo/_example/NoIconTopo.jsx +235 -0
- package/dist/esm/basicTopo/_example/PerformanceTest.d.ts +1 -0
- package/dist/esm/basicTopo/_example/PerformanceTest.js +155 -0
- package/dist/esm/basicTopo/_example/PerformanceTest.js.map +1 -0
- package/dist/esm/basicTopo/_example/PerformanceTest.jsx +171 -0
- package/dist/esm/basicTopo/_example/VisioLinkTopo.d.ts +1 -0
- package/dist/esm/basicTopo/_example/VisioLinkTopo.js +209 -0
- package/dist/esm/basicTopo/_example/VisioLinkTopo.js.map +1 -0
- package/dist/esm/basicTopo/_example/VisioLinkTopo.jsx +234 -0
- package/dist/esm/basicTopo/demo/basic.md +48 -0
- package/dist/esm/basicTopo/demo/labelRotate.md +35 -0
- package/dist/esm/basicTopo/index.d.ts +40 -0
- package/dist/esm/basicTopo/index.js +24 -0
- package/dist/esm/basicTopo/index.js.map +1 -0
- package/dist/esm/basicTopo/index.md +25 -0
- package/dist/esm/basicTopo/style/index.less +0 -0
- package/dist/esm/basicTreeMap/basicTreeMap.d.ts +19 -0
- package/dist/esm/basicTreeMap/basicTreeMap.js +25 -0
- package/dist/esm/basicTreeMap/basicTreeMap.js.map +1 -0
- package/dist/esm/common/chart.d.ts +23 -0
- package/dist/esm/common/chart.js +56 -0
- package/dist/esm/common/chart.js.map +1 -0
- package/dist/esm/common/compareObjWithoutFunction.d.ts +1 -0
- package/dist/esm/common/compareObjWithoutFunction.js +34 -0
- package/dist/esm/common/compareObjWithoutFunction.js.map +1 -0
- package/dist/esm/common/functionChart.d.ts +7 -0
- package/dist/esm/common/functionChart.js +37 -0
- package/dist/esm/common/functionChart.js.map +1 -0
- package/dist/esm/common/optionsHelp.d.ts +101 -0
- package/dist/esm/common/optionsHelp.js +464 -0
- package/dist/esm/common/optionsHelp.js.map +1 -0
- package/dist/esm/diskPart/README.md +19 -0
- package/dist/esm/diskPart/_example/MultipleDiskPart.d.ts +1 -0
- package/dist/esm/diskPart/_example/MultipleDiskPart.js +43 -0
- package/dist/esm/diskPart/_example/MultipleDiskPart.js.map +1 -0
- package/dist/esm/diskPart/_example/MultipleDiskPart.jsx +46 -0
- package/dist/esm/diskPart/_example/SingleDiskPart.d.ts +1 -0
- package/dist/esm/diskPart/_example/SingleDiskPart.js +43 -0
- package/dist/esm/diskPart/_example/SingleDiskPart.js.map +1 -0
- package/dist/esm/diskPart/_example/SingleDiskPart.jsx +46 -0
- package/dist/esm/diskPart/index.d.ts +43 -0
- package/dist/esm/diskPart/index.js +25 -0
- package/dist/esm/diskPart/index.js.map +1 -0
- package/dist/esm/index.d.ts +16 -0
- package/dist/esm/index.js +17 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/liquidFillChart/README.md +19 -0
- package/dist/esm/liquidFillChart/_example/Basic.d.ts +1 -0
- package/dist/esm/liquidFillChart/_example/Basic.js +53 -0
- package/dist/esm/liquidFillChart/_example/Basic.js.map +1 -0
- package/dist/esm/liquidFillChart/_example/Basic.jsx +56 -0
- package/dist/esm/liquidFillChart/_example/Basicx.d.ts +1 -0
- package/dist/esm/liquidFillChart/_example/Basicx.js +73 -0
- package/dist/esm/liquidFillChart/_example/Basicx.js.map +1 -0
- package/dist/esm/liquidFillChart/_example/Basicx.jsx +78 -0
- package/dist/esm/liquidFillChart/demo/basic.md +62 -0
- package/dist/esm/liquidFillChart/demo/basicx.md +82 -0
- package/dist/esm/liquidFillChart/index.d.ts +32 -0
- package/dist/esm/liquidFillChart/index.js +28 -0
- package/dist/esm/liquidFillChart/index.js.map +1 -0
- package/dist/esm/liquidFillChart/index.md +27 -0
- package/dist/esm/liquidFillChart/style/index.less +0 -0
- package/dist/esm/proxy.d.ts +2 -0
- package/dist/esm/proxy.js +3 -0
- package/dist/esm/proxy.js.map +1 -0
- package/dist/esm/radarChart/README.md +18 -0
- package/dist/esm/radarChart/_example/CommonRadarChart.d.ts +1 -0
- package/dist/esm/radarChart/_example/CommonRadarChart.js +44 -0
- package/dist/esm/radarChart/_example/CommonRadarChart.js.map +1 -0
- package/dist/esm/radarChart/_example/CommonRadarChart.jsx +48 -0
- package/dist/esm/radarChart/_example/FilledRadarChart.d.ts +1 -0
- package/dist/esm/radarChart/_example/FilledRadarChart.js +73 -0
- package/dist/esm/radarChart/_example/FilledRadarChart.js.map +1 -0
- package/dist/esm/radarChart/_example/FilledRadarChart.jsx +77 -0
- package/dist/esm/radarChart/demo/basic.md +53 -0
- package/dist/esm/radarChart/demo/basicx.md +83 -0
- package/dist/esm/radarChart/index.d.ts +37 -0
- package/dist/esm/radarChart/index.js +26 -0
- package/dist/esm/radarChart/index.js.map +1 -0
- package/dist/esm/radarChart/index.md +28 -0
- package/dist/esm/radarChart/style/index.less +0 -0
- package/dist/esm/wordcloud/README.md +25 -0
- package/dist/esm/wordcloud/_example/Basic.d.ts +1 -0
- package/dist/esm/wordcloud/_example/Basic.js +219 -0
- package/dist/esm/wordcloud/_example/Basic.js.map +1 -0
- package/dist/esm/wordcloud/_example/Basic.jsx +222 -0
- package/dist/esm/wordcloud/_example/CenterBasic.d.ts +1 -0
- package/dist/esm/wordcloud/_example/CenterBasic.js +220 -0
- package/dist/esm/wordcloud/_example/CenterBasic.js.map +1 -0
- package/dist/esm/wordcloud/_example/CenterBasic.jsx +223 -0
- package/dist/esm/wordcloud/_example/ColorsBasic.d.ts +1 -0
- package/dist/esm/wordcloud/_example/ColorsBasic.js +220 -0
- package/dist/esm/wordcloud/_example/ColorsBasic.js.map +1 -0
- package/dist/esm/wordcloud/_example/ColorsBasic.jsx +224 -0
- package/dist/esm/wordcloud/demo/basic.md +39 -0
- package/dist/esm/wordcloud/index.d.ts +26 -0
- package/dist/esm/wordcloud/index.js +26 -0
- package/dist/esm/wordcloud/index.js.map +1 -0
- package/dist/esm/wordcloud/index.md +22 -0
- package/dist/esm/wordcloud/style/index.less +0 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +84 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ChartComponent, ChartProps } from '../common/chart';
|
|
2
|
+
import { ToolTipOptions, AxisOptions, GridOptions, ChartRef, Data, LegendOptions } from '../_type';
|
|
3
|
+
export interface HeatMapProps {
|
|
4
|
+
width?: number | string;
|
|
5
|
+
height: number | string;
|
|
6
|
+
tooltip?: ToolTipOptions;
|
|
7
|
+
xAxis?: AxisOptions;
|
|
8
|
+
yAxis?: AxisOptions;
|
|
9
|
+
theme?: string;
|
|
10
|
+
dataSource: Data[];
|
|
11
|
+
grid?: GridOptions;
|
|
12
|
+
unit?: string | string[];
|
|
13
|
+
bucketsPaddings?: {
|
|
14
|
+
paddingLeft?: number;
|
|
15
|
+
paddingTop?: number;
|
|
16
|
+
paddingRight?: number;
|
|
17
|
+
paddingBottom?: number;
|
|
18
|
+
};
|
|
19
|
+
xBuckets?: number;
|
|
20
|
+
yBuckets?: number;
|
|
21
|
+
bucketsRadius?: number;
|
|
22
|
+
legend?: LegendOptions;
|
|
23
|
+
chartRef?: (chart?: ChartRef) => void;
|
|
24
|
+
}
|
|
25
|
+
declare abstract class HeatMap<T extends ChartProps> extends ChartComponent<T> {
|
|
26
|
+
chartType: string;
|
|
27
|
+
constructor(props: any);
|
|
28
|
+
}
|
|
29
|
+
export default class BasicHeatMap extends HeatMap<HeatMapProps> {
|
|
30
|
+
getOptions(props: any): {
|
|
31
|
+
title: any;
|
|
32
|
+
legend: {
|
|
33
|
+
show: boolean;
|
|
34
|
+
};
|
|
35
|
+
xAxis: any;
|
|
36
|
+
yAxis: any;
|
|
37
|
+
bucketsPaddings: any;
|
|
38
|
+
dataZoom: any;
|
|
39
|
+
tooltip: any;
|
|
40
|
+
color: any;
|
|
41
|
+
series: any;
|
|
42
|
+
grid: any;
|
|
43
|
+
theme: any;
|
|
44
|
+
pointSelectedAnimation: any;
|
|
45
|
+
onEvent: any;
|
|
46
|
+
chartRef: any;
|
|
47
|
+
xBuckets: any;
|
|
48
|
+
yBuckets: any;
|
|
49
|
+
bucketsRadius: any;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ChartComponent } from '../common/chart';
|
|
3
|
+
import { addHeatMapOption } from '../common/optionsHelp';
|
|
4
|
+
import { ChartHeatMapComponent, ChartCore } from 'tvision-charts';
|
|
5
|
+
var HeatMap = (function (_super) {
|
|
6
|
+
__extends(HeatMap, _super);
|
|
7
|
+
function HeatMap(props) {
|
|
8
|
+
var _this = _super.call(this, props) || this;
|
|
9
|
+
_this.chartType = 'heatMap';
|
|
10
|
+
ChartCore.use(ChartHeatMapComponent);
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
return HeatMap;
|
|
14
|
+
}(ChartComponent));
|
|
15
|
+
var BasicHeatMap = (function (_super) {
|
|
16
|
+
__extends(BasicHeatMap, _super);
|
|
17
|
+
function BasicHeatMap() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
BasicHeatMap.prototype.getOptions = function (props) {
|
|
21
|
+
return addHeatMapOption(props || this.props);
|
|
22
|
+
};
|
|
23
|
+
return BasicHeatMap;
|
|
24
|
+
}(HeatMap));
|
|
25
|
+
export default BasicHeatMap;
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/basicHeatMap/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAc,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAkElE;IAAqD,2BAAiB;IAEpE,iBAAY,KAAK;QACf,YAAA,MAAK,YAAC,KAAK,CAAC,SAAC;QAFf,eAAS,GAAG,SAAS,CAAC;QAGpB,SAAS,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;;IACvC,CAAC;IACH,cAAC;AAAD,CAAC,AAND,CAAqD,cAAc,GAMlE;AACD;IAA0C,gCAAqB;IAA/D;;IAIA,CAAC;IAHC,iCAAU,GAAV,UAAW,KAAK;QACd,OAAO,gBAAgB,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IACH,mBAAC;AAAD,CAAC,AAJD,CAA0C,OAAO,GAIhD"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# BasicLine 折线图
|
|
2
|
+
|
|
3
|
+
折线图。折线图用于显示数据在一个连续的时间间隔或者时间跨度上的变化,它的特点是反映事物随时间或有序类别而变化的趋势。
|
|
4
|
+
|
|
5
|
+
## 使用示例
|
|
6
|
+
|
|
7
|
+
对于最简单的使用只需要配置少量参数即可
|
|
8
|
+
|
|
9
|
+
### 基础折线图
|
|
10
|
+
|
|
11
|
+
[Example: 基础折线图](./_example/Basic.jsx)
|
|
12
|
+
|
|
13
|
+
### 平滑折线图
|
|
14
|
+
|
|
15
|
+
[Example: 平滑折线图](./_example/SmoothLine.jsx)
|
|
16
|
+
|
|
17
|
+
### 基础面积图
|
|
18
|
+
|
|
19
|
+
[Example: 基础面积图](./_example/AreaLine.jsx)
|
|
20
|
+
|
|
21
|
+
### 堆叠面积图
|
|
22
|
+
|
|
23
|
+
[Example: 堆叠面积图](./_example/StackAreaLine.jsx)
|
|
24
|
+
|
|
25
|
+
### 双轴折线图
|
|
26
|
+
|
|
27
|
+
[Example: 双轴折线图](./_example/DualaxisLine.jsx)
|
|
28
|
+
|
|
29
|
+
### 显示数据点,柱
|
|
30
|
+
|
|
31
|
+
[Example: 显示数据点,柱](./_example/ScatterBarLine.jsx)
|
|
32
|
+
|
|
33
|
+
### 显示柱形图
|
|
34
|
+
|
|
35
|
+
[Example: 显示柱形图](./_example/BarLine.jsx)
|
|
36
|
+
|
|
37
|
+
### 辅助线
|
|
38
|
+
|
|
39
|
+
[Example: 辅助线](./_example/AuxiliaryLine.jsx)
|
|
40
|
+
|
|
41
|
+
### 水平区域辅助线
|
|
42
|
+
|
|
43
|
+
[Example: 水平区域辅助线](./_example/AuxiliaryHLine.jsx)
|
|
44
|
+
|
|
45
|
+
### 竖直区域辅助线
|
|
46
|
+
|
|
47
|
+
[Example: 竖直区域辅助线](./_example/AuxiliaryVLine.jsx)
|
|
48
|
+
|
|
49
|
+
### 告警动态阈值
|
|
50
|
+
|
|
51
|
+
[Example: 告警动态阈值](./_example/ThresholdLine.jsx)
|
|
52
|
+
|
|
53
|
+
### 线上显示 label
|
|
54
|
+
|
|
55
|
+
[Example: 线上显示 label](./_example/LabelLine.jsx)
|
|
56
|
+
|
|
57
|
+
### 阶梯折线图
|
|
58
|
+
|
|
59
|
+
[Example: 阶梯折线图](./_example/StepLine.jsx)
|
|
60
|
+
|
|
61
|
+
### 渐变色阶梯折线图
|
|
62
|
+
|
|
63
|
+
[Example: 渐变色阶梯折线图](./_example/StepLineArea.jsx)
|
|
64
|
+
|
|
65
|
+
### 带有 datazoom 工具条
|
|
66
|
+
|
|
67
|
+
[Example: 带有 datazoom 工具条](./_example/DataZoomLine.jsx)
|
|
68
|
+
|
|
69
|
+
### 带有标识线的折线图
|
|
70
|
+
|
|
71
|
+
[Example: 带有标识线的折线图](./_example/MarkLine.jsx)
|
|
72
|
+
|
|
73
|
+
### 自定义某个曲线的颜色
|
|
74
|
+
|
|
75
|
+
[Example: 自定义某个曲线的颜色](./_example/CustomColorLine.jsx)
|
|
76
|
+
|
|
77
|
+
### 图例显示左边
|
|
78
|
+
|
|
79
|
+
[Example: 图例显示左边](./_example/LegendLeftLine.jsx)
|
|
80
|
+
|
|
81
|
+
### 散点图
|
|
82
|
+
|
|
83
|
+
[Example: 散点图](./_example/ScatterLine.jsx)
|
|
84
|
+
|
|
85
|
+
### y 轴显示标题
|
|
86
|
+
|
|
87
|
+
[Example: y 轴显示标题](./_example/YaxisTitleLine.jsx)
|
|
88
|
+
|
|
89
|
+
### 格式化 x 轴和 y 轴
|
|
90
|
+
|
|
91
|
+
[Example: 格式化 x 轴和 y 轴](./_example/AxisFormatter.jsx)
|
|
92
|
+
|
|
93
|
+
### 绘制虚线
|
|
94
|
+
|
|
95
|
+
[Example: 绘制虚线](./_example/DottedLine.jsx)
|
|
96
|
+
|
|
97
|
+
### 隐藏 x 轴
|
|
98
|
+
|
|
99
|
+
[Example: 隐藏 x 轴](./_example/XaxisHideLine.jsx)
|
|
100
|
+
|
|
101
|
+
### y 轴设置最大值,最小值
|
|
102
|
+
|
|
103
|
+
[Example: y 轴设置最大值,最小值](./_example/YaxisSetMaxMinLine.jsx)
|
|
104
|
+
|
|
105
|
+
### 选中某条线
|
|
106
|
+
|
|
107
|
+
[Example: 选中某条线](./_example/LegendSelectedLine.jsx)
|
|
108
|
+
|
|
109
|
+
<!-- ### 显示缩放栏
|
|
110
|
+
|
|
111
|
+
[Example: 基本使用](./_example/ZoombarLine.jsx) -->
|
|
112
|
+
|
|
113
|
+
## 组件属性
|
|
114
|
+
|
|
115
|
+
[Interface: BasicLineProps](./index.tsx)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function AreaLine(): JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BasicLine } from '@tencent/tcharts-component';
|
|
4
|
+
export default function AreaLine() {
|
|
5
|
+
var options = {
|
|
6
|
+
dataZoom: [{ start: 0 }, { type: 'inside' }],
|
|
7
|
+
xAxis: {
|
|
8
|
+
type: 'category',
|
|
9
|
+
boundaryGap: false,
|
|
10
|
+
data: ['0:00', '1:00', '2:00', '3:00', '4:00', '5:00', '6:00', '7:00', '8:00', '9:00', '10:00', '11:00', '12:00'],
|
|
11
|
+
},
|
|
12
|
+
yAxis: {
|
|
13
|
+
axisLabel: { inside: false },
|
|
14
|
+
},
|
|
15
|
+
legend: {
|
|
16
|
+
data: ['值'],
|
|
17
|
+
right: 10,
|
|
18
|
+
show: true,
|
|
19
|
+
scroll: true,
|
|
20
|
+
},
|
|
21
|
+
dataSource: [
|
|
22
|
+
{
|
|
23
|
+
data: [820, 932, 901, 934, 600, 500, 700, 900, 1330, 1320, 1200, 1300],
|
|
24
|
+
type: 'line',
|
|
25
|
+
stack: 'a',
|
|
26
|
+
name: '值',
|
|
27
|
+
smooth: false,
|
|
28
|
+
areaStyle: {
|
|
29
|
+
opacity: 0.3,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
return (React.createElement(React.Fragment, null,
|
|
35
|
+
React.createElement("div", null, "\u57FA\u7840\u9762\u79EF\u56FE"),
|
|
36
|
+
React.createElement(BasicLine, __assign({ height: 500 }, options))));
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=AreaLine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AreaLine.js","sourceRoot":"","sources":["../../../../src/basicLine/_example/AreaLine.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,MAAM,CAAC,OAAO,UAAU,QAAQ;IAC9B,IAAM,OAAO,GAAG;QACd,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;QAC5C,KAAK,EAAE;YACL,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,KAAK;YAClB,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;SAClH;QACD,KAAK,EAAE;YACL,SAAS,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;SAC7B;QACD,MAAM,EAAE;YACN,IAAI,EAAE,CAAC,GAAG,CAAC;YACX,KAAK,EAAE,EAAE;YACT,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;SACb;QACD,UAAU,EAAE;YACV;gBACE,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;gBACtE,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,GAAG;gBACV,IAAI,EAAE,GAAG;gBACT,MAAM,EAAE,KAAK;gBACb,SAAS,EAAE;oBACT,OAAO,EAAE,GAAG;iBACb;aACF;SACF;KACF,CAAC;IAEF,OAAO,CACL;QACE,kEAAgB;QAChB,oBAAC,SAAS,aAAC,MAAM,EAAE,GAAG,IAAM,OAAO,EAAI,CACtC,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BasicLine } from '@tencent/tcharts-component';
|
|
3
|
+
|
|
4
|
+
export default function AreaLine() {
|
|
5
|
+
const options = {
|
|
6
|
+
dataZoom: [{ start: 0 }, { type: 'inside' }],
|
|
7
|
+
xAxis: {
|
|
8
|
+
type: 'category',
|
|
9
|
+
boundaryGap: false,
|
|
10
|
+
data: ['0:00', '1:00', '2:00', '3:00', '4:00', '5:00', '6:00', '7:00', '8:00', '9:00', '10:00', '11:00', '12:00'],
|
|
11
|
+
},
|
|
12
|
+
yAxis: {
|
|
13
|
+
axisLabel: { inside: false },
|
|
14
|
+
},
|
|
15
|
+
legend: {
|
|
16
|
+
data: ['值'],
|
|
17
|
+
right: 10,
|
|
18
|
+
show: true,
|
|
19
|
+
scroll: true,
|
|
20
|
+
},
|
|
21
|
+
dataSource: [
|
|
22
|
+
{
|
|
23
|
+
data: [820, 932, 901, 934, 600, 500, 700, 900, 1330, 1320, 1200, 1300],
|
|
24
|
+
type: 'line',
|
|
25
|
+
stack: 'a',
|
|
26
|
+
name: '值',
|
|
27
|
+
smooth: false,
|
|
28
|
+
areaStyle: {
|
|
29
|
+
opacity: 0.3,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<>
|
|
37
|
+
<div>基础面积图</div>
|
|
38
|
+
<BasicLine height={500} {...options} />
|
|
39
|
+
</>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function AuxiliaryHLine(): JSX.Element;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BasicLine } from '@tencent/tcharts-component';
|
|
4
|
+
export default function AuxiliaryHLine() {
|
|
5
|
+
var options = {
|
|
6
|
+
dataZoom: [{ start: 0 }, { type: 'inside' }],
|
|
7
|
+
xAxis: {
|
|
8
|
+
type: 'category',
|
|
9
|
+
boundaryGap: false,
|
|
10
|
+
data: ['0:00', '1:00', '2:00', '3:00', '4:00', '5:00', '6:00', '7:00', '8:00', '9:00', '10:00', '11:00', '12:00'],
|
|
11
|
+
},
|
|
12
|
+
yAxis: {
|
|
13
|
+
axisLabel: { inside: false },
|
|
14
|
+
},
|
|
15
|
+
legend: {
|
|
16
|
+
data: ['值'],
|
|
17
|
+
right: 10,
|
|
18
|
+
show: true,
|
|
19
|
+
scroll: true,
|
|
20
|
+
},
|
|
21
|
+
dataSource: [
|
|
22
|
+
{
|
|
23
|
+
name: '容量-辅助线(最大值和平均值显示出来)',
|
|
24
|
+
type: 'line',
|
|
25
|
+
showType: ['line'],
|
|
26
|
+
smooth: false,
|
|
27
|
+
connectNulls: false,
|
|
28
|
+
fullNulls: false,
|
|
29
|
+
lineStyle: { normal: { width: '1' }, opacity: 0 },
|
|
30
|
+
data: [10, 20, 60, 20, 90, 40, 50, 30, 60, 80, 95, 80],
|
|
31
|
+
yAxisIndex: 0,
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
markArea: {
|
|
35
|
+
data: [
|
|
36
|
+
{
|
|
37
|
+
data: [
|
|
38
|
+
{
|
|
39
|
+
x: 100,
|
|
40
|
+
y: 100,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
x: 200,
|
|
44
|
+
y: 200,
|
|
45
|
+
itemStyle: {
|
|
46
|
+
color: '#F54E4E',
|
|
47
|
+
opacity: 0.3,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
data: [
|
|
54
|
+
{
|
|
55
|
+
itemStyle: {
|
|
56
|
+
color: '#DBBA37',
|
|
57
|
+
opacity: 0.3,
|
|
58
|
+
},
|
|
59
|
+
xAxis: '8:00',
|
|
60
|
+
},
|
|
61
|
+
{},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
return (React.createElement(React.Fragment, null,
|
|
68
|
+
React.createElement("div", null, "\u6C34\u5E73\u533A\u57DF\u8F85\u52A9\u7EBF"),
|
|
69
|
+
React.createElement(BasicLine, __assign({ height: 500 }, options))));
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=AuxiliaryHLine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuxiliaryHLine.js","sourceRoot":"","sources":["../../../../src/basicLine/_example/AuxiliaryHLine.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,MAAM,CAAC,OAAO,UAAU,cAAc;IACpC,IAAM,OAAO,GAAG;QACd,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;QAC5C,KAAK,EAAE;YACL,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,KAAK;YAClB,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;SAClH;QACD,KAAK,EAAE;YACL,SAAS,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;SAC7B;QACD,MAAM,EAAE;YACN,IAAI,EAAE,CAAC,GAAG,CAAC;YACX,KAAK,EAAE,EAAE;YACT,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;SACb;QACD,UAAU,EAAE;YACV;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,MAAM,EAAE,KAAK;gBACb,YAAY,EAAE,KAAK;gBACnB,SAAS,EAAE,KAAK;gBAChB,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;gBACjD,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;gBACtD,UAAU,EAAE,CAAC;aACd;SACF;QACD,QAAQ,EAAE;YACR,IAAI,EAAE;gBACJ;oBACE,IAAI,EAAE;wBACJ;4BACE,CAAC,EAAE,GAAG;4BACN,CAAC,EAAE,GAAG;yBACP;wBACD;4BACE,CAAC,EAAE,GAAG;4BACN,CAAC,EAAE,GAAG;4BACN,SAAS,EAAE;gCACT,KAAK,EAAE,SAAS;gCAChB,OAAO,EAAE,GAAG;6BACb;yBACF;qBACF;iBACF;gBACD;oBACE,IAAI,EAAE;wBACJ;4BACE,SAAS,EAAE;gCACT,KAAK,EAAE,SAAS;gCAChB,OAAO,EAAE,GAAG;6BACb;4BACD,KAAK,EAAE,MAAM;yBACd;wBACD,EAAE;qBACH;iBACF;aACF;SACF;KACF,CAAC;IAEF,OAAO,CACL;QACE,8EAAkB;QAClB,oBAAC,SAAS,aAAC,MAAM,EAAE,GAAG,IAAM,OAAO,EAAI,CACtC,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BasicLine } from '@tencent/tcharts-component';
|
|
3
|
+
|
|
4
|
+
export default function AuxiliaryHLine() {
|
|
5
|
+
const options = {
|
|
6
|
+
dataZoom: [{ start: 0 }, { type: 'inside' }],
|
|
7
|
+
xAxis: {
|
|
8
|
+
type: 'category',
|
|
9
|
+
boundaryGap: false,
|
|
10
|
+
data: ['0:00', '1:00', '2:00', '3:00', '4:00', '5:00', '6:00', '7:00', '8:00', '9:00', '10:00', '11:00', '12:00'],
|
|
11
|
+
},
|
|
12
|
+
yAxis: {
|
|
13
|
+
axisLabel: { inside: false },
|
|
14
|
+
},
|
|
15
|
+
legend: {
|
|
16
|
+
data: ['值'],
|
|
17
|
+
right: 10,
|
|
18
|
+
show: true,
|
|
19
|
+
scroll: true,
|
|
20
|
+
},
|
|
21
|
+
dataSource: [
|
|
22
|
+
{
|
|
23
|
+
name: '容量-辅助线(最大值和平均值显示出来)',
|
|
24
|
+
type: 'line',
|
|
25
|
+
showType: ['line'],
|
|
26
|
+
smooth: false,
|
|
27
|
+
connectNulls: false,
|
|
28
|
+
fullNulls: false,
|
|
29
|
+
lineStyle: { normal: { width: '1' }, opacity: 0 },
|
|
30
|
+
data: [10, 20, 60, 20, 90, 40, 50, 30, 60, 80, 95, 80],
|
|
31
|
+
yAxisIndex: 0,
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
markArea: {
|
|
35
|
+
data: [
|
|
36
|
+
{
|
|
37
|
+
data: [
|
|
38
|
+
{
|
|
39
|
+
x: 100,
|
|
40
|
+
y: 100,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
x: 200,
|
|
44
|
+
y: 200,
|
|
45
|
+
itemStyle: {
|
|
46
|
+
color: '#F54E4E',
|
|
47
|
+
opacity: 0.3,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
data: [
|
|
54
|
+
{
|
|
55
|
+
itemStyle: {
|
|
56
|
+
color: '#DBBA37',
|
|
57
|
+
opacity: 0.3,
|
|
58
|
+
},
|
|
59
|
+
xAxis: '8:00',
|
|
60
|
+
},
|
|
61
|
+
{},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
return (
|
|
69
|
+
<>
|
|
70
|
+
<div>水平区域辅助线</div>
|
|
71
|
+
<BasicLine height={500} {...options} />
|
|
72
|
+
</>
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function AuxiliaryLine(): JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BasicLine } from '@tencent/tcharts-component';
|
|
4
|
+
export default function AuxiliaryLine() {
|
|
5
|
+
var options = {
|
|
6
|
+
dataZoom: [{ start: 0 }, { type: 'inside' }],
|
|
7
|
+
xAxis: {
|
|
8
|
+
type: 'category',
|
|
9
|
+
boundaryGap: false,
|
|
10
|
+
data: ['0:00', '1:00', '2:00', '3:00', '4:00', '5:00', '6:00', '7:00', '8:00', '9:00', '10:00', '11:00', '12:00'],
|
|
11
|
+
},
|
|
12
|
+
yAxis: {
|
|
13
|
+
axisLabel: { inside: false },
|
|
14
|
+
},
|
|
15
|
+
legend: {
|
|
16
|
+
data: ['值'],
|
|
17
|
+
right: 10,
|
|
18
|
+
show: true,
|
|
19
|
+
scroll: true,
|
|
20
|
+
},
|
|
21
|
+
dataSource: [
|
|
22
|
+
{
|
|
23
|
+
name: '容量-辅助线(最大值和平均值显示出来)',
|
|
24
|
+
type: 'line',
|
|
25
|
+
showType: ['line'],
|
|
26
|
+
smooth: false,
|
|
27
|
+
connectNulls: false,
|
|
28
|
+
fullNulls: false,
|
|
29
|
+
lineStyle: { normal: { width: '1' }, opacity: 0 },
|
|
30
|
+
data: [10, 20, 60, 20, 90, 40, 50, 30, 60, 80, 95, 80],
|
|
31
|
+
yAxisIndex: 0,
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
markLine: {
|
|
35
|
+
lineStyle: { normal: { width: 2, type: 'dashed', opacity: 0.5 } },
|
|
36
|
+
data: [
|
|
37
|
+
{ type: 'max', name: '最大值', yAxisIndex: 0 },
|
|
38
|
+
{
|
|
39
|
+
symbol: ['triangle'],
|
|
40
|
+
yAxisIndex: 0,
|
|
41
|
+
yAxis: 54.5,
|
|
42
|
+
label: { position: 'middle', formatter: function () { return '54.5'; } },
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
precision: 3,
|
|
46
|
+
label: {},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
return (React.createElement(React.Fragment, null,
|
|
50
|
+
React.createElement("div", null, "\u8F85\u52A9\u7EBF"),
|
|
51
|
+
React.createElement(BasicLine, __assign({ height: 500 }, options))));
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=AuxiliaryLine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuxiliaryLine.js","sourceRoot":"","sources":["../../../../src/basicLine/_example/AuxiliaryLine.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,MAAM,CAAC,OAAO,UAAU,aAAa;IACnC,IAAM,OAAO,GAAG;QACd,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;QAC5C,KAAK,EAAE;YACL,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,KAAK;YAClB,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;SAClH;QACD,KAAK,EAAE;YACL,SAAS,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;SAC7B;QACD,MAAM,EAAE;YACN,IAAI,EAAE,CAAC,GAAG,CAAC;YACX,KAAK,EAAE,EAAE;YACT,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;SACb;QACD,UAAU,EAAE;YACV;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,MAAM,EAAE,KAAK;gBACb,YAAY,EAAE,KAAK;gBACnB,SAAS,EAAE,KAAK;gBAChB,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;gBACjD,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;gBACtD,UAAU,EAAE,CAAC;aACd;SACF;QAED,QAAQ,EAAE;YACR,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE;YACjE,IAAI,EAAE;gBACJ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAAE;gBAC3C;oBAEE,MAAM,EAAE,CAAC,UAAU,CAAC;oBACpB,UAAU,EAAE,CAAC;oBACb,KAAK,EAAE,IAAI;oBACX,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAM,OAAA,MAAM,EAAN,CAAM,EAAE;iBACvD;aACF;YACD,SAAS,EAAE,CAAC;YACZ,KAAK,EAAE,EAAE;SACV;KACF,CAAC;IAEF,OAAO,CACL;QACE,sDAAc;QACd,oBAAC,SAAS,aAAC,MAAM,EAAE,GAAG,IAAM,OAAO,EAAI,CACtC,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BasicLine } from '@tencent/tcharts-component';
|
|
3
|
+
|
|
4
|
+
export default function AuxiliaryLine() {
|
|
5
|
+
const options = {
|
|
6
|
+
dataZoom: [{ start: 0 }, { type: 'inside' }],
|
|
7
|
+
xAxis: {
|
|
8
|
+
type: 'category',
|
|
9
|
+
boundaryGap: false,
|
|
10
|
+
data: ['0:00', '1:00', '2:00', '3:00', '4:00', '5:00', '6:00', '7:00', '8:00', '9:00', '10:00', '11:00', '12:00'],
|
|
11
|
+
},
|
|
12
|
+
yAxis: {
|
|
13
|
+
axisLabel: { inside: false },
|
|
14
|
+
},
|
|
15
|
+
legend: {
|
|
16
|
+
data: ['值'],
|
|
17
|
+
right: 10,
|
|
18
|
+
show: true,
|
|
19
|
+
scroll: true,
|
|
20
|
+
},
|
|
21
|
+
dataSource: [
|
|
22
|
+
{
|
|
23
|
+
name: '容量-辅助线(最大值和平均值显示出来)',
|
|
24
|
+
type: 'line',
|
|
25
|
+
showType: ['line'],
|
|
26
|
+
smooth: false,
|
|
27
|
+
connectNulls: false,
|
|
28
|
+
fullNulls: false,
|
|
29
|
+
lineStyle: { normal: { width: '1' }, opacity: 0 },
|
|
30
|
+
data: [10, 20, 60, 20, 90, 40, 50, 30, 60, 80, 95, 80],
|
|
31
|
+
yAxisIndex: 0,
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
|
|
35
|
+
markLine: {
|
|
36
|
+
lineStyle: { normal: { width: 2, type: 'dashed', opacity: 0.5 } },
|
|
37
|
+
data: [
|
|
38
|
+
{ type: 'max', name: '最大值', yAxisIndex: 0 },
|
|
39
|
+
{
|
|
40
|
+
// symbol: ['circle'],
|
|
41
|
+
symbol: ['triangle'],
|
|
42
|
+
yAxisIndex: 0,
|
|
43
|
+
yAxis: 54.5,
|
|
44
|
+
label: { position: 'middle', formatter: () => '54.5' },
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
precision: 3,
|
|
48
|
+
label: {},
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<>
|
|
54
|
+
<div>辅助线</div>
|
|
55
|
+
<BasicLine height={500} {...options} />
|
|
56
|
+
</>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function AuxiliaryVLine(): JSX.Element;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BasicLine } from '@tencent/tcharts-component';
|
|
4
|
+
export default function AuxiliaryVLine() {
|
|
5
|
+
var options = {
|
|
6
|
+
dataZoom: [{ start: 0 }, { type: 'inside' }],
|
|
7
|
+
xAxis: {
|
|
8
|
+
type: 'category',
|
|
9
|
+
boundaryGap: false,
|
|
10
|
+
data: ['0:00', '1:00', '2:00', '3:00', '4:00', '5:00', '6:00', '7:00', '8:00', '9:00', '10:00', '11:00', '12:00'],
|
|
11
|
+
},
|
|
12
|
+
yAxis: {
|
|
13
|
+
axisLabel: { inside: false },
|
|
14
|
+
},
|
|
15
|
+
legend: {
|
|
16
|
+
data: ['值'],
|
|
17
|
+
right: 10,
|
|
18
|
+
show: true,
|
|
19
|
+
scroll: true,
|
|
20
|
+
},
|
|
21
|
+
dataSource: [
|
|
22
|
+
{
|
|
23
|
+
name: '容量-辅助区域',
|
|
24
|
+
type: 'line',
|
|
25
|
+
showType: ['line'],
|
|
26
|
+
smooth: false,
|
|
27
|
+
connectNulls: false,
|
|
28
|
+
fullNulls: false,
|
|
29
|
+
lineStyle: { normal: { width: '1' }, opacity: 0 },
|
|
30
|
+
data: [10, 20, 60, 20, 90, 40, 50, 30, 60, 80, 95, 80],
|
|
31
|
+
yAxisIndex: 0,
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
markArea: {
|
|
35
|
+
data: [
|
|
36
|
+
{
|
|
37
|
+
data: [
|
|
38
|
+
{
|
|
39
|
+
x: 100,
|
|
40
|
+
y: 100,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
x: 200,
|
|
44
|
+
y: 200,
|
|
45
|
+
itemStyle: {
|
|
46
|
+
color: '#F54E4E',
|
|
47
|
+
opacity: 0.3,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
data: [
|
|
54
|
+
{
|
|
55
|
+
itemStyle: {
|
|
56
|
+
color: '#DBBA37',
|
|
57
|
+
opacity: 0.3,
|
|
58
|
+
},
|
|
59
|
+
yAxis: '20',
|
|
60
|
+
},
|
|
61
|
+
{},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
return (React.createElement(React.Fragment, null,
|
|
68
|
+
React.createElement("div", null, "\u7AD6\u76F4\u533A\u57DF\u8F85\u52A9\u7EBF"),
|
|
69
|
+
React.createElement(BasicLine, __assign({ height: 500 }, options))));
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=AuxiliaryVLine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuxiliaryVLine.js","sourceRoot":"","sources":["../../../../src/basicLine/_example/AuxiliaryVLine.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,MAAM,CAAC,OAAO,UAAU,cAAc;IACpC,IAAM,OAAO,GAAG;QACd,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;QAC5C,KAAK,EAAE;YACL,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,KAAK;YAClB,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC;SAClH;QACD,KAAK,EAAE;YACL,SAAS,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;SAC7B;QACD,MAAM,EAAE;YACN,IAAI,EAAE,CAAC,GAAG,CAAC;YACX,KAAK,EAAE,EAAE;YACT,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,IAAI;SACb;QACD,UAAU,EAAE;YACV;gBACE,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,MAAM,EAAE,KAAK;gBACb,YAAY,EAAE,KAAK;gBACnB,SAAS,EAAE,KAAK;gBAChB,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE;gBACjD,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;gBACtD,UAAU,EAAE,CAAC;aACd;SACF;QAED,QAAQ,EAAE;YACR,IAAI,EAAE;gBACJ;oBACE,IAAI,EAAE;wBACJ;4BACE,CAAC,EAAE,GAAG;4BACN,CAAC,EAAE,GAAG;yBACP;wBACD;4BACE,CAAC,EAAE,GAAG;4BACN,CAAC,EAAE,GAAG;4BACN,SAAS,EAAE;gCACT,KAAK,EAAE,SAAS;gCAChB,OAAO,EAAE,GAAG;6BACb;yBACF;qBACF;iBACF;gBACD;oBACE,IAAI,EAAE;wBACJ;4BACE,SAAS,EAAE;gCACT,KAAK,EAAE,SAAS;gCAChB,OAAO,EAAE,GAAG;6BACb;4BACD,KAAK,EAAE,IAAI;yBACZ;wBACD,EAAE;qBACH;iBACF;aACF;SACF;KACF,CAAC;IAEF,OAAO,CACL;QACE,8EAAkB;QAClB,oBAAC,SAAS,aAAC,MAAM,EAAE,GAAG,IAAM,OAAO,EAAI,CACtC,CACJ,CAAC;AACJ,CAAC"}
|