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,183 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BasicMap } from '@tencent/tcharts-component';
|
|
3
|
+
import ChinaMapJson from '@app/data/china_map_ex_geojson.202007211628.json';
|
|
4
|
+
window['TCharts'].registerMap('chinaNodeLink', ChinaMapJson);
|
|
5
|
+
|
|
6
|
+
export default function ChinaMapEx() {
|
|
7
|
+
const options = {
|
|
8
|
+
grid: { left: 0, right: 0, bottom: 0, top: 0, containLabel: true },
|
|
9
|
+
showSouthChinaSea: true,
|
|
10
|
+
tooltip: {
|
|
11
|
+
trigger: 'item',
|
|
12
|
+
formatter: items => (items[0] ? `<div>${items[0].name}<div><div>人数: ${items[0].value}<div>` : ''),
|
|
13
|
+
},
|
|
14
|
+
legend: {
|
|
15
|
+
show: false,
|
|
16
|
+
},
|
|
17
|
+
visualMap: {
|
|
18
|
+
top: 50,
|
|
19
|
+
right: 10,
|
|
20
|
+
pieces: [{
|
|
21
|
+
gt: 0,
|
|
22
|
+
lte: 200,
|
|
23
|
+
label: '<200',
|
|
24
|
+
color: '#00A870',
|
|
25
|
+
}, {
|
|
26
|
+
gt: 200,
|
|
27
|
+
lte: 400,
|
|
28
|
+
label: '<400',
|
|
29
|
+
color: '#ED7B2F',
|
|
30
|
+
}, {
|
|
31
|
+
gt: 400,
|
|
32
|
+
lte: 500,
|
|
33
|
+
label: '<500',
|
|
34
|
+
color: '#E34D59',
|
|
35
|
+
}],
|
|
36
|
+
},
|
|
37
|
+
dataSource: [
|
|
38
|
+
{
|
|
39
|
+
name: '中国地图热力图',
|
|
40
|
+
type: 'map',
|
|
41
|
+
mapType: 'chinaNodeLink', // 自定义扩展图表类型
|
|
42
|
+
label: {
|
|
43
|
+
show: false,
|
|
44
|
+
},
|
|
45
|
+
links: [
|
|
46
|
+
{ source: 's', target: 'd',color: 'green' },
|
|
47
|
+
{ source: 's', target: 'c',color: 'green' },
|
|
48
|
+
{ source: 's', target: 'k' ,color: 'green'},
|
|
49
|
+
],
|
|
50
|
+
nodes: [
|
|
51
|
+
{
|
|
52
|
+
value: 300,
|
|
53
|
+
id: 'k', // 必填
|
|
54
|
+
text: '深圳', //label, 可选
|
|
55
|
+
textStyle: { //label的样式, 可选
|
|
56
|
+
fontSize: '14px',
|
|
57
|
+
color: 'blue',
|
|
58
|
+
},
|
|
59
|
+
// x: 200,
|
|
60
|
+
// y: 200,
|
|
61
|
+
color: 'yellow', //节点的颜色,可选
|
|
62
|
+
longitude: 114.114861, //position,必选, 要么xy,要么经度纬度
|
|
63
|
+
latitude: 22.285139,
|
|
64
|
+
symbolSize: 15 //节点的大小 可选,可以是数字,可以是返回数字的function
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
value: 300,
|
|
68
|
+
id: 's', // 必填
|
|
69
|
+
text: '北京', //label, 可选
|
|
70
|
+
textStyle: { //label的样式, 可选
|
|
71
|
+
fontSize: '12px',
|
|
72
|
+
color: 'blue',
|
|
73
|
+
},
|
|
74
|
+
longitude: 117,
|
|
75
|
+
latitude: 40,
|
|
76
|
+
color: 'yellow', //节点的颜色,可选
|
|
77
|
+
symbolSize: 15 //节点的大小 可选,可以是数字,可以是返回数字的function
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
value: 300,
|
|
81
|
+
id: 'c', // 必填
|
|
82
|
+
text: '拉萨', //label, 可选
|
|
83
|
+
textStyle: { //label的样式, 可选
|
|
84
|
+
fontSize: '12px',
|
|
85
|
+
color: 'blue',
|
|
86
|
+
},
|
|
87
|
+
longitude: 92.06,
|
|
88
|
+
latitude: 29.36,
|
|
89
|
+
color: 'yellow', //节点的颜色,可选
|
|
90
|
+
symbolSize: 15 //节点的大小 可选,可以是数字,可以是返回数字的function
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
value: 300,
|
|
94
|
+
id: 'd', // 必填
|
|
95
|
+
text: '拉尔滨', //label, 可选
|
|
96
|
+
textStyle: { //label的样式, 可选
|
|
97
|
+
fontSize: '12px',
|
|
98
|
+
color: 'blue',
|
|
99
|
+
},
|
|
100
|
+
longitude: 128,
|
|
101
|
+
latitude: 46,
|
|
102
|
+
color: 'yellow', //节点的颜色,可选
|
|
103
|
+
symbolSize: 15 //节点的大小 可选,可以是数字,可以是返回数字的function
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
// nodes: [
|
|
107
|
+
// {
|
|
108
|
+
// value: 3000,
|
|
109
|
+
// id: 'k', // 必填
|
|
110
|
+
// text: '北京', //label, 可选
|
|
111
|
+
// textStyle: { //label的样式, 可选
|
|
112
|
+
// fontSize: '12px',
|
|
113
|
+
// color: 'green',
|
|
114
|
+
// },
|
|
115
|
+
// // x: 200,
|
|
116
|
+
// // y: 200,
|
|
117
|
+
// color: 'red', //节点的颜色,可选
|
|
118
|
+
// longitude: 39.9, //position,必选, 要么xy,要么经度纬度
|
|
119
|
+
// latitude: 116.3,
|
|
120
|
+
// symbolSize: 10 //节点的大小 可选,可以是数字,可以是返回数字的function
|
|
121
|
+
// },
|
|
122
|
+
// {
|
|
123
|
+
// value: 4000,
|
|
124
|
+
// id: 's', // 必填
|
|
125
|
+
// text: '深圳', //label, 可选
|
|
126
|
+
// textStyle: { //label的样式, 可选
|
|
127
|
+
// fontSize: '14px',
|
|
128
|
+
// color: 'red',
|
|
129
|
+
// },
|
|
130
|
+
// longitude: 22.27, //position,必选, 要么xy,要么经度纬度
|
|
131
|
+
// latitude: 114,
|
|
132
|
+
// color: '深圳', //节点的颜色,可选
|
|
133
|
+
// symbolSize: 20 //节点的大小 可选,可以是数字,可以是返回数字的function
|
|
134
|
+
// }
|
|
135
|
+
// ],
|
|
136
|
+
data: [
|
|
137
|
+
{ name: '南海诸岛', value: 0 },
|
|
138
|
+
{ name: '北京市', value: Math.round(Math.random() * 500) },
|
|
139
|
+
{ name: '天津市', value: Math.round(Math.random() * 500) },
|
|
140
|
+
{ name: '河北省', value: Math.round(Math.random() * 500) },
|
|
141
|
+
{ name: '内蒙古自治区', value: Math.round(Math.random() * 500) },
|
|
142
|
+
{ name: '辽宁省', value: Math.round(Math.random() * 500) },
|
|
143
|
+
{ name: '吉林省', value: Math.round(Math.random() * 500) },
|
|
144
|
+
{ name: '黑龙江省', value: Math.round(Math.random() * 500) },
|
|
145
|
+
{ name: '上海市', value: Math.round(Math.random() * 500) },
|
|
146
|
+
{ name: '江苏省', value: Math.round(Math.random() * 500) },
|
|
147
|
+
{ name: '浙江省', value: Math.round(Math.random() * 500) },
|
|
148
|
+
{ name: '安徽省', value: Math.round(Math.random() * 500) },
|
|
149
|
+
{ name: '福建省', value: Math.round(Math.random() * 500) },
|
|
150
|
+
{ name: '江西省', value: Math.round(Math.random() * 500) },
|
|
151
|
+
{ name: '山东省', value: Math.round(Math.random() * 500) },
|
|
152
|
+
{ name: '河南省', value: Math.round(Math.random() * 500) },
|
|
153
|
+
{ name: '湖北省', value: Math.round(Math.random() * 500) },
|
|
154
|
+
{ name: '湖南省', value: Math.round(Math.random() * 500) },
|
|
155
|
+
{ name: '广东省', value: Math.round(Math.random() * 500) },
|
|
156
|
+
{ name: '广西壮族自治区', value: Math.round(Math.random() * 500) },
|
|
157
|
+
// { name: '海南省', value: Math.round(Math.random() * 500) },
|
|
158
|
+
// { name: '重庆市', value: Math.round(Math.random() * 500) },
|
|
159
|
+
// { name: '四川省', value: Math.round(Math.random() * 500) },
|
|
160
|
+
// { name: '贵州省', value: Math.round(Math.random() * 500) },
|
|
161
|
+
// { name: '云南省', value: Math.round(Math.random() * 500) },
|
|
162
|
+
{ name: '西藏自治区', value: Math.round(Math.random() * 500) },
|
|
163
|
+
// { name: '陕西省', value: Math.round(Math.random() * 500) },
|
|
164
|
+
// { name: '甘肃省', value: Math.round(Math.random() * 500) },
|
|
165
|
+
// { name: '青海省', value: Math.round(Math.random() * 500) },
|
|
166
|
+
// { name: '宁夏回族自治区', value: Math.round(Math.random() * 500) },
|
|
167
|
+
// { name: '新疆维吾尔自治区', value: Math.round(Math.random() * 500) },
|
|
168
|
+
{ name: '台湾省', value: Math.round(Math.random() * 500) },
|
|
169
|
+
{ name: '香港', value: Math.round(Math.random() * 500) },
|
|
170
|
+
{ name: '澳门', value: Math.round(Math.random() * 500) },
|
|
171
|
+
{ name: '', value: Math.round(Math.random() * 500) },
|
|
172
|
+
],
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
return (
|
|
178
|
+
<>
|
|
179
|
+
<div>中国地图-带Node和link</div>
|
|
180
|
+
<BasicMap width={1000} height={700} {...options} />
|
|
181
|
+
</>
|
|
182
|
+
);
|
|
183
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function WorldMap(): JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BasicMap } from '@tencent/tcharts-component';
|
|
4
|
+
import WorldMapJson from '@app/data/world_map_geojson.202012091746.json';
|
|
5
|
+
window['TCharts'].registerMap('world', WorldMapJson);
|
|
6
|
+
export default function WorldMap() {
|
|
7
|
+
var options = {
|
|
8
|
+
grid: { left: 0, right: 0, bottom: 0, top: 0, containLabel: true },
|
|
9
|
+
tooltip: {
|
|
10
|
+
trigger: 'item',
|
|
11
|
+
formatter: function (items) { return (items[0] ? "<div>".concat(items[0].name, "<div><div>\u4EBA\u6570: ").concat(items[0].value, "<div>") : ''); },
|
|
12
|
+
},
|
|
13
|
+
legend: {
|
|
14
|
+
show: false,
|
|
15
|
+
},
|
|
16
|
+
visualMap: {
|
|
17
|
+
min: 0,
|
|
18
|
+
max: 1000,
|
|
19
|
+
text: ['High', 'Low'],
|
|
20
|
+
realtime: false,
|
|
21
|
+
calculable: true,
|
|
22
|
+
inRange: {
|
|
23
|
+
color: ['lightskyblue', 'yellow', 'orangered']
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
dataSource: [
|
|
27
|
+
{
|
|
28
|
+
name: '世界地图热力图',
|
|
29
|
+
type: 'map',
|
|
30
|
+
mapType: 'world',
|
|
31
|
+
label: {
|
|
32
|
+
show: false,
|
|
33
|
+
},
|
|
34
|
+
itemStyle: {
|
|
35
|
+
borderWidth: 1,
|
|
36
|
+
borderColor: '#fff',
|
|
37
|
+
},
|
|
38
|
+
data: [
|
|
39
|
+
{ name: 'China', value: Math.round(Math.random() * 1000) },
|
|
40
|
+
{ name: 'United States of America', value: Math.round(Math.random() * 1000) },
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
};
|
|
45
|
+
return (React.createElement(React.Fragment, null,
|
|
46
|
+
React.createElement("div", null, "\u4E16\u754C\u5730\u56FE"),
|
|
47
|
+
React.createElement(BasicMap, __assign({ width: 1000, height: 800 }, options))));
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=WorldMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorldMap.js","sourceRoot":"","sources":["../../../../src/basicMap/_example/WorldMap.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,YAAY,MAAM,+CAA+C,CAAC;AACzE,MAAM,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,QAAQ;IAC9B,IAAM,OAAO,GAAG;QACd,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE;QAClE,OAAO,EAAE;YACP,OAAO,EAAE,MAAM;YACf,SAAS,EAAE,UAAA,KAAK,IAAI,OAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,eAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,qCAAiB,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,UAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAA7E,CAA6E;SAClG;QACD,MAAM,EAAE;YACN,IAAI,EAAE,KAAK;SACZ;QACD,SAAS,EAAE;YACT,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,IAAI;YACT,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC;YACrB,QAAQ,EAAE,KAAK;YACf,UAAU,EAAE,IAAI;YAChB,OAAO,EAAE;gBACP,KAAK,EAAE,CAAC,cAAc,EAAE,QAAQ,EAAE,WAAW,CAAC;aAC/C;SACF;QACD,UAAU,EAAE;YACV;gBACE,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,KAAK;gBACX,OAAO,EAAE,OAAO;gBAChB,KAAK,EAAE;oBACL,IAAI,EAAE,KAAK;iBACZ;gBACD,SAAS,EAAE;oBACT,WAAW,EAAE,CAAC;oBACd,WAAW,EAAE,MAAM;iBAEpB;gBACD,IAAI,EAAE;oBACJ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE;oBAC1D,EAAE,IAAI,EAAE,0BAA0B,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE;iBAC9E;aACF;SACF;KACF,CAAC;IAEF,OAAO,CACL;QACE,4DAAe;QACf,oBAAC,QAAQ,aAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAO,OAAO,EAAI,CACnD,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BasicMap } from '@tencent/tcharts-component';
|
|
3
|
+
import WorldMapJson from '@app/data/world_map_geojson.202012091746.json';
|
|
4
|
+
window['TCharts'].registerMap('world', WorldMapJson);
|
|
5
|
+
|
|
6
|
+
export default function WorldMap() {
|
|
7
|
+
const options = {
|
|
8
|
+
grid: { left: 0, right: 0, bottom: 0, top: 0, containLabel: true },
|
|
9
|
+
tooltip: {
|
|
10
|
+
trigger: 'item',
|
|
11
|
+
formatter: items => (items[0] ? `<div>${items[0].name}<div><div>人数: ${items[0].value}<div>` : ''),
|
|
12
|
+
},
|
|
13
|
+
legend: {
|
|
14
|
+
show: false,
|
|
15
|
+
},
|
|
16
|
+
visualMap: {
|
|
17
|
+
min: 0,
|
|
18
|
+
max: 1000,
|
|
19
|
+
text: ['High', 'Low'],
|
|
20
|
+
realtime: false,
|
|
21
|
+
calculable: true,
|
|
22
|
+
inRange: {
|
|
23
|
+
color: ['lightskyblue', 'yellow', 'orangered']
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
dataSource: [
|
|
27
|
+
{
|
|
28
|
+
name: '世界地图热力图',
|
|
29
|
+
type: 'map',
|
|
30
|
+
mapType: 'world', // 自定义扩展图表类型
|
|
31
|
+
label: {
|
|
32
|
+
show: false,
|
|
33
|
+
},
|
|
34
|
+
itemStyle: {
|
|
35
|
+
borderWidth: 1,
|
|
36
|
+
borderColor: '#fff',
|
|
37
|
+
// areaColor:'',
|
|
38
|
+
},
|
|
39
|
+
data: [
|
|
40
|
+
{ name: 'China', value: Math.round(Math.random() * 1000) },
|
|
41
|
+
{ name: 'United States of America', value: Math.round(Math.random() * 1000) },
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<>
|
|
49
|
+
<div>世界地图</div>
|
|
50
|
+
<BasicMap width={1000} height={800} {...options} />
|
|
51
|
+
</>
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ChartComponent } from '../common/chart';
|
|
2
|
+
import { ToolTipOptions, GridOptions, ChartRef, Data } from '../_type';
|
|
3
|
+
export interface MapProps {
|
|
4
|
+
width?: number | string;
|
|
5
|
+
height: number | string;
|
|
6
|
+
tooltip?: ToolTipOptions;
|
|
7
|
+
theme?: string;
|
|
8
|
+
dataSource: Data[];
|
|
9
|
+
grid?: GridOptions;
|
|
10
|
+
visualMap?: {
|
|
11
|
+
min?: number;
|
|
12
|
+
max?: number;
|
|
13
|
+
text?: any;
|
|
14
|
+
inRange?: any;
|
|
15
|
+
realtime?: Boolean;
|
|
16
|
+
calculable?: Boolean;
|
|
17
|
+
};
|
|
18
|
+
showSouthChinaSea?: boolean;
|
|
19
|
+
chartRef?: (chart?: ChartRef) => void;
|
|
20
|
+
geo?: any;
|
|
21
|
+
}
|
|
22
|
+
export default class BasicMap extends ChartComponent<MapProps> {
|
|
23
|
+
chartType: string;
|
|
24
|
+
constructor(props: any);
|
|
25
|
+
getOptions(props: any): {
|
|
26
|
+
legend: any;
|
|
27
|
+
tooltip: any;
|
|
28
|
+
series: any;
|
|
29
|
+
grid: any;
|
|
30
|
+
theme: any;
|
|
31
|
+
visualMap: any;
|
|
32
|
+
showSouthChinaSea: any;
|
|
33
|
+
chartRef: any;
|
|
34
|
+
link: any;
|
|
35
|
+
node: any;
|
|
36
|
+
hooks: any;
|
|
37
|
+
hideScroll: any;
|
|
38
|
+
geo: any;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ChartComponent } from '../common/chart';
|
|
3
|
+
import { addMapOption } from '../common/optionsHelp';
|
|
4
|
+
import { ChartMapComponent, ChartCore } from 'tvision-charts';
|
|
5
|
+
var BasicMap = (function (_super) {
|
|
6
|
+
__extends(BasicMap, _super);
|
|
7
|
+
function BasicMap(props) {
|
|
8
|
+
var _this = _super.call(this, props) || this;
|
|
9
|
+
_this.chartType = 'map';
|
|
10
|
+
ChartCore.use(ChartMapComponent);
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
BasicMap.prototype.getOptions = function (props) {
|
|
14
|
+
return addMapOption(props || this.props);
|
|
15
|
+
};
|
|
16
|
+
return BasicMap;
|
|
17
|
+
}(ChartComponent));
|
|
18
|
+
export default BasicMap;
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/basicMap/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AA0C9D;IAAsC,4BAAwB;IAE5D,kBAAY,KAAK;QACf,YAAA,MAAK,YAAC,KAAK,CAAC,SAAC;QAFf,eAAS,GAAG,KAAK,CAAC;QAGhB,SAAS,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;;IACnC,CAAC;IACD,6BAAU,GAAV,UAAW,KAAK;QACd,OAAO,YAAY,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;IACH,eAAC;AAAD,CAAC,AATD,CAAsC,cAAc,GASnD"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# BasicPie 基础饼图
|
|
2
|
+
|
|
3
|
+
基础饼图,广泛得应用在各个领域,用于表示不同分类的占比情况,通过弧度大小来对比各种分类,所有区块(圆弧)相加的和等于 100%。
|
|
4
|
+
|
|
5
|
+
## 使用示例
|
|
6
|
+
|
|
7
|
+
对于最简单的使用只需要配置少量参数即可
|
|
8
|
+
|
|
9
|
+
### 基础饼图
|
|
10
|
+
|
|
11
|
+
[Example: 基础饼图](./_example/Basic.jsx)
|
|
12
|
+
|
|
13
|
+
### 带间隔饼图
|
|
14
|
+
|
|
15
|
+
[Example: 带间隔饼图](./_example/SpacePic.jsx)
|
|
16
|
+
|
|
17
|
+
### 甜甜圈图
|
|
18
|
+
|
|
19
|
+
[Example: 甜甜圈图](./_example/DonutPic.jsx)
|
|
20
|
+
|
|
21
|
+
### 带间隔甜甜圈图
|
|
22
|
+
|
|
23
|
+
[Example: 带间隔甜甜圈图](./_example/SpaceDonutPic.jsx)
|
|
24
|
+
|
|
25
|
+
### 带标签饼图
|
|
26
|
+
|
|
27
|
+
[Example: 带标签饼图](./_example/LabelPic.jsx)
|
|
28
|
+
|
|
29
|
+
### 通用玫瑰图
|
|
30
|
+
|
|
31
|
+
[Example: 通用玫瑰图](./_example/RosePic.jsx)
|
|
32
|
+
|
|
33
|
+
## 组件属性
|
|
34
|
+
|
|
35
|
+
[Interface: PieProps](./index.tsx)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Basic(): JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BasicPie } from '@tencent/tcharts-component';
|
|
4
|
+
export default function Basic() {
|
|
5
|
+
var options = {
|
|
6
|
+
dataSource: [
|
|
7
|
+
{
|
|
8
|
+
name: '(上周)CPU利用率',
|
|
9
|
+
label: {
|
|
10
|
+
layout: 'inner',
|
|
11
|
+
formatters: {
|
|
12
|
+
normal: function () { },
|
|
13
|
+
hover: function () { },
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
radius: ['80%'],
|
|
17
|
+
type: 'pie',
|
|
18
|
+
itemStyle: { borderWidth: 0, borderColor: 'white' },
|
|
19
|
+
data: [
|
|
20
|
+
{
|
|
21
|
+
name: '(上周)CPU利用率',
|
|
22
|
+
value: 9.816,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: '(当前)CPU利用率',
|
|
26
|
+
value: 6.7,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: '(昨天)CPU利用率',
|
|
30
|
+
value: 9.516,
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
};
|
|
36
|
+
return (React.createElement(React.Fragment, null,
|
|
37
|
+
React.createElement("div", null, "\u57FA\u7840\u997C\u56FE"),
|
|
38
|
+
React.createElement(BasicPie, __assign({ height: 500 }, options))));
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=Basic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Basic.js","sourceRoot":"","sources":["../../../../src/basicPie/_example/Basic.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,OAAO,UAAU,KAAK;IAC3B,IAAM,OAAO,GAAG;QACd,UAAU,EAAE;YACV;gBACE,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE;oBACL,MAAM,EAAE,OAAO;oBACf,UAAU,EAAE;wBACV,MAAM,EAAE,cAAO,CAAC;wBAChB,KAAK,EAAE,cAAO,CAAC;qBAChB;iBACF;gBACD,MAAM,EAAE,CAAC,KAAK,CAAC;gBACf,IAAI,EAAE,KAAK;gBACX,SAAS,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE;gBACnD,IAAI,EAAE;oBACJ;wBACE,IAAI,EAAE,YAAY;wBAClB,KAAK,EAAE,KAAK;qBACb;oBACD;wBACE,IAAI,EAAE,YAAY;wBAClB,KAAK,EAAE,GAAG;qBACX;oBACD;wBACE,IAAI,EAAE,YAAY;wBAClB,KAAK,EAAE,KAAK;qBACb;iBACF;aACF;SACF;KACF,CAAC;IAEF,OAAO,CACL;QACE,4DAAe;QACf,oBAAC,QAAQ,aAAC,MAAM,EAAE,GAAG,IAAM,OAAO,EAAI,CACrC,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BasicPie } from '@tencent/tcharts-component';
|
|
3
|
+
|
|
4
|
+
export default function Basic() {
|
|
5
|
+
const options = {
|
|
6
|
+
dataSource: [
|
|
7
|
+
{
|
|
8
|
+
name: '(上周)CPU利用率',
|
|
9
|
+
label: {
|
|
10
|
+
layout: 'inner',
|
|
11
|
+
formatters: {
|
|
12
|
+
normal: () => {},
|
|
13
|
+
hover: () => {},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
radius: ['80%'],
|
|
17
|
+
type: 'pie',
|
|
18
|
+
itemStyle: { borderWidth: 0, borderColor: 'white' },
|
|
19
|
+
data: [
|
|
20
|
+
{
|
|
21
|
+
name: '(上周)CPU利用率',
|
|
22
|
+
value: 9.816,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: '(当前)CPU利用率',
|
|
26
|
+
value: 6.7,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: '(昨天)CPU利用率',
|
|
30
|
+
value: 9.516,
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<>
|
|
39
|
+
<div>基础饼图</div>
|
|
40
|
+
<BasicPie height={500} {...options} />
|
|
41
|
+
</>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function DonutPic(): JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BasicPie } from '@tencent/tcharts-component';
|
|
4
|
+
export default function DonutPic() {
|
|
5
|
+
var options = {
|
|
6
|
+
dataSource: [
|
|
7
|
+
{
|
|
8
|
+
name: '(上周)CPU利用率',
|
|
9
|
+
label: {
|
|
10
|
+
layout: 'inner',
|
|
11
|
+
formatters: {
|
|
12
|
+
normal: function () { },
|
|
13
|
+
hover: function () { },
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
radius: ['60%', '80%'],
|
|
17
|
+
type: 'pie',
|
|
18
|
+
data: [
|
|
19
|
+
{
|
|
20
|
+
name: '(上周)CPU利用率',
|
|
21
|
+
value: 9.816,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: '(当前)CPU利用率',
|
|
25
|
+
value: 6.7,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: '(昨天)CPU利用率',
|
|
29
|
+
value: 9.516,
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
};
|
|
35
|
+
return (React.createElement(React.Fragment, null,
|
|
36
|
+
React.createElement("div", null, "\u751C\u751C\u5708\u997C\u56FE"),
|
|
37
|
+
React.createElement(BasicPie, __assign({ height: 500 }, options))));
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=DonutPic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DonutPic.js","sourceRoot":"","sources":["../../../../src/basicPie/_example/DonutPic.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,OAAO,UAAU,QAAQ;IAC9B,IAAM,OAAO,GAAG;QACd,UAAU,EAAE;YACV;gBACE,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE;oBACL,MAAM,EAAE,OAAO;oBACf,UAAU,EAAE;wBACV,MAAM,EAAE,cAAO,CAAC;wBAChB,KAAK,EAAE,cAAO,CAAC;qBAChB;iBACF;gBACD,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;gBACtB,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE;oBACJ;wBACE,IAAI,EAAE,YAAY;wBAClB,KAAK,EAAE,KAAK;qBACb;oBACD;wBACE,IAAI,EAAE,YAAY;wBAClB,KAAK,EAAE,GAAG;qBACX;oBACD;wBACE,IAAI,EAAE,YAAY;wBAClB,KAAK,EAAE,KAAK;qBACb;iBACF;aACF;SACF;KACF,CAAC;IAEF,OAAO,CACL;QACE,kEAAgB;QAChB,oBAAC,QAAQ,aAAC,MAAM,EAAE,GAAG,IAAM,OAAO,EAAI,CACrC,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BasicPie } from '@tencent/tcharts-component';
|
|
3
|
+
|
|
4
|
+
export default function DonutPic() {
|
|
5
|
+
const options = {
|
|
6
|
+
dataSource: [
|
|
7
|
+
{
|
|
8
|
+
name: '(上周)CPU利用率',
|
|
9
|
+
label: {
|
|
10
|
+
layout: 'inner',
|
|
11
|
+
formatters: {
|
|
12
|
+
normal: () => {},
|
|
13
|
+
hover: () => {},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
radius: ['60%', '80%'],
|
|
17
|
+
type: 'pie',
|
|
18
|
+
data: [
|
|
19
|
+
{
|
|
20
|
+
name: '(上周)CPU利用率',
|
|
21
|
+
value: 9.816,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: '(当前)CPU利用率',
|
|
25
|
+
value: 6.7,
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: '(昨天)CPU利用率',
|
|
29
|
+
value: 9.516,
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<>
|
|
38
|
+
<div>甜甜圈饼图</div>
|
|
39
|
+
<BasicPie height={500} {...options} />
|
|
40
|
+
</>
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function LabelPic(): JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BasicPie } from '@tencent/tcharts-component';
|
|
4
|
+
export default function LabelPic() {
|
|
5
|
+
var options = {
|
|
6
|
+
dataSource: [
|
|
7
|
+
{
|
|
8
|
+
name: '工具统计',
|
|
9
|
+
radius: ['80%'],
|
|
10
|
+
type: 'pie',
|
|
11
|
+
data: [
|
|
12
|
+
{ value: 100, name: '内置编排工具' },
|
|
13
|
+
{ value: 100, name: '自定义编排工具' },
|
|
14
|
+
{ value: 234, name: '内置公共工具' },
|
|
15
|
+
{ value: 235, name: '自定义公共工具' },
|
|
16
|
+
{ value: 1540, name: '自定义私有工具' },
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
};
|
|
21
|
+
return (React.createElement(React.Fragment, null,
|
|
22
|
+
React.createElement("div", null, "\u5E26\u6807\u7B7E\u997C\u56FE"),
|
|
23
|
+
React.createElement(BasicPie, __assign({ height: 500 }, options))));
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=LabelPic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LabelPic.js","sourceRoot":"","sources":["../../../../src/basicPie/_example/LabelPic.jsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,MAAM,CAAC,OAAO,UAAU,QAAQ;IAC9B,IAAM,OAAO,GAAG;QACd,UAAU,EAAE;YACV;gBACE,IAAI,EAAE,MAAM;gBACZ,MAAM,EAAE,CAAC,KAAK,CAAC;gBACf,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE;oBACJ,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC9B,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE;oBAC/B,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC9B,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE;oBAC/B,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;iBACjC;aACF;SACF;KACF,CAAC;IACF,OAAO,CACL;QACE,kEAAgB;QAChB,oBAAC,QAAQ,aAAC,MAAM,EAAE,GAAG,IAAM,OAAO,EAAI,CACrC,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BasicPie } from '@tencent/tcharts-component';
|
|
3
|
+
|
|
4
|
+
export default function LabelPic() {
|
|
5
|
+
const options = {
|
|
6
|
+
dataSource: [
|
|
7
|
+
{
|
|
8
|
+
name: '工具统计',
|
|
9
|
+
radius: ['80%'],
|
|
10
|
+
type: 'pie',
|
|
11
|
+
data: [
|
|
12
|
+
{ value: 100, name: '内置编排工具' },
|
|
13
|
+
{ value: 100, name: '自定义编排工具' },
|
|
14
|
+
{ value: 234, name: '内置公共工具' },
|
|
15
|
+
{ value: 235, name: '自定义公共工具' },
|
|
16
|
+
{ value: 1540, name: '自定义私有工具' },
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
};
|
|
21
|
+
return (
|
|
22
|
+
<>
|
|
23
|
+
<div>带标签饼图</div>
|
|
24
|
+
<BasicPie height={500} {...options} />
|
|
25
|
+
</>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function RosePic(): JSX.Element;
|