@d3plus/core 3.1.5 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9922 -78537
- package/es/index.js +8 -0
- package/es/index.js.map +1 -1
- package/es/internal.js +54 -0
- package/es/internal.js.map +1 -0
- package/es/src/charts/AreaPlot/index.js +36 -0
- package/es/src/charts/AreaPlot/index.js.map +1 -0
- package/es/src/charts/BarChart/index.js +48 -0
- package/es/src/charts/BarChart/index.js.map +1 -0
- package/es/src/charts/BoxWhisker/index.js +52 -0
- package/es/src/charts/BoxWhisker/index.js.map +1 -0
- package/es/src/charts/BumpChart/index.js +81 -0
- package/es/src/charts/BumpChart/index.js.map +1 -0
- package/es/src/charts/Donut/index.js +42 -0
- package/es/src/charts/Donut/index.js.map +1 -0
- package/es/src/charts/Geomap/applyLayout.js +208 -0
- package/es/src/charts/Geomap/applyLayout.js.map +1 -0
- package/es/src/charts/Geomap/emit.js +169 -0
- package/es/src/charts/Geomap/emit.js.map +1 -0
- package/es/src/charts/Geomap/index.js +521 -0
- package/es/src/charts/Geomap/index.js.map +1 -0
- package/es/src/charts/LinePlot/index.js +32 -0
- package/es/src/charts/LinePlot/index.js.map +1 -0
- package/es/src/charts/Matrix/applyLayout.js +92 -0
- package/es/src/charts/Matrix/applyLayout.js.map +1 -0
- package/es/src/charts/Matrix/emit.js +44 -0
- package/es/src/charts/Matrix/emit.js.map +1 -0
- package/es/src/charts/Matrix/index.js +154 -0
- package/es/src/charts/Matrix/index.js.map +1 -0
- package/es/src/charts/Network/applyLayout.js +322 -0
- package/es/src/charts/Network/applyLayout.js.map +1 -0
- package/es/src/charts/Network/emit.js +273 -0
- package/es/src/charts/Network/emit.js.map +1 -0
- package/es/src/charts/Network/index.js +422 -0
- package/es/src/charts/Network/index.js.map +1 -0
- package/es/src/charts/Pack/applyLayout.js +46 -0
- package/es/src/charts/Pack/applyLayout.js.map +1 -0
- package/es/src/charts/Pack/emit.js +116 -0
- package/es/src/charts/Pack/emit.js.map +1 -0
- package/es/src/charts/Pack/index.js +194 -0
- package/es/src/charts/Pack/index.js.map +1 -0
- package/es/src/charts/Pack/recursionCircles.js +18 -0
- package/es/src/charts/Pack/recursionCircles.js.map +1 -0
- package/es/src/charts/Pie/applyLayout.js +44 -0
- package/es/src/charts/Pie/applyLayout.js.map +1 -0
- package/es/src/charts/Pie/emit.js +111 -0
- package/es/src/charts/Pie/emit.js.map +1 -0
- package/es/src/charts/Pie/index.js +134 -0
- package/es/src/charts/Pie/index.js.map +1 -0
- package/es/src/charts/Plot/draw.js +424 -0
- package/es/src/charts/Plot/draw.js.map +1 -0
- package/es/src/charts/Plot/index.js +827 -0
- package/es/src/charts/Plot/index.js.map +1 -0
- package/es/src/charts/Plot/labelPlacement.js +36 -0
- package/es/src/charts/Plot/labelPlacement.js.map +1 -0
- package/es/src/charts/Plot/pipeline.js +594 -0
- package/es/src/charts/Plot/pipeline.js.map +1 -0
- package/es/src/charts/Plot/pipelineDomains.js +254 -0
- package/es/src/charts/Plot/pipelineDomains.js.map +1 -0
- package/es/src/charts/Plot/pipelineLineLabels.js +210 -0
- package/es/src/charts/Plot/pipelineLineLabels.js.map +1 -0
- package/es/src/charts/Plot/shapeDefaults.js +189 -0
- package/es/src/charts/Plot/shapeDefaults.js.map +1 -0
- package/es/src/charts/Plot/stackHelpers.js +52 -0
- package/es/src/charts/Plot/stackHelpers.js.map +1 -0
- package/es/src/charts/Priestley/applyLayout.js +121 -0
- package/es/src/charts/Priestley/applyLayout.js.map +1 -0
- package/es/src/charts/Priestley/emit.js +129 -0
- package/es/src/charts/Priestley/emit.js.map +1 -0
- package/es/src/charts/Priestley/index.js +97 -0
- package/es/src/charts/Priestley/index.js.map +1 -0
- package/es/src/charts/Radar/applyLayout.js +326 -0
- package/es/src/charts/Radar/applyLayout.js.map +1 -0
- package/es/src/charts/Radar/emit.js +28 -0
- package/es/src/charts/Radar/emit.js.map +1 -0
- package/es/src/charts/Radar/index.js +98 -0
- package/es/src/charts/Radar/index.js.map +1 -0
- package/es/src/charts/RadialMatrix/applyLayout.js +132 -0
- package/es/src/charts/RadialMatrix/applyLayout.js.map +1 -0
- package/es/src/charts/RadialMatrix/emit.js +33 -0
- package/es/src/charts/RadialMatrix/emit.js.map +1 -0
- package/es/src/charts/RadialMatrix/index.js +144 -0
- package/es/src/charts/RadialMatrix/index.js.map +1 -0
- package/es/src/charts/Rings/applyLayout.js +508 -0
- package/es/src/charts/Rings/applyLayout.js.map +1 -0
- package/es/src/charts/Rings/emit.js +222 -0
- package/es/src/charts/Rings/emit.js.map +1 -0
- package/es/src/charts/Rings/index.js +245 -0
- package/es/src/charts/Rings/index.js.map +1 -0
- package/es/src/charts/Sankey/applyLayout.js +107 -0
- package/es/src/charts/Sankey/applyLayout.js.map +1 -0
- package/es/src/charts/Sankey/emit.js +134 -0
- package/es/src/charts/Sankey/emit.js.map +1 -0
- package/es/src/charts/Sankey/index.js +219 -0
- package/es/src/charts/Sankey/index.js.map +1 -0
- package/es/src/charts/StackedArea/index.js +27 -0
- package/es/src/charts/StackedArea/index.js.map +1 -0
- package/es/src/charts/Tree/applyLayout.js +233 -0
- package/es/src/charts/Tree/applyLayout.js.map +1 -0
- package/es/src/charts/Tree/emit.js +257 -0
- package/es/src/charts/Tree/emit.js.map +1 -0
- package/es/src/charts/Tree/index.js +105 -0
- package/es/src/charts/Tree/index.js.map +1 -0
- package/es/src/charts/Treemap/applyLayout.js +85 -0
- package/es/src/charts/Treemap/applyLayout.js.map +1 -0
- package/es/src/charts/Treemap/emit.js +141 -0
- package/es/src/charts/Treemap/emit.js.map +1 -0
- package/es/src/charts/Treemap/index.js +177 -0
- package/es/src/charts/Treemap/index.js.map +1 -0
- package/es/src/charts/Treemap/thresholdFunction.js +112 -0
- package/es/src/charts/Treemap/thresholdFunction.js.map +1 -0
- package/es/src/charts/definition/ChartDefinition.js +12 -0
- package/es/src/charts/definition/ChartDefinition.js.map +1 -0
- package/es/src/charts/definition/applyDefinition.js +107 -0
- package/es/src/charts/definition/applyDefinition.js.map +1 -0
- package/es/src/charts/definition/makeChart.js +153 -0
- package/es/src/charts/definition/makeChart.js.map +1 -0
- package/es/src/charts/drawSteps/zoomControls.js +231 -96
- package/es/src/charts/drawSteps/zoomControls.js.map +1 -1
- package/es/src/charts/events/click.legend.js +2 -2
- package/es/src/charts/events/click.legend.js.map +1 -1
- package/es/src/charts/events/click.shape.js +5 -5
- package/es/src/charts/events/click.shape.js.map +1 -1
- package/es/src/charts/events/mouseenter.js +20 -1
- package/es/src/charts/events/mouseenter.js.map +1 -1
- package/es/src/charts/events/mouseleave.js +19 -4
- package/es/src/charts/events/mouseleave.js.map +1 -1
- package/es/src/charts/events/mousemove.legend.js +10 -10
- package/es/src/charts/events/mousemove.legend.js.map +1 -1
- package/es/src/charts/events/mousemove.shape.js +14 -8
- package/es/src/charts/events/mousemove.shape.js.map +1 -1
- package/es/src/charts/events/touchstart.body.js.map +1 -1
- package/es/src/charts/features/axes.js +432 -0
- package/es/src/charts/features/axes.js.map +1 -0
- package/es/src/charts/features/chartGeometry.js +66 -0
- package/es/src/charts/features/chartGeometry.js.map +1 -0
- package/es/src/charts/features/colorScaleBucket.js +92 -0
- package/es/src/charts/features/colorScaleBucket.js.map +1 -0
- package/es/src/charts/features/emitHelpers.js +217 -0
- package/es/src/charts/features/emitHelpers.js.map +1 -0
- package/es/src/charts/features/ensureZoomDom.js +71 -0
- package/es/src/charts/features/ensureZoomDom.js.map +1 -0
- package/es/src/charts/features/features.js +650 -0
- package/es/src/charts/features/features.js.map +1 -0
- package/es/src/charts/features/featuresLegend.js +180 -0
- package/es/src/charts/features/featuresLegend.js.map +1 -0
- package/es/src/charts/features/legendLabel.js +12 -0
- package/es/src/charts/features/legendLabel.js.map +1 -0
- package/es/src/charts/features/lineLabels.js +154 -0
- package/es/src/charts/features/lineLabels.js.map +1 -0
- package/es/src/charts/features/plotPaint.js +512 -0
- package/es/src/charts/features/plotPaint.js.map +1 -0
- package/es/src/charts/features/shapeEmit.js +273 -0
- package/es/src/charts/features/shapeEmit.js.map +1 -0
- package/es/src/charts/helpers/matrixData.js +3 -3
- package/es/src/charts/helpers/matrixData.js.map +1 -1
- package/es/src/charts/index.js +21 -21
- package/es/src/charts/index.js.map +1 -1
- package/es/src/charts/pipeline/resolveSpec.js +44 -0
- package/es/src/charts/pipeline/resolveSpec.js.map +1 -0
- package/es/src/charts/pipeline/runChartDraw.js +109 -0
- package/es/src/charts/pipeline/runChartDraw.js.map +1 -0
- package/es/src/charts/pipeline/runVizPipeline.js +84 -0
- package/es/src/charts/pipeline/runVizPipeline.js.map +1 -0
- package/es/src/charts/pipeline/stages.js +103 -0
- package/es/src/charts/pipeline/stages.js.map +1 -0
- package/es/src/charts/pipeline/vizContext.js +29 -0
- package/es/src/charts/pipeline/vizContext.js.map +1 -0
- package/es/src/charts/pipeline/vizDraw.js +37 -0
- package/es/src/charts/pipeline/vizDraw.js.map +1 -0
- package/es/src/charts/pipeline/vizDrawPure.js +174 -0
- package/es/src/charts/pipeline/vizDrawPure.js.map +1 -0
- package/es/src/charts/pipeline/vizPreDraw.js +145 -0
- package/es/src/charts/pipeline/vizPreDraw.js.map +1 -0
- package/es/src/charts/pipeline/vizPreDrawPure.js +279 -0
- package/es/src/charts/pipeline/vizPreDrawPure.js.map +1 -0
- package/es/src/charts/plotBuffers/Bar.js +4 -4
- package/es/src/charts/plotBuffers/Bar.js.map +1 -1
- package/es/src/charts/plotBuffers/Box.js +4 -4
- package/es/src/charts/plotBuffers/Box.js.map +1 -1
- package/es/src/charts/plotBuffers/Circle.js +2 -2
- package/es/src/charts/plotBuffers/Circle.js.map +1 -1
- package/es/src/charts/plotBuffers/Line.js +5 -5
- package/es/src/charts/plotBuffers/Line.js.map +1 -1
- package/es/src/charts/plotBuffers/Rect.js +2 -2
- package/es/src/charts/plotBuffers/Rect.js.map +1 -1
- package/es/src/charts/plotBuffers/discreteBuffer.js +1 -2
- package/es/src/charts/plotBuffers/discreteBuffer.js.map +1 -1
- package/es/src/charts/plotBuffers/numericBuffer.js +1 -2
- package/es/src/charts/plotBuffers/numericBuffer.js.map +1 -1
- package/es/src/charts/viz/Viz.js +985 -0
- package/es/src/charts/viz/Viz.js.map +1 -0
- package/es/src/charts/viz/VizBase.js +447 -0
- package/es/src/charts/viz/VizBase.js.map +1 -0
- package/es/src/charts/viz/VizBaseConfig.js +504 -0
- package/es/src/charts/viz/VizBaseConfig.js.map +1 -0
- package/es/src/charts/viz/interactionOpacity.js +247 -0
- package/es/src/charts/viz/interactionOpacity.js.map +1 -0
- package/es/src/charts/viz/ordinalColor.js +71 -0
- package/es/src/charts/viz/ordinalColor.js.map +1 -0
- package/es/src/charts/viz/trailCatchup.js +127 -0
- package/es/src/charts/viz/trailCatchup.js.map +1 -0
- package/es/src/charts/viz/vizDefaults.js +602 -0
- package/es/src/charts/viz/vizDefaults.js.map +1 -0
- package/es/src/charts/viz/vizRender.js +251 -0
- package/es/src/charts/viz/vizRender.js.map +1 -0
- package/es/src/charts/viz/vizTypes.js +28 -0
- package/es/src/charts/viz/vizTypes.js.map +1 -0
- package/es/src/components/Axis/Axis.js +691 -0
- package/es/src/components/Axis/Axis.js.map +1 -0
- package/es/src/components/Axis/AxisBottom.js.map +1 -0
- package/es/src/components/Axis/AxisLeft.js.map +1 -0
- package/es/src/components/Axis/AxisRight.js.map +1 -0
- package/es/src/components/Axis/AxisTop.js.map +1 -0
- package/es/src/components/Axis/axisLayout.js +208 -0
- package/es/src/components/Axis/axisLayout.js.map +1 -0
- package/es/src/components/Axis/axisLayoutLabels.js +177 -0
- package/es/src/components/Axis/axisLayoutLabels.js.map +1 -0
- package/es/src/components/Axis/axisLayoutScale.js +374 -0
- package/es/src/components/Axis/axisLayoutScale.js.map +1 -0
- package/es/src/components/Axis/axisRender.js +535 -0
- package/es/src/components/Axis/axisRender.js.map +1 -0
- package/es/src/components/ColorScale/ColorScale.js +506 -0
- package/es/src/components/ColorScale/ColorScale.js.map +1 -0
- package/es/src/components/ColorScale/colorScaleRender.js +277 -0
- package/es/src/components/ColorScale/colorScaleRender.js.map +1 -0
- package/es/src/components/ColorScale/colorScaleScale.js +274 -0
- package/es/src/components/ColorScale/colorScaleScale.js.map +1 -0
- package/es/src/components/Legend/Legend.js +445 -0
- package/es/src/components/Legend/Legend.js.map +1 -0
- package/es/src/components/Legend/legendConfig.js +87 -0
- package/es/src/components/Legend/legendConfig.js.map +1 -0
- package/es/src/components/Legend/legendRender.js +245 -0
- package/es/src/components/Legend/legendRender.js.map +1 -0
- package/es/src/components/Message.js.map +1 -1
- package/es/src/components/TextBox.js +639 -453
- package/es/src/components/TextBox.js.map +1 -1
- package/es/src/components/Timeline/Timeline.js +674 -0
- package/es/src/components/Timeline/Timeline.js.map +1 -0
- package/es/src/components/Timeline/timelineConfig.js +115 -0
- package/es/src/components/Timeline/timelineConfig.js.map +1 -0
- package/es/src/components/Timeline/timelineRender.js +267 -0
- package/es/src/components/Timeline/timelineRender.js.map +1 -0
- package/es/src/components/Tooltip.js +288 -249
- package/es/src/components/Tooltip.js.map +1 -1
- package/es/src/components/index.js +8 -8
- package/es/src/components/index.js.map +1 -1
- package/es/src/fluent.js +265 -0
- package/es/src/fluent.js.map +1 -0
- package/es/src/shapes/Area.js +96 -114
- package/es/src/shapes/Area.js.map +1 -1
- package/es/src/shapes/Bar.js +71 -86
- package/es/src/shapes/Bar.js.map +1 -1
- package/es/src/shapes/Box.js +295 -190
- package/es/src/shapes/Box.js.map +1 -1
- package/es/src/shapes/Circle.js +72 -31
- package/es/src/shapes/Circle.js.map +1 -1
- package/es/src/shapes/Image.js +164 -85
- package/es/src/shapes/Image.js.map +1 -1
- package/es/src/shapes/Line.js +51 -94
- package/es/src/shapes/Line.js.map +1 -1
- package/es/src/shapes/Path.js +33 -41
- package/es/src/shapes/Path.js.map +1 -1
- package/es/src/shapes/Rect.js +86 -37
- package/es/src/shapes/Rect.js.map +1 -1
- package/es/src/shapes/Shape.js +655 -678
- package/es/src/shapes/Shape.js.map +1 -1
- package/es/src/shapes/Whisker.js +156 -61
- package/es/src/shapes/Whisker.js.map +1 -1
- package/es/src/shapes/buildLabelData.js +70 -0
- package/es/src/shapes/buildLabelData.js.map +1 -0
- package/es/src/shapes/emitLabels.js +84 -0
- package/es/src/shapes/emitLabels.js.map +1 -0
- package/es/src/shapes/hitAreaNode.js +37 -0
- package/es/src/shapes/hitAreaNode.js.map +1 -0
- package/es/src/shapes/sceneSort.js +57 -0
- package/es/src/shapes/sceneSort.js.map +1 -0
- package/es/src/shapes/shapeConfig.js +31 -0
- package/es/src/shapes/shapeConfig.js.map +1 -0
- package/es/src/utils/BaseClass.js +35 -19
- package/es/src/utils/BaseClass.js.map +1 -1
- package/es/src/utils/D3Scale.js +16 -0
- package/es/src/utils/D3Scale.js.map +1 -0
- package/es/src/utils/D3plusConfig.js.map +1 -1
- package/es/src/utils/configPrep.js +8 -3
- package/es/src/utils/configPrep.js.map +1 -1
- package/es/src/utils/getProp.js +1 -1
- package/es/src/utils/getProp.js.map +1 -1
- package/es/src/utils/index.js +1 -0
- package/es/src/utils/index.js.map +1 -1
- package/es/src/utils/paintComponentScene.js +59 -0
- package/es/src/utils/paintComponentScene.js.map +1 -0
- package/es/umd-entry.js +16 -0
- package/es/umd-entry.js.map +1 -0
- package/package.json +17 -9
- package/types/index.d.ts +3 -1
- package/types/internal.d.ts +54 -0
- package/types/src/charts/AreaPlot/index.d.ts +10 -0
- package/types/src/charts/BarChart/index.d.ts +10 -0
- package/types/src/charts/BoxWhisker/index.d.ts +11 -0
- package/types/src/charts/BumpChart/index.d.ts +11 -0
- package/types/src/charts/ChartDefinition.d.ts +75 -0
- package/types/src/charts/Donut/index.d.ts +13 -0
- package/types/src/charts/Geomap/applyLayout.d.ts +7 -0
- package/types/src/charts/Geomap/emit.d.ts +7 -0
- package/types/src/charts/Geomap/index.d.ts +14 -0
- package/types/src/charts/Geomap.d.ts +6 -0
- package/types/src/charts/LinePlot/index.d.ts +10 -0
- package/types/src/charts/Matrix/applyLayout.d.ts +9 -0
- package/types/src/charts/Matrix/emit.d.ts +6 -0
- package/types/src/charts/Matrix/index.d.ts +14 -0
- package/types/src/charts/Matrix.d.ts +0 -26
- package/types/src/charts/Network/applyLayout.d.ts +10 -0
- package/types/src/charts/Network/emit.d.ts +6 -0
- package/types/src/charts/Network/index.d.ts +7 -0
- package/types/src/charts/Network.d.ts +0 -24
- package/types/src/charts/Pack/applyLayout.d.ts +16 -0
- package/types/src/charts/Pack/emit.d.ts +6 -0
- package/types/src/charts/Pack/index.d.ts +15 -0
- package/types/src/charts/Pack/recursionCircles.d.ts +7 -0
- package/types/src/charts/Pack.d.ts +0 -13
- package/types/src/charts/Pie/applyLayout.d.ts +8 -0
- package/types/src/charts/Pie/emit.d.ts +5 -0
- package/types/src/charts/Pie/index.d.ts +14 -0
- package/types/src/charts/Pie.d.ts +0 -27
- package/types/src/charts/Plot/draw.d.ts +2 -0
- package/types/src/charts/Plot/index.d.ts +167 -0
- package/types/src/charts/Plot/labelPlacement.d.ts +15 -0
- package/types/src/charts/Plot/pipeline.d.ts +70 -0
- package/types/src/charts/Plot/pipelineDomains.d.ts +2 -0
- package/types/src/charts/Plot/pipelineLineLabels.d.ts +2 -0
- package/types/src/charts/Plot/shapeDefaults.d.ts +64 -0
- package/types/src/charts/Plot/stackHelpers.d.ts +24 -0
- package/types/src/charts/Plot.d.ts +23 -72
- package/types/src/charts/Priestley/applyLayout.d.ts +21 -0
- package/types/src/charts/Priestley/emit.d.ts +6 -0
- package/types/src/charts/Priestley/index.d.ts +14 -0
- package/types/src/charts/Radar/applyLayout.d.ts +10 -0
- package/types/src/charts/Radar/emit.d.ts +7 -0
- package/types/src/charts/Radar/index.d.ts +14 -0
- package/types/src/charts/RadialMatrix/applyLayout.d.ts +11 -0
- package/types/src/charts/RadialMatrix/emit.d.ts +6 -0
- package/types/src/charts/RadialMatrix/index.d.ts +14 -0
- package/types/src/charts/RadialMatrix.d.ts +0 -15
- package/types/src/charts/Rings/applyLayout.d.ts +2 -0
- package/types/src/charts/Rings/emit.d.ts +7 -0
- package/types/src/charts/Rings/index.d.ts +15 -0
- package/types/src/charts/Rings.d.ts +0 -13
- package/types/src/charts/Sankey/applyLayout.d.ts +7 -0
- package/types/src/charts/Sankey/emit.d.ts +6 -0
- package/types/src/charts/Sankey/index.d.ts +7 -0
- package/types/src/charts/Sankey.d.ts +0 -4
- package/types/src/charts/StackedArea/index.d.ts +10 -0
- package/types/src/charts/Tree/applyLayout.d.ts +2 -0
- package/types/src/charts/Tree/emit.d.ts +7 -0
- package/types/src/charts/Tree/index.d.ts +14 -0
- package/types/src/charts/Tree.d.ts +0 -16
- package/types/src/charts/Treemap/applyLayout.d.ts +16 -0
- package/types/src/charts/Treemap/emit.d.ts +6 -0
- package/types/src/charts/Treemap/index.d.ts +18 -0
- package/types/src/charts/Treemap/thresholdFunction.d.ts +25 -0
- package/types/src/charts/Treemap.d.ts +4 -13
- package/types/src/charts/Viz.d.ts +49 -361
- package/types/src/charts/VizBase.d.ts +158 -0
- package/types/src/charts/VizBaseConfig.d.ts +148 -0
- package/types/src/charts/applyDefinition.d.ts +13 -0
- package/types/src/charts/axes.d.ts +134 -0
- package/types/src/charts/chartGeometry.d.ts +58 -0
- package/types/src/charts/definition/ChartDefinition.d.ts +84 -0
- package/types/src/charts/definition/applyDefinition.d.ts +13 -0
- package/types/src/charts/definition/makeChart.d.ts +22 -0
- package/types/src/charts/drawSteps/zoomControls.d.ts +25 -5
- package/types/src/charts/emitHelpers.d.ts +122 -0
- package/types/src/charts/ensureZoomDom.d.ts +39 -0
- package/types/src/charts/events/click.legend.d.ts +1 -1
- package/types/src/charts/events/click.shape.d.ts +1 -1
- package/types/src/charts/events/mouseenter.d.ts +1 -1
- package/types/src/charts/events/mouseleave.d.ts +1 -1
- package/types/src/charts/events/mousemove.legend.d.ts +1 -1
- package/types/src/charts/events/mousemove.shape.d.ts +1 -1
- package/types/src/charts/events/touchstart.body.d.ts +1 -1
- package/types/src/charts/factories.d.ts +73 -0
- package/types/src/charts/features/axes.d.ts +134 -0
- package/types/src/charts/features/chartGeometry.d.ts +58 -0
- package/types/src/charts/features/colorScaleBucket.d.ts +43 -0
- package/types/src/charts/features/colorScaleBucketShare.d.ts +16 -0
- package/types/src/charts/features/emitHelpers.d.ts +123 -0
- package/types/src/charts/features/ensureZoomDom.d.ts +39 -0
- package/types/src/charts/features/features.d.ts +152 -0
- package/types/src/charts/features/featuresLegend.d.ts +12 -0
- package/types/src/charts/features/legendLabel.d.ts +11 -0
- package/types/src/charts/features/lineLabels.d.ts +40 -0
- package/types/src/charts/features/plotPaint.d.ts +233 -0
- package/types/src/charts/features/shapeEmit.d.ts +61 -0
- package/types/src/charts/features.d.ts +152 -0
- package/types/src/charts/featuresLegend.d.ts +12 -0
- package/types/src/charts/helpers/matrixData.d.ts +1 -1
- package/types/src/charts/index.d.ts +21 -21
- package/types/src/charts/legendLabel.d.ts +11 -0
- package/types/src/charts/lineLabels.d.ts +40 -0
- package/types/src/charts/makeChart.d.ts +22 -0
- package/types/src/charts/pipeline/resolveSpec.d.ts +51 -0
- package/types/src/charts/pipeline/runChartDraw.d.ts +38 -0
- package/types/src/charts/pipeline/runVizPipeline.d.ts +31 -0
- package/types/src/charts/pipeline/stages.d.ts +160 -0
- package/types/src/charts/pipeline/vizContext.d.ts +45 -0
- package/types/src/charts/pipeline/vizDraw.d.ts +25 -0
- package/types/src/charts/pipeline/vizDrawPure.d.ts +46 -0
- package/types/src/charts/pipeline/vizPreDraw.d.ts +22 -0
- package/types/src/charts/pipeline/vizPreDrawPure.d.ts +68 -0
- package/types/src/charts/plotBuffers/Bar.d.ts +6 -5
- package/types/src/charts/plotBuffers/Box.d.ts +6 -5
- package/types/src/charts/plotBuffers/Circle.d.ts +6 -5
- package/types/src/charts/plotBuffers/Line.d.ts +6 -5
- package/types/src/charts/plotBuffers/Rect.d.ts +6 -5
- package/types/src/charts/plotBuffers/discreteBuffer.d.ts +2 -1
- package/types/src/charts/plotBuffers/numericBuffer.d.ts +2 -1
- package/types/src/charts/plotPaint.d.ts +233 -0
- package/types/src/charts/resolveSpec.d.ts +50 -0
- package/types/src/charts/runChartDraw.d.ts +38 -0
- package/types/src/charts/runVizPipeline.d.ts +31 -0
- package/types/src/charts/shapeEmit.d.ts +61 -0
- package/types/src/charts/stages.d.ts +117 -0
- package/types/src/charts/viz/Viz.d.ts +111 -0
- package/types/src/charts/viz/VizBase.d.ts +160 -0
- package/types/src/charts/viz/VizBaseConfig.d.ts +156 -0
- package/types/src/charts/viz/interactionOpacity.d.ts +23 -0
- package/types/src/charts/viz/ordinalColor.d.ts +14 -0
- package/types/src/charts/viz/trailCatchup.d.ts +14 -0
- package/types/src/charts/viz/vizDefaults.d.ts +8 -0
- package/types/src/charts/viz/vizRender.d.ts +8 -0
- package/types/src/charts/viz/vizTypes.d.ts +250 -0
- package/types/src/charts/vizContext.d.ts +46 -0
- package/types/src/charts/vizDefaults.d.ts +8 -0
- package/types/src/charts/vizDraw.d.ts +25 -0
- package/types/src/charts/vizDrawPure.d.ts +17 -0
- package/types/src/charts/vizPreDraw.d.ts +22 -0
- package/types/src/charts/vizPreDrawPure.d.ts +40 -0
- package/types/src/charts/vizRender.d.ts +8 -0
- package/types/src/charts/vizTypes.d.ts +202 -0
- package/types/src/components/Axis/Axis.d.ts +182 -0
- package/types/src/components/Axis/AxisBottom.d.ts +11 -0
- package/types/src/components/Axis/AxisLeft.d.ts +11 -0
- package/types/src/components/Axis/AxisRight.d.ts +11 -0
- package/types/src/components/Axis/AxisTop.d.ts +11 -0
- package/types/src/components/Axis/axisLayout.d.ts +29 -0
- package/types/src/components/Axis/axisLayoutLabels.d.ts +70 -0
- package/types/src/components/Axis/axisLayoutScale.d.ts +14 -0
- package/types/src/components/Axis/axisRender.d.ts +68 -0
- package/types/src/components/Axis.d.ts +68 -194
- package/types/src/components/ColorScale/ColorScale.d.ts +100 -0
- package/types/src/components/ColorScale/colorScaleRender.d.ts +15 -0
- package/types/src/components/ColorScale/colorScaleScale.d.ts +19 -0
- package/types/src/components/ColorScale.d.ts +1 -129
- package/types/src/components/Legend/Legend.d.ts +95 -0
- package/types/src/components/Legend/legendConfig.d.ts +7 -0
- package/types/src/components/Legend/legendRender.d.ts +16 -0
- package/types/src/components/Legend.d.ts +9 -73
- package/types/src/components/TextBox.d.ts +25 -218
- package/types/src/components/Timeline/Timeline.d.ts +118 -0
- package/types/src/components/Timeline/timelineConfig.d.ts +6 -0
- package/types/src/components/Timeline/timelineRender.d.ts +24 -0
- package/types/src/components/Timeline.d.ts +7 -81
- package/types/src/components/Tooltip.d.ts +20 -200
- package/types/src/components/axisLayout.d.ts +27 -0
- package/types/src/components/axisLayoutLabels.d.ts +42 -0
- package/types/src/components/axisLayoutScale.d.ts +12 -0
- package/types/src/components/axisRender.d.ts +65 -0
- package/types/src/components/colorScaleRender.d.ts +15 -0
- package/types/src/components/colorScaleScale.d.ts +19 -0
- package/types/src/components/index.d.ts +8 -8
- package/types/src/components/legendConfig.d.ts +7 -0
- package/types/src/components/legendRender.d.ts +16 -0
- package/types/src/components/timelineConfig.d.ts +6 -0
- package/types/src/components/timelineRender.d.ts +14 -0
- package/types/src/fluent.d.ts +94 -0
- package/types/src/shapes/Area.d.ts +15 -27
- package/types/src/shapes/Bar.d.ts +13 -33
- package/types/src/shapes/Box.d.ts +17 -56
- package/types/src/shapes/Circle.d.ts +11 -17
- package/types/src/shapes/Image.d.ts +18 -84
- package/types/src/shapes/Line.d.ts +12 -22
- package/types/src/shapes/Path.d.ts +12 -19
- package/types/src/shapes/Rect.d.ts +11 -27
- package/types/src/shapes/Shape.d.ts +46 -257
- package/types/src/shapes/Whisker.d.ts +15 -42
- package/types/src/shapes/buildLabelData.d.ts +50 -0
- package/types/src/shapes/emitLabels.d.ts +16 -0
- package/types/src/shapes/hitAreaNode.d.ts +19 -0
- package/types/src/shapes/sceneSort.d.ts +20 -0
- package/types/src/shapes/shapeConfig.d.ts +226 -0
- package/types/src/utils/BaseClass.d.ts +13 -7
- package/types/src/utils/D3Scale.d.ts +48 -0
- package/types/src/utils/D3plusConfig.d.ts +230 -3
- package/types/src/utils/configPrep.d.ts +7 -4
- package/types/src/utils/getProp.d.ts +3 -1
- package/types/src/utils/index.d.ts +3 -1
- package/types/src/utils/paintComponentScene.d.ts +28 -0
- package/types/umd-entry.d.ts +15 -0
- package/umd/d3plus-core.full.js +31148 -19470
- package/umd/d3plus-core.full.js.map +1 -1
- package/umd/d3plus-core.full.min.js +5315 -2939
- package/umd/d3plus-core.js +17379 -10575
- package/umd/d3plus-core.js.map +1 -1
- package/umd/d3plus-core.min.js +3470 -1873
- package/es/src/charts/AreaPlot.js +0 -85
- package/es/src/charts/AreaPlot.js.map +0 -1
- package/es/src/charts/BarChart.js +0 -92
- package/es/src/charts/BarChart.js.map +0 -1
- package/es/src/charts/BoxWhisker.js +0 -92
- package/es/src/charts/BoxWhisker.js.map +0 -1
- package/es/src/charts/BumpChart.js +0 -147
- package/es/src/charts/BumpChart.js.map +0 -1
- package/es/src/charts/Donut.js +0 -84
- package/es/src/charts/Donut.js.map +0 -1
- package/es/src/charts/Geomap.js +0 -766
- package/es/src/charts/Geomap.js.map +0 -1
- package/es/src/charts/LinePlot.js +0 -83
- package/es/src/charts/LinePlot.js.map +0 -1
- package/es/src/charts/Matrix.js +0 -341
- package/es/src/charts/Matrix.js.map +0 -1
- package/es/src/charts/Network.js +0 -796
- package/es/src/charts/Network.js.map +0 -1
- package/es/src/charts/Pack.js +0 -308
- package/es/src/charts/Pack.js.map +0 -1
- package/es/src/charts/Pie.js +0 -232
- package/es/src/charts/Pie.js.map +0 -1
- package/es/src/charts/Plot.js +0 -2114
- package/es/src/charts/Plot.js.map +0 -1
- package/es/src/charts/Priestley.js +0 -296
- package/es/src/charts/Priestley.js.map +0 -1
- package/es/src/charts/Radar.js +0 -420
- package/es/src/charts/Radar.js.map +0 -1
- package/es/src/charts/RadialMatrix.js +0 -383
- package/es/src/charts/RadialMatrix.js.map +0 -1
- package/es/src/charts/Rings.js +0 -788
- package/es/src/charts/Rings.js.map +0 -1
- package/es/src/charts/Sankey.js +0 -461
- package/es/src/charts/Sankey.js.map +0 -1
- package/es/src/charts/StackedArea.js +0 -80
- package/es/src/charts/StackedArea.js.map +0 -1
- package/es/src/charts/Tree.js +0 -347
- package/es/src/charts/Tree.js.map +0 -1
- package/es/src/charts/Treemap.js +0 -454
- package/es/src/charts/Treemap.js.map +0 -1
- package/es/src/charts/Viz.js +0 -1832
- package/es/src/charts/Viz.js.map +0 -1
- package/es/src/charts/drawSteps/drawAttribution.js +0 -16
- package/es/src/charts/drawSteps/drawAttribution.js.map +0 -1
- package/es/src/charts/drawSteps/drawBack.js +0 -24
- package/es/src/charts/drawSteps/drawBack.js.map +0 -1
- package/es/src/charts/drawSteps/drawColorScale.js +0 -75
- package/es/src/charts/drawSteps/drawColorScale.js.map +0 -1
- package/es/src/charts/drawSteps/drawLegend.js +0 -122
- package/es/src/charts/drawSteps/drawLegend.js.map +0 -1
- package/es/src/charts/drawSteps/drawSubtitle.js +0 -31
- package/es/src/charts/drawSteps/drawSubtitle.js.map +0 -1
- package/es/src/charts/drawSteps/drawTimeline.js +0 -85
- package/es/src/charts/drawSteps/drawTimeline.js.map +0 -1
- package/es/src/charts/drawSteps/drawTitle.js +0 -31
- package/es/src/charts/drawSteps/drawTitle.js.map +0 -1
- package/es/src/charts/drawSteps/drawTotal.js +0 -32
- package/es/src/charts/drawSteps/drawTotal.js.map +0 -1
- package/es/src/components/Axis.js +0 -1454
- package/es/src/components/Axis.js.map +0 -1
- package/es/src/components/AxisBottom.js.map +0 -1
- package/es/src/components/AxisLeft.js.map +0 -1
- package/es/src/components/AxisRight.js.map +0 -1
- package/es/src/components/AxisTop.js.map +0 -1
- package/es/src/components/ColorScale.js +0 -843
- package/es/src/components/ColorScale.js.map +0 -1
- package/es/src/components/Legend.js +0 -622
- package/es/src/components/Legend.js.map +0 -1
- package/es/src/components/Timeline.js +0 -695
- package/es/src/components/Timeline.js.map +0 -1
- /package/es/src/components/{AxisBottom.js → Axis/AxisBottom.js} +0 -0
- /package/es/src/components/{AxisLeft.js → Axis/AxisLeft.js} +0 -0
- /package/es/src/components/{AxisRight.js → Axis/AxisRight.js} +0 -0
- /package/es/src/components/{AxisTop.js → Axis/AxisTop.js} +0 -0
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { select } from "d3-selection";
|
|
2
1
|
import type { DataPoint } from "@d3plus/data";
|
|
3
|
-
|
|
2
|
+
import type { Renderer, Scene } from "@d3plus/render";
|
|
3
|
+
import VizBase from "./VizBase.js";
|
|
4
4
|
/**
|
|
5
5
|
Creates an x/y plot based on an array of data. See [this example](https://d3plus.org/examples/d3plus-treemap/getting-started/) for help getting started using the treemap generator.
|
|
6
6
|
*/
|
|
7
|
-
export default class Viz extends
|
|
8
|
-
[key: string]: any;
|
|
7
|
+
export default class Viz extends VizBase {
|
|
9
8
|
/**
|
|
10
9
|
Invoked when creating a new class instance, and sets any default parameters.
|
|
11
10
|
@private
|
|
@@ -16,6 +15,16 @@ export default class Viz extends Viz_base {
|
|
|
16
15
|
@private
|
|
17
16
|
*/
|
|
18
17
|
_preDraw(): void;
|
|
18
|
+
/**
|
|
19
|
+
Composes a backend-agnostic scene graph from the shapes/features produced
|
|
20
|
+
by the most recent render. Combines:
|
|
21
|
+
- `_chartScene` (cells from `chartDef.emit`, or `Plot._paint` for the
|
|
22
|
+
paint-driven Plot family) wrapped in viz-chart-cells
|
|
23
|
+
- `_shapes` (still used by some charts) — each shape's toScene
|
|
24
|
+
- chart-level components (Legend/ColorScale/Timeline) via their toScene
|
|
25
|
+
- `_featurePanels` (from FeatureModule layouts) wrapped in viz-features
|
|
26
|
+
*/
|
|
27
|
+
toScene(): Scene;
|
|
19
28
|
/**
|
|
20
29
|
Called by render once all checks are passed.
|
|
21
30
|
@private
|
|
@@ -38,365 +47,44 @@ export default class Viz extends Viz_base {
|
|
|
38
47
|
*/
|
|
39
48
|
render(callback?: () => void): this;
|
|
40
49
|
/**
|
|
41
|
-
|
|
50
|
+
Selects which @d3plus/render backend paints the visible output.
|
|
51
|
+
`"svg"` = SvgRenderer (default), `"canvas"` = CanvasRenderer.
|
|
52
|
+
Boolean arguments both normalize to `"svg"`.
|
|
42
53
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
The active callback function for highlighting shapes.
|
|
46
|
-
*/
|
|
47
|
-
active(_?: ((d: DataPoint, i: number) => boolean) | false): this | ((d: DataPoint, i: number) => boolean) | false;
|
|
48
|
-
/**
|
|
49
|
-
Custom aggregation methods for each data key.
|
|
50
|
-
*/
|
|
51
|
-
aggs(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
52
|
-
/**
|
|
53
|
-
The "aria-hidden" attribute of the containing SVG element. The default value is "false", but if you need to hide the SVG from screen readers set this property to "true".
|
|
54
|
-
*/
|
|
55
|
-
ariaHidden(_?: boolean): this | boolean;
|
|
56
|
-
/**
|
|
57
|
-
Sets text to be shown positioned absolute on top of the visualization in the bottom-right corner. This is most often used in Geomaps to display the copyright of map tiles. The text is rendered as HTML, so any valid HTML string will render as expected (eg. anchor links work).
|
|
58
|
-
*/
|
|
59
|
-
attribution(_?: string | boolean): this | string | boolean;
|
|
60
|
-
/**
|
|
61
|
-
Configuration object for the attribution style.
|
|
62
|
-
*/
|
|
63
|
-
attributionStyle(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
64
|
-
/**
|
|
65
|
-
Configuration object for the back button.
|
|
66
|
-
*/
|
|
67
|
-
backConfig(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
68
|
-
/**
|
|
69
|
-
Enables a lru cache that stores up to 5 previously loaded files/URLs. Helpful when constantly writing over the data array with a URL in the render function of a react component.
|
|
70
|
-
*/
|
|
71
|
-
cache(_?: boolean): this | boolean;
|
|
72
|
-
/**
|
|
73
|
-
Defines the main color to be used for each data point in a visualization. Can be either an accessor function or a string key to reference in each data point. If a color value is returned, it will be used as is. If a string is returned, a unique color will be assigned based on the string.
|
|
74
|
-
*/
|
|
75
|
-
color(_?: string | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint]) | false): this | string | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint]) | false;
|
|
54
|
+
renderer(): "svg" | "canvas";
|
|
55
|
+
renderer(_: "svg" | "canvas" | true | false): this;
|
|
76
56
|
/**
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
A pass-through to the config method of ColorScale.
|
|
82
|
-
*/
|
|
83
|
-
colorScaleConfig(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
84
|
-
/**
|
|
85
|
-
Tells the colorScale whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the colorScale appears centered above the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.
|
|
86
|
-
*/
|
|
87
|
-
colorScalePadding(_?: boolean | (() => boolean)): this | boolean | (() => boolean);
|
|
88
|
-
/**
|
|
89
|
-
Defines which side of the visualization to anchor the color scale. Acceptable values are `"top"`, `"bottom"`, `"left"`, `"right"`, and `false`. A `false` value will cause the color scale to not be displayed, but will still color shapes based on the scale.
|
|
90
|
-
*/
|
|
91
|
-
colorScalePosition(_?: string | boolean | (() => string | boolean)): this | string | boolean | (() => string | boolean);
|
|
92
|
-
/**
|
|
93
|
-
The maximum pixel size for drawing the color scale: width for horizontal scales and height for vertical scales.
|
|
94
|
-
*/
|
|
95
|
-
colorScaleMaxSize(_?: number): this | number;
|
|
96
|
-
/**
|
|
97
|
-
The primary data array used to draw the visualization. The value passed should be an *Array* of objects or a *String* representing a filepath or URL to be loaded. The following filetypes are supported: `csv`, `tsv`, `txt`, and `json`.
|
|
98
|
-
|
|
99
|
-
If your data URL needs specific headers to be set, an Object with "url" and "headers" keys may also be passed.
|
|
100
|
-
|
|
101
|
-
Additionally, a custom formatting function can be passed as a second argument to this method. This custom function will be passed the data that has been loaded, as long as there are no errors. This function should return the final array of obejcts to be used as the primary data array. For example, some JSON APIs return the headers split from the data values to save bandwidth. These would need be joined using a custom formatter.
|
|
102
|
-
|
|
103
|
-
If you would like to specify certain configuration options based on the yet-to-be-loaded data, you can also return a full `config` object from the data formatter (including the new `data` array as a key in the object).
|
|
104
|
-
|
|
105
|
-
Defaults to an empty array (`[]`).
|
|
106
|
-
@param f The data array or a URL string to load data from.
|
|
57
|
+
"full" runs the DOM enter/update/exit for every shape; "compute"
|
|
58
|
+
skips DOM work and only populates the scene data (`_textData`,
|
|
59
|
+
`_shapes[i]._select`, etc.) for `toScene()` to read. Set automatically by
|
|
60
|
+
`renderScene` callers; users can also opt-in.
|
|
107
61
|
*/
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
The interval, in milliseconds, for checking if the visualization is visible on the page.
|
|
134
|
-
*/
|
|
135
|
-
detectVisibleInterval(_?: number): this | number;
|
|
136
|
-
/**
|
|
137
|
-
If *value* is specified, sets the discrete accessor to the specified method name (usually an axis) and returns the current class instance.
|
|
138
|
-
*/
|
|
139
|
-
discrete(_?: string): this | string;
|
|
140
|
-
/**
|
|
141
|
-
Shows a button that allows for downloading the current visualization.
|
|
142
|
-
*/
|
|
143
|
-
downloadButton(_?: boolean): this | boolean;
|
|
144
|
-
/**
|
|
145
|
-
Sets specific options of the saveElement function used when downloading the visualization.
|
|
146
|
-
*/
|
|
147
|
-
downloadConfig(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
148
|
-
/**
|
|
149
|
-
Defines which control group to add the download button into.
|
|
150
|
-
*/
|
|
151
|
-
downloadPosition(_?: string): this | string;
|
|
152
|
-
/**
|
|
153
|
-
The animation duration in milliseconds.
|
|
154
|
-
*/
|
|
155
|
-
duration(_?: number): this | number;
|
|
156
|
-
/**
|
|
157
|
-
A filter function applied to the data before drawing.
|
|
158
|
-
*/
|
|
159
|
-
filter(_?: ((d: DataPoint, i: number) => boolean) | false): this | ((d: DataPoint, i: number) => boolean) | false;
|
|
160
|
-
/**
|
|
161
|
-
The font family used throughout the visualization.
|
|
162
|
-
*/
|
|
163
|
-
fontFamily(_?: string | string[]): this | string | string[];
|
|
164
|
-
/**
|
|
165
|
-
Defines the mapping between data and shape. The value can be a String matching a key in each data point (default is "id"), or an accessor Function that returns a unique value for each data point. Additionally, an Array of these values may be provided if the visualization supports nested hierarchies.
|
|
166
|
-
*/
|
|
167
|
-
groupBy(_?: string | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint]) | (string | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint]))[]): this | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint])[];
|
|
168
|
-
/**
|
|
169
|
-
The overall height of the visualization in pixels.
|
|
170
|
-
*/
|
|
171
|
-
height(_?: number): this | number;
|
|
172
|
-
/**
|
|
173
|
-
Defines the color used for legend shapes when the corresponding grouping is hidden from display (by clicking on the legend).
|
|
174
|
-
*/
|
|
175
|
-
hiddenColor(_?: string | ((d: DataPoint, i: number) => string)): this | string | ((d: DataPoint, i: number) => string);
|
|
176
|
-
/**
|
|
177
|
-
Defines the opacity used for legend labels when the corresponding grouping is hidden from display (by clicking on the legend).
|
|
178
|
-
*/
|
|
179
|
-
hiddenOpacity(_?: number | ((d: DataPoint, i: number) => number)): this | number | ((d: DataPoint, i: number) => number);
|
|
180
|
-
/**
|
|
181
|
-
The hover callback function for highlighting shapes on mouseover.
|
|
182
|
-
*/
|
|
183
|
-
hover(_?: ((d: DataPoint, i: number) => boolean) | false): this;
|
|
184
|
-
/**
|
|
185
|
-
Accessor function or string key for the label of each data point.
|
|
186
|
-
*/
|
|
187
|
-
label(_?: string | ((d: DataPoint, i: number) => string)): this | string | ((d: DataPoint, i: number) => string);
|
|
188
|
-
/**
|
|
189
|
-
Whether to display the legend.
|
|
190
|
-
*/
|
|
191
|
-
legend(_?: boolean | ((config: Record<string, unknown>, arr: DataPoint[]) => boolean)): this | boolean | ((config: Record<string, unknown>, arr: DataPoint[]) => boolean);
|
|
192
|
-
/**
|
|
193
|
-
Configuration object passed to the legend's config method.
|
|
194
|
-
*/
|
|
195
|
-
legendConfig(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
196
|
-
/**
|
|
197
|
-
Defines the click functionality of categorical legend squares. When set to false, clicking will hide that category and shift+clicking will solo that category. When set to true, clicking with solo that category and shift+clicking will hide that category.
|
|
198
|
-
*/
|
|
199
|
-
legendFilterInvert(_?: boolean | (() => boolean)): this | boolean | (() => boolean);
|
|
200
|
-
/**
|
|
201
|
-
Tells the legend whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the legend appears centered underneath the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.
|
|
202
|
-
*/
|
|
203
|
-
legendPadding(_?: boolean | (() => boolean)): this | boolean | (() => boolean);
|
|
204
|
-
/**
|
|
205
|
-
Defines which side of the visualization to anchor the legend. Expected values are `"top"`, `"bottom"`, `"left"`, and `"right"`.
|
|
206
|
-
*/
|
|
207
|
-
legendPosition(_?: string | (() => string)): this | string | (() => string);
|
|
208
|
-
/**
|
|
209
|
-
A JavaScript [sort comparator function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) used to sort the legend.
|
|
210
|
-
*/
|
|
211
|
-
legendSort(_?: (a: DataPoint, b: DataPoint) => number): this | ((a: DataPoint, b: DataPoint) => number);
|
|
212
|
-
/**
|
|
213
|
-
Configuration object for the legend tooltip.
|
|
214
|
-
*/
|
|
215
|
-
legendTooltip(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
216
|
-
/**
|
|
217
|
-
The inner HTML of the status message displayed when loading AJAX requests and displaying errors. Must be a valid HTML string or a function that, when passed this Viz instance, returns a valid HTML string.
|
|
218
|
-
*/
|
|
219
|
-
loadingHTML(_?: string | ((viz: Viz) => string)): this | string | ((viz: Viz) => string);
|
|
220
|
-
/**
|
|
221
|
-
Toggles the visibility of the status message that is displayed when loading AJAX requests and displaying errors.
|
|
222
|
-
*/
|
|
223
|
-
loadingMessage(_?: boolean): this | boolean;
|
|
224
|
-
/**
|
|
225
|
-
The color of the mask displayed underneath the status message when loading AJAX requests and displaying errors. Set to `false` to turn off the mask completely.
|
|
226
|
-
*/
|
|
227
|
-
messageMask(_?: string | boolean): this | string | boolean;
|
|
228
|
-
/**
|
|
229
|
-
Defines the CSS style properties for the status message that is displayed when loading AJAX requests and displaying errors.
|
|
230
|
-
*/
|
|
231
|
-
messageStyle(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
232
|
-
/**
|
|
233
|
-
The inner HTML of the status message displayed when no data is supplied to the visualization. Must be a valid HTML string or a function that, when passed this Viz instance, returns a valid HTML string.
|
|
234
|
-
*/
|
|
235
|
-
noDataHTML(_?: string | ((viz: Viz) => string)): this | string | ((viz: Viz) => string);
|
|
236
|
-
/**
|
|
237
|
-
Toggles the visibility of the status message that is displayed when no data is supplied to the visualization.
|
|
238
|
-
*/
|
|
239
|
-
noDataMessage(_?: boolean): this | boolean;
|
|
240
|
-
/**
|
|
241
|
-
If using scroll or visibility detection, this method allow a custom override of the element to which the scroll detection function gets attached.
|
|
242
|
-
*/
|
|
243
|
-
scrollContainer(_?: string | HTMLElement | Window): this | string | HTMLElement | Window;
|
|
244
|
-
/**
|
|
245
|
-
The SVG container element as a d3 selector or DOM element. Defaults to `undefined`.
|
|
246
|
-
*/
|
|
247
|
-
select(_?: string | HTMLElement): this | ReturnType<typeof select>;
|
|
248
|
-
/**
|
|
249
|
-
Changes the primary shape used to represent each data point in a visualization. Not all visualizations support changing shapes, this method can be provided the String name of a D3plus shape class (for example, "Rect" or "Circle"), or an accessor Function that returns the String class name to be used for each individual data point.
|
|
250
|
-
*/
|
|
251
|
-
shape(_?: string | ((d: DataPoint, i: number) => string)): this | string | ((d: DataPoint, i: number) => string);
|
|
252
|
-
/**
|
|
253
|
-
Configuration object with key/value pairs applied as method calls on each shape.
|
|
254
|
-
*/
|
|
255
|
-
shapeConfig(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
256
|
-
/**
|
|
257
|
-
Accessor function or string for the visualization's subtitle.
|
|
258
|
-
*/
|
|
259
|
-
subtitle(_?: string | ((data: DataPoint[]) => string)): this | string | ((data: DataPoint[]) => string);
|
|
260
|
-
/**
|
|
261
|
-
Configuration object for the subtitle.
|
|
262
|
-
*/
|
|
263
|
-
subtitleConfig(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
264
|
-
/**
|
|
265
|
-
Tells the subtitle whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the subtitle appears centered above the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.
|
|
266
|
-
*/
|
|
267
|
-
subtitlePadding(_?: boolean | (() => boolean)): this | boolean | (() => boolean);
|
|
268
|
-
/**
|
|
269
|
-
The description text for the SVG `<desc>` element, used for accessibility.
|
|
270
|
-
*/
|
|
271
|
-
svgDesc(_?: string): this | string;
|
|
272
|
-
/**
|
|
273
|
-
The title text for the SVG `<title>` element, used for accessibility.
|
|
274
|
-
*/
|
|
275
|
-
svgTitle(_?: string): this | string;
|
|
276
|
-
/**
|
|
277
|
-
The threshold value for bucketing small data points together.
|
|
278
|
-
*/
|
|
279
|
-
threshold(_?: number | ((data: DataPoint[]) => number)): this | number | ((data: DataPoint[]) => number);
|
|
280
|
-
/**
|
|
281
|
-
Accessor for the value used in the threshold algorithm.
|
|
282
|
-
@param key The data key used to group values for thresholding.
|
|
283
|
-
*/
|
|
284
|
-
thresholdKey(key?: string | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint])): this | string | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint]);
|
|
285
|
-
/**
|
|
286
|
-
The label displayed for bucketed threshold items.
|
|
287
|
-
*/
|
|
288
|
-
thresholdName(_?: string | ((d: DataPoint, i: number) => string)): this | string | ((d: DataPoint, i: number) => string);
|
|
289
|
-
/**
|
|
290
|
-
Accessor function or string key for the time dimension of each data point.
|
|
291
|
-
*/
|
|
292
|
-
time(_?: string | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint]) | false): this | string | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint]) | false;
|
|
293
|
-
/**
|
|
294
|
-
A filter function that limits which time periods are shown.
|
|
295
|
-
*/
|
|
296
|
-
timeFilter(_?: ((d: DataPoint, i: number) => boolean) | false): this | ((d: DataPoint, i: number) => boolean) | false;
|
|
297
|
-
/**
|
|
298
|
-
Whether to display the timeline.
|
|
299
|
-
*/
|
|
300
|
-
timeline(_?: boolean): this | boolean;
|
|
301
|
-
/**
|
|
302
|
-
Configuration object for the timeline.
|
|
303
|
-
*/
|
|
304
|
-
timelineConfig(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
305
|
-
/**
|
|
306
|
-
The starting time or range for the timeline. Can be a single Date/String, or an Array of 2 values representing the min and max.
|
|
307
|
-
*/
|
|
308
|
-
timelineDefault(_?: Date | string | (Date | string)[]): this | Date[];
|
|
309
|
-
/**
|
|
310
|
-
Tells the timeline whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the timeline appears centered underneath the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.
|
|
311
|
-
*/
|
|
312
|
-
timelinePadding(_?: boolean | (() => boolean)): this | boolean | (() => boolean);
|
|
313
|
-
/**
|
|
314
|
-
Accessor function or string for the visualization's title.
|
|
315
|
-
*/
|
|
316
|
-
title(_?: string | ((data: DataPoint[]) => string)): this | string | ((data: DataPoint[]) => string);
|
|
317
|
-
/**
|
|
318
|
-
Configuration object for the title.
|
|
319
|
-
*/
|
|
320
|
-
titleConfig(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
321
|
-
/**
|
|
322
|
-
Tells the title whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the title appears centered above the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.
|
|
323
|
-
*/
|
|
324
|
-
titlePadding(_?: boolean | (() => boolean)): this | boolean | (() => boolean);
|
|
325
|
-
/**
|
|
326
|
-
Whether to display tooltips on hover.
|
|
327
|
-
*/
|
|
328
|
-
tooltip(_?: boolean | ((d: DataPoint, i: number) => boolean)): this | boolean | ((d: DataPoint, i: number) => boolean);
|
|
329
|
-
/**
|
|
330
|
-
Configuration object for the tooltip.
|
|
331
|
-
*/
|
|
332
|
-
tooltipConfig(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
333
|
-
/**
|
|
334
|
-
Accessor function or string key for the total value displayed in the visualization.
|
|
335
|
-
*/
|
|
336
|
-
total(_?: boolean | string | ((d: DataPoint, i: number) => number)): this | boolean | string | ((d: DataPoint, i: number) => number);
|
|
337
|
-
/**
|
|
338
|
-
Configuration object for the total bar.
|
|
339
|
-
*/
|
|
340
|
-
totalConfig(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
341
|
-
/**
|
|
342
|
-
Formatter function for the value in the total bar.
|
|
343
|
-
*/
|
|
344
|
-
totalFormat(_?: (d: number) => string): this | ((d: number) => string);
|
|
345
|
-
/**
|
|
346
|
-
Tells the total whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the total appears centered above the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.
|
|
347
|
-
*/
|
|
348
|
-
totalPadding(_?: boolean | (() => boolean)): this | boolean | (() => boolean);
|
|
349
|
-
/**
|
|
350
|
-
The overall width of the visualization in pixels.
|
|
351
|
-
*/
|
|
352
|
-
width(_?: number): this | number;
|
|
353
|
-
/**
|
|
354
|
-
Toggles the ability to zoom/pan the visualization. Certain parameters for zooming are required to be hooked up on a visualization by visualization basis.
|
|
355
|
-
*/
|
|
356
|
-
zoom(_?: boolean): this | boolean;
|
|
357
|
-
/**
|
|
358
|
-
The pixel stroke-width of the zoom brush area.
|
|
359
|
-
*/
|
|
360
|
-
zoomBrushHandleSize(_?: number): this | number;
|
|
361
|
-
/**
|
|
362
|
-
An object containing CSS key/value pairs that is used to style the outer handle area of the zoom brush. Passing `false` will remove all default styling.
|
|
363
|
-
*/
|
|
364
|
-
zoomBrushHandleStyle(_?: Record<string, unknown> | false): this | Record<string, unknown> | false;
|
|
365
|
-
/**
|
|
366
|
-
An object containing CSS key/value pairs that is used to style the inner selection area of the zoom brush. Passing `false` will remove all default styling.
|
|
367
|
-
*/
|
|
368
|
-
zoomBrushSelectionStyle(_?: Record<string, unknown> | false): this | Record<string, unknown> | false;
|
|
369
|
-
/**
|
|
370
|
-
An object containing CSS key/value pairs that is used to style each zoom control button (`.zoom-in`, `.zoom-out`, `.zoom-reset`, and `.zoom-brush`). Passing `false` will remove all default styling.
|
|
371
|
-
*/
|
|
372
|
-
zoomControlStyle(_?: Record<string, unknown> | false): this | Record<string, unknown> | false;
|
|
373
|
-
/**
|
|
374
|
-
An object containing CSS key/value pairs that is used to style each zoom control button when active (`.zoom-in`, `.zoom-out`, `.zoom-reset`, and `.zoom-brush`). Passing `false` will remove all default styling.
|
|
375
|
-
*/
|
|
376
|
-
zoomControlStyleActive(_?: Record<string, unknown> | false): this | Record<string, unknown> | false;
|
|
377
|
-
/**
|
|
378
|
-
An object containing CSS key/value pairs that is used to style each zoom control button on hover (`.zoom-in`, `.zoom-out`, `.zoom-reset`, and `.zoom-brush`). Passing `false` will remove all default styling.
|
|
379
|
-
*/
|
|
380
|
-
zoomControlStyleHover(_?: Record<string, unknown> | false): this | Record<string, unknown> | false;
|
|
381
|
-
/**
|
|
382
|
-
The multiplier that is used in with the control buttons when zooming in and out.
|
|
383
|
-
*/
|
|
384
|
-
zoomFactor(_?: number): this | number;
|
|
385
|
-
/**
|
|
386
|
-
The max zoom scale.
|
|
387
|
-
*/
|
|
388
|
-
zoomMax(_?: number): this | number;
|
|
389
|
-
/**
|
|
390
|
-
Toggles panning.
|
|
391
|
-
*/
|
|
392
|
-
zoomPan(_?: boolean): this | boolean;
|
|
393
|
-
/**
|
|
394
|
-
A pixel value to be used to pad all sides of a zoomed area.
|
|
395
|
-
*/
|
|
396
|
-
zoomPadding(_?: number): this | number;
|
|
62
|
+
renderMode(): "full" | "compute";
|
|
63
|
+
renderMode(_: "full" | "compute"): this;
|
|
64
|
+
/**
|
|
65
|
+
Public entry point that renders this chart through the @d3plus/render
|
|
66
|
+
pluggable backends. The compute pass happens via render() (in an svg
|
|
67
|
+
auto-created inside the target div); SvgRenderer/CanvasRenderer paints
|
|
68
|
+
the scene to the target. Returns `{renderer, scene}` so callers can
|
|
69
|
+
interact with the renderer (e.g. for picking) or read the scene data.
|
|
70
|
+
*/
|
|
71
|
+
renderScene(target: Element, opts?: {
|
|
72
|
+
kind?: "svg" | "canvas";
|
|
73
|
+
}): Promise<{
|
|
74
|
+
renderer: Renderer;
|
|
75
|
+
scene: Scene;
|
|
76
|
+
}>;
|
|
77
|
+
/**
|
|
78
|
+
Renders this chart through the @d3plus/render pluggable backends. Called
|
|
79
|
+
automatically by `render()`. The compute pass draws into `this._select`
|
|
80
|
+
(an auto-created svg INSIDE the user's target div) — that svg is the
|
|
81
|
+
off-stage detached compute svg. SvgRenderer mounts to the user's target
|
|
82
|
+
div (the parent), as a sibling to the detached compute svg. The compute
|
|
83
|
+
svg's children get cleared so only the scene output is visible.
|
|
84
|
+
*/
|
|
85
|
+
_drawSceneToTarget(durationOverride?: number): void;
|
|
397
86
|
/**
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
87
|
+
Tears down the visualization: disconnects the ResizeObserver and removes DOM event listeners. Call this when unmounting to avoid memory leaks.
|
|
88
|
+
*/
|
|
89
|
+
destroy(): this;
|
|
401
90
|
}
|
|
402
|
-
export {};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { select } from "d3-selection";
|
|
2
|
+
import type { DataPoint } from "@d3plus/data";
|
|
3
|
+
import VizBaseConfig from "./VizBaseConfig.js";
|
|
4
|
+
/**
|
|
5
|
+
Second half of the fluent config accessors shared by every Viz chart
|
|
6
|
+
(`loadingHTML` through `zoomPadding`), extending `VizBaseConfig` which
|
|
7
|
+
holds the first half. Split purely so each file stays under the
|
|
8
|
+
`max-lines` budget; the methods remain real prototype methods, so
|
|
9
|
+
`BaseClass.config()` reflection and polymorphic `this` chaining are
|
|
10
|
+
unchanged.
|
|
11
|
+
*/
|
|
12
|
+
export default class VizBase extends VizBaseConfig {
|
|
13
|
+
/**
|
|
14
|
+
The inner HTML of the status message displayed when loading AJAX requests and displaying errors. Must be a valid HTML string or a function that, when passed this Viz instance, returns a valid HTML string.
|
|
15
|
+
*/
|
|
16
|
+
loadingHTML(_?: string | ((viz: VizBase) => string)): this | string | ((viz: VizBase) => string);
|
|
17
|
+
/**
|
|
18
|
+
Toggles the visibility of the status message that is displayed when loading AJAX requests and displaying errors.
|
|
19
|
+
*/
|
|
20
|
+
loadingMessage(_?: boolean): this | boolean;
|
|
21
|
+
/**
|
|
22
|
+
The color of the mask displayed underneath the status message when loading AJAX requests and displaying errors. Set to `false` to turn off the mask completely.
|
|
23
|
+
*/
|
|
24
|
+
messageMask(_?: string | boolean): this | string | boolean;
|
|
25
|
+
/**
|
|
26
|
+
Defines the CSS style properties for the status message that is displayed when loading AJAX requests and displaying errors.
|
|
27
|
+
*/
|
|
28
|
+
messageStyle(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
29
|
+
/**
|
|
30
|
+
The inner HTML of the status message displayed when no data is supplied to the visualization. Must be a valid HTML string or a function that, when passed this Viz instance, returns a valid HTML string.
|
|
31
|
+
*/
|
|
32
|
+
noDataHTML(_?: string | ((viz: VizBase) => string)): this | string | ((viz: VizBase) => string);
|
|
33
|
+
/**
|
|
34
|
+
Toggles the visibility of the status message that is displayed when no data is supplied to the visualization.
|
|
35
|
+
*/
|
|
36
|
+
noDataMessage(_?: boolean): this | boolean;
|
|
37
|
+
/**
|
|
38
|
+
If using scroll or visibility detection, this method allow a custom override of the element to which the scroll detection function gets attached.
|
|
39
|
+
*/
|
|
40
|
+
scrollContainer(_?: string | HTMLElement | Window): this | string | HTMLElement | Window;
|
|
41
|
+
/**
|
|
42
|
+
The SVG container element as a d3 selector or DOM element. Defaults to `undefined`.
|
|
43
|
+
*/
|
|
44
|
+
select(_?: string | HTMLElement): this | ReturnType<typeof select>;
|
|
45
|
+
/**
|
|
46
|
+
Changes the primary shape used to represent each data point in a visualization. Not all visualizations support changing shapes, this method can be provided the String name of a D3plus shape class (for example, "Rect" or "Circle"), or an accessor Function that returns the String class name to be used for each individual data point.
|
|
47
|
+
*/
|
|
48
|
+
shape(_?: string | ((d: DataPoint, i: number) => string)): this | string | ((d: DataPoint, i: number) => string);
|
|
49
|
+
/**
|
|
50
|
+
Configuration object with key/value pairs applied as method calls on each shape.
|
|
51
|
+
*/
|
|
52
|
+
shapeConfig(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
53
|
+
/**
|
|
54
|
+
Accessor function or string for the visualization's subtitle.
|
|
55
|
+
*/
|
|
56
|
+
subtitle(_?: string | ((data: DataPoint[]) => string)): this | string | ((data: DataPoint[]) => string);
|
|
57
|
+
/**
|
|
58
|
+
Configuration object for the subtitle.
|
|
59
|
+
*/
|
|
60
|
+
subtitleConfig(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
61
|
+
/**
|
|
62
|
+
Tells the subtitle whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the subtitle appears centered above the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.
|
|
63
|
+
*/
|
|
64
|
+
subtitlePadding(_?: boolean | (() => boolean)): this | boolean | (() => boolean);
|
|
65
|
+
/**
|
|
66
|
+
The threshold value for bucketing small data points together.
|
|
67
|
+
*/
|
|
68
|
+
threshold(_?: number | ((data: DataPoint[]) => number)): this | number | ((data: DataPoint[]) => number);
|
|
69
|
+
/**
|
|
70
|
+
Accessor for the value used in the threshold algorithm.
|
|
71
|
+
@param key The data key used to group values for thresholding.
|
|
72
|
+
*/
|
|
73
|
+
thresholdKey(key?: string | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint])): this | string | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint]);
|
|
74
|
+
/**
|
|
75
|
+
The label displayed for bucketed threshold items.
|
|
76
|
+
*/
|
|
77
|
+
thresholdName(_?: string | ((d: DataPoint, i: number) => string)): this | string | ((d: DataPoint, i: number) => string);
|
|
78
|
+
/**
|
|
79
|
+
Accessor function or string key for the time dimension of each data point.
|
|
80
|
+
*/
|
|
81
|
+
time(_?: string | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint]) | false): this | string | ((d: DataPoint, i: number) => DataPoint[keyof DataPoint]) | false;
|
|
82
|
+
/**
|
|
83
|
+
Configuration object for the timeline.
|
|
84
|
+
*/
|
|
85
|
+
timelineConfig(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
86
|
+
/**
|
|
87
|
+
The starting time or range for the timeline. Can be a single Date/String, or an Array of 2 values representing the min and max.
|
|
88
|
+
*/
|
|
89
|
+
timelineDefault(_?: Date | string | (Date | string)[]): this | Date[];
|
|
90
|
+
/**
|
|
91
|
+
Tells the timeline whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the timeline appears centered underneath the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.
|
|
92
|
+
*/
|
|
93
|
+
timelinePadding(_?: boolean | (() => boolean)): this | boolean | (() => boolean);
|
|
94
|
+
/**
|
|
95
|
+
Accessor function or string for the visualization's title.
|
|
96
|
+
*/
|
|
97
|
+
title(_?: string | ((data: DataPoint[]) => string)): this | string | ((data: DataPoint[]) => string);
|
|
98
|
+
/**
|
|
99
|
+
Configuration object for the title.
|
|
100
|
+
*/
|
|
101
|
+
titleConfig(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
102
|
+
/**
|
|
103
|
+
Tells the title whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the title appears centered above the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.
|
|
104
|
+
*/
|
|
105
|
+
titlePadding(_?: boolean | (() => boolean)): this | boolean | (() => boolean);
|
|
106
|
+
/**
|
|
107
|
+
Whether to display tooltips on hover.
|
|
108
|
+
*/
|
|
109
|
+
tooltip(_?: boolean | ((d: DataPoint, i: number) => boolean)): this | boolean | ((d: DataPoint, i: number) => boolean);
|
|
110
|
+
/**
|
|
111
|
+
Configuration object for the tooltip.
|
|
112
|
+
*/
|
|
113
|
+
tooltipConfig(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
114
|
+
/**
|
|
115
|
+
Accessor function or string key for the total value displayed in the visualization.
|
|
116
|
+
*/
|
|
117
|
+
total(_?: boolean | string | ((d: DataPoint, i: number) => number)): this | boolean | string | ((d: DataPoint, i: number) => number);
|
|
118
|
+
/**
|
|
119
|
+
Configuration object for the total bar.
|
|
120
|
+
*/
|
|
121
|
+
totalConfig(_?: Record<string, unknown>): this | Record<string, unknown>;
|
|
122
|
+
/**
|
|
123
|
+
Formatter function for the value in the total bar.
|
|
124
|
+
*/
|
|
125
|
+
totalFormat(_?: (d: number) => string): this | ((d: number) => string);
|
|
126
|
+
/**
|
|
127
|
+
Tells the total whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the total appears centered above the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.
|
|
128
|
+
*/
|
|
129
|
+
totalPadding(_?: boolean | (() => boolean)): this | boolean | (() => boolean);
|
|
130
|
+
/**
|
|
131
|
+
The pixel stroke-width of the zoom brush area.
|
|
132
|
+
*/
|
|
133
|
+
zoomBrushHandleSize(_?: number): this | number;
|
|
134
|
+
/**
|
|
135
|
+
An object containing CSS key/value pairs that is used to style the outer handle area of the zoom brush. Passing `false` will remove all default styling.
|
|
136
|
+
*/
|
|
137
|
+
zoomBrushHandleStyle(_?: Record<string, unknown> | false): this | Record<string, unknown> | false;
|
|
138
|
+
/**
|
|
139
|
+
An object containing CSS key/value pairs that is used to style the inner selection area of the zoom brush. Passing `false` will remove all default styling.
|
|
140
|
+
*/
|
|
141
|
+
zoomBrushSelectionStyle(_?: Record<string, unknown> | false): this | Record<string, unknown> | false;
|
|
142
|
+
/**
|
|
143
|
+
An object containing CSS key/value pairs that is used to style each zoom control button (`.zoom-in`, `.zoom-out`, `.zoom-reset`, and `.zoom-brush`). Passing `false` will remove all default styling.
|
|
144
|
+
*/
|
|
145
|
+
zoomControlStyle(_?: Record<string, unknown> | false): this | Record<string, unknown> | false;
|
|
146
|
+
/**
|
|
147
|
+
An object containing CSS key/value pairs that is used to style each zoom control button when active (`.zoom-in`, `.zoom-out`, `.zoom-reset`, and `.zoom-brush`). Passing `false` will remove all default styling.
|
|
148
|
+
*/
|
|
149
|
+
zoomControlStyleActive(_?: Record<string, unknown> | false): this | Record<string, unknown> | false;
|
|
150
|
+
/**
|
|
151
|
+
An object containing CSS key/value pairs that is used to style each zoom control button on hover (`.zoom-in`, `.zoom-out`, `.zoom-reset`, and `.zoom-brush`). Passing `false` will remove all default styling.
|
|
152
|
+
*/
|
|
153
|
+
zoomControlStyleHover(_?: Record<string, unknown> | false): this | Record<string, unknown> | false;
|
|
154
|
+
/**
|
|
155
|
+
A pixel value to be used to pad all sides of a zoomed area.
|
|
156
|
+
*/
|
|
157
|
+
zoomPadding(_?: number): this | number;
|
|
158
|
+
}
|