@spectrum-charts/vega-spec-builder 0.0.1
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/LICENSE +201 -0
- package/dist/@types/index.d.ts +2 -0
- package/dist/@types/index.d.ts.map +1 -0
- package/dist/@types/src/area/areaSpecBuilder.d.ts +20 -0
- package/dist/@types/src/area/areaSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/area/areaSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/area/areaSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/area/areaUtils.d.ts +24 -0
- package/dist/@types/src/area/areaUtils.d.ts.map +1 -0
- package/dist/@types/src/area/areaUtils.test.d.ts +2 -0
- package/dist/@types/src/area/areaUtils.test.d.ts.map +1 -0
- package/dist/@types/src/axis/axisLabelUtils.d.ts +109 -0
- package/dist/@types/src/axis/axisLabelUtils.d.ts.map +1 -0
- package/dist/@types/src/axis/axisLabelUtils.test.d.ts +2 -0
- package/dist/@types/src/axis/axisLabelUtils.test.d.ts.map +1 -0
- package/dist/@types/src/axis/axisReferenceLineUtils.d.ts +50 -0
- package/dist/@types/src/axis/axisReferenceLineUtils.d.ts.map +1 -0
- package/dist/@types/src/axis/axisReferenceLineUtils.test.d.ts +2 -0
- package/dist/@types/src/axis/axisReferenceLineUtils.test.d.ts.map +1 -0
- package/dist/@types/src/axis/axisSpecBuilder.d.ts +34 -0
- package/dist/@types/src/axis/axisSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/axis/axisSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/axis/axisSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/axis/axisTestUtils.d.ts +6 -0
- package/dist/@types/src/axis/axisTestUtils.d.ts.map +1 -0
- package/dist/@types/src/axis/axisTrellisUtils.d.ts +34 -0
- package/dist/@types/src/axis/axisTrellisUtils.d.ts.map +1 -0
- package/dist/@types/src/axis/axisTrellisUtils.test.d.ts +2 -0
- package/dist/@types/src/axis/axisTrellisUtils.test.d.ts.map +1 -0
- package/dist/@types/src/axis/axisUtils.d.ts +73 -0
- package/dist/@types/src/axis/axisUtils.d.ts.map +1 -0
- package/dist/@types/src/axis/axisUtils.test.d.ts +2 -0
- package/dist/@types/src/axis/axisUtils.test.d.ts.map +1 -0
- package/dist/@types/src/axisAnnotation/axisAnnotationUtils.d.ts +57 -0
- package/dist/@types/src/axisAnnotation/axisAnnotationUtils.d.ts.map +1 -0
- package/dist/@types/src/axisAnnotation/axisAnnotationUtils.test.d.ts +2 -0
- package/dist/@types/src/axisAnnotation/axisAnnotationUtils.test.d.ts.map +1 -0
- package/dist/@types/src/bar/barAnnotationUtils.d.ts +46 -0
- package/dist/@types/src/bar/barAnnotationUtils.d.ts.map +1 -0
- package/dist/@types/src/bar/barAnnotationUtils.test.d.ts +2 -0
- package/dist/@types/src/bar/barAnnotationUtils.test.d.ts.map +1 -0
- package/dist/@types/src/bar/barSpecBuilder.d.ts +32 -0
- package/dist/@types/src/bar/barSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/bar/barSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/bar/barSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/bar/barTestUtils.d.ts +760 -0
- package/dist/@types/src/bar/barTestUtils.d.ts.map +1 -0
- package/dist/@types/src/bar/barUtils.d.ts +36 -0
- package/dist/@types/src/bar/barUtils.d.ts.map +1 -0
- package/dist/@types/src/bar/barUtils.test.d.ts +2 -0
- package/dist/@types/src/bar/barUtils.test.d.ts.map +1 -0
- package/dist/@types/src/bar/dodgedBarUtils.d.ts +4 -0
- package/dist/@types/src/bar/dodgedBarUtils.d.ts.map +1 -0
- package/dist/@types/src/bar/dodgedBarUtils.test.d.ts +152 -0
- package/dist/@types/src/bar/dodgedBarUtils.test.d.ts.map +1 -0
- package/dist/@types/src/bar/stackedBarUtils.d.ts +8 -0
- package/dist/@types/src/bar/stackedBarUtils.d.ts.map +1 -0
- package/dist/@types/src/bar/stackedBarUtils.test.d.ts +2 -0
- package/dist/@types/src/bar/stackedBarUtils.test.d.ts.map +1 -0
- package/dist/@types/src/bar/trellisedBarUtils.d.ts +23 -0
- package/dist/@types/src/bar/trellisedBarUtils.d.ts.map +1 -0
- package/dist/@types/src/bar/trellisedBarUtils.test.d.ts +2 -0
- package/dist/@types/src/bar/trellisedBarUtils.test.d.ts.map +1 -0
- package/dist/@types/src/chartPopover/chartPopoverUtils.d.ts +32 -0
- package/dist/@types/src/chartPopover/chartPopoverUtils.d.ts.map +1 -0
- package/dist/@types/src/chartPopover/chartPopoverUtils.test.d.ts +2 -0
- package/dist/@types/src/chartPopover/chartPopoverUtils.test.d.ts.map +1 -0
- package/dist/@types/src/chartSpecBuilder.d.ts +42 -0
- package/dist/@types/src/chartSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/chartSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/chartSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/chartTooltip/chartTooltipUtils.d.ts +57 -0
- package/dist/@types/src/chartTooltip/chartTooltipUtils.d.ts.map +1 -0
- package/dist/@types/src/chartTooltip/chartTooltipUtils.test.d.ts +2 -0
- package/dist/@types/src/chartTooltip/chartTooltipUtils.test.d.ts.map +1 -0
- package/dist/@types/src/combo/comboSpecBuilder.d.ts +10 -0
- package/dist/@types/src/combo/comboSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/combo/comboSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/combo/comboSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/data/dataUtils.d.ts +30 -0
- package/dist/@types/src/data/dataUtils.d.ts.map +1 -0
- package/dist/@types/src/data/dataUtils.test.d.ts +2 -0
- package/dist/@types/src/data/dataUtils.test.d.ts.map +1 -0
- package/dist/@types/src/donut/donutSpecBuilder.d.ts +13 -0
- package/dist/@types/src/donut/donutSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/donut/donutSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/donut/donutSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/donut/donutSummaryUtils.d.ts +65 -0
- package/dist/@types/src/donut/donutSummaryUtils.d.ts.map +1 -0
- package/dist/@types/src/donut/donutSummaryUtils.test.d.ts +2 -0
- package/dist/@types/src/donut/donutSummaryUtils.test.d.ts.map +1 -0
- package/dist/@types/src/donut/donutTestUtils.d.ts +3 -0
- package/dist/@types/src/donut/donutTestUtils.d.ts.map +1 -0
- package/dist/@types/src/donut/donutUtils.d.ts +4 -0
- package/dist/@types/src/donut/donutUtils.d.ts.map +1 -0
- package/dist/@types/src/donut/segmentLabelUtils.d.ts +27 -0
- package/dist/@types/src/donut/segmentLabelUtils.d.ts.map +1 -0
- package/dist/@types/src/donut/segmentLabelUtils.test.d.ts +2 -0
- package/dist/@types/src/donut/segmentLabelUtils.test.d.ts.map +1 -0
- package/dist/@types/src/index.d.ts +4 -0
- package/dist/@types/src/index.d.ts.map +1 -0
- package/dist/@types/src/legend/legendFacetUtils.d.ts +25 -0
- package/dist/@types/src/legend/legendFacetUtils.d.ts.map +1 -0
- package/dist/@types/src/legend/legendFacetUtils.test.d.ts +2 -0
- package/dist/@types/src/legend/legendFacetUtils.test.d.ts.map +1 -0
- package/dist/@types/src/legend/legendHighlightUtils.d.ts +22 -0
- package/dist/@types/src/legend/legendHighlightUtils.d.ts.map +1 -0
- package/dist/@types/src/legend/legendHighlightUtils.test.d.ts +2 -0
- package/dist/@types/src/legend/legendHighlightUtils.test.d.ts.map +1 -0
- package/dist/@types/src/legend/legendSpecBuilder.d.ts +41 -0
- package/dist/@types/src/legend/legendSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/legend/legendSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/legend/legendSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/legend/legendTestUtils.d.ts +11 -0
- package/dist/@types/src/legend/legendTestUtils.d.ts.map +1 -0
- package/dist/@types/src/legend/legendUtils.d.ts +54 -0
- package/dist/@types/src/legend/legendUtils.d.ts.map +1 -0
- package/dist/@types/src/legend/legendUtils.test.d.ts +2 -0
- package/dist/@types/src/legend/legendUtils.test.d.ts.map +1 -0
- package/dist/@types/src/line/lineDataUtils.d.ts +19 -0
- package/dist/@types/src/line/lineDataUtils.d.ts.map +1 -0
- package/dist/@types/src/line/lineDataUtils.test.d.ts +2 -0
- package/dist/@types/src/line/lineDataUtils.test.d.ts.map +1 -0
- package/dist/@types/src/line/lineMarkUtils.d.ts +19 -0
- package/dist/@types/src/line/lineMarkUtils.d.ts.map +1 -0
- package/dist/@types/src/line/lineMarkUtils.test.d.ts +2 -0
- package/dist/@types/src/line/lineMarkUtils.test.d.ts.map +1 -0
- package/dist/@types/src/line/linePointUtils.d.ts +71 -0
- package/dist/@types/src/line/linePointUtils.d.ts.map +1 -0
- package/dist/@types/src/line/linePointUtils.test.d.ts +2 -0
- package/dist/@types/src/line/linePointUtils.test.d.ts.map +1 -0
- package/dist/@types/src/line/lineSpecBuilder.d.ts +13 -0
- package/dist/@types/src/line/lineSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/line/lineSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/line/lineSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/line/lineTestUtils.d.ts +3 -0
- package/dist/@types/src/line/lineTestUtils.d.ts.map +1 -0
- package/dist/@types/src/line/lineUtils.d.ts +33 -0
- package/dist/@types/src/line/lineUtils.d.ts.map +1 -0
- package/dist/@types/src/line/lineUtils.test.d.ts +2 -0
- package/dist/@types/src/line/lineUtils.test.d.ts.map +1 -0
- package/dist/@types/src/marks/markUtils.d.ts +128 -0
- package/dist/@types/src/marks/markUtils.d.ts.map +1 -0
- package/dist/@types/src/marks/markUtils.test.d.ts +2 -0
- package/dist/@types/src/marks/markUtils.test.d.ts.map +1 -0
- package/dist/@types/src/metricRange/metricRangeUtils.d.ts +27 -0
- package/dist/@types/src/metricRange/metricRangeUtils.d.ts.map +1 -0
- package/dist/@types/src/metricRange/metricRangeUtils.test.d.ts +2 -0
- package/dist/@types/src/metricRange/metricRangeUtils.test.d.ts.map +1 -0
- package/dist/@types/src/scale/scaleSpecBuilder.d.ts +86 -0
- package/dist/@types/src/scale/scaleSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/scale/scaleSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/scale/scaleSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/scatter/scatterMarkUtils.d.ts +31 -0
- package/dist/@types/src/scatter/scatterMarkUtils.d.ts.map +1 -0
- package/dist/@types/src/scatter/scatterMarkUtils.test.d.ts +2 -0
- package/dist/@types/src/scatter/scatterMarkUtils.test.d.ts.map +1 -0
- package/dist/@types/src/scatter/scatterSpecBuilder.d.ts +27 -0
- package/dist/@types/src/scatter/scatterSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/scatter/scatterSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/scatter/scatterSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/scatter/scatterTestUtils.d.ts +3 -0
- package/dist/@types/src/scatter/scatterTestUtils.d.ts.map +1 -0
- package/dist/@types/src/scatterPath/index.d.ts +2 -0
- package/dist/@types/src/scatterPath/index.d.ts.map +1 -0
- package/dist/@types/src/scatterPath/scatterPathUtils.d.ts +37 -0
- package/dist/@types/src/scatterPath/scatterPathUtils.d.ts.map +1 -0
- package/dist/@types/src/scatterPath/scatterPathUtils.test.d.ts +2 -0
- package/dist/@types/src/scatterPath/scatterPathUtils.test.d.ts.map +1 -0
- package/dist/@types/src/signal/signalSpecBuilder.d.ts +49 -0
- package/dist/@types/src/signal/signalSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/signal/signalSpecBuilder.test.d.ts +2 -0
- package/dist/@types/src/signal/signalSpecBuilder.test.d.ts.map +1 -0
- package/dist/@types/src/specTestUtils.d.ts +9 -0
- package/dist/@types/src/specTestUtils.d.ts.map +1 -0
- package/dist/@types/src/specUtils.d.ts +96 -0
- package/dist/@types/src/specUtils.d.ts.map +1 -0
- package/dist/@types/src/specUtils.test.d.ts +2 -0
- package/dist/@types/src/specUtils.test.d.ts.map +1 -0
- package/dist/@types/src/textUtils.d.ts +11 -0
- package/dist/@types/src/textUtils.d.ts.map +1 -0
- package/dist/@types/src/textUtils.test.d.ts +2 -0
- package/dist/@types/src/textUtils.test.d.ts.map +1 -0
- package/dist/@types/src/title/titleSpecBuilder.d.ts +4 -0
- package/dist/@types/src/title/titleSpecBuilder.d.ts.map +1 -0
- package/dist/@types/src/trendline/index.d.ts +5 -0
- package/dist/@types/src/trendline/index.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineDataTransformUtils.d.ts +72 -0
- package/dist/@types/src/trendline/trendlineDataTransformUtils.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineDataTransformUtils.test.d.ts +2 -0
- package/dist/@types/src/trendline/trendlineDataTransformUtils.test.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineDataUtils.d.ts +54 -0
- package/dist/@types/src/trendline/trendlineDataUtils.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineDataUtils.test.d.ts +2 -0
- package/dist/@types/src/trendline/trendlineDataUtils.test.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineMarkUtils.d.ts +70 -0
- package/dist/@types/src/trendline/trendlineMarkUtils.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineMarkUtils.test.d.ts +2 -0
- package/dist/@types/src/trendline/trendlineMarkUtils.test.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineScaleUtils.d.ts +9 -0
- package/dist/@types/src/trendline/trendlineScaleUtils.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineScaleUtils.test.d.ts +2 -0
- package/dist/@types/src/trendline/trendlineScaleUtils.test.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineSignalUtils.d.ts +4 -0
- package/dist/@types/src/trendline/trendlineSignalUtils.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineSignalUtils.test.d.ts +2 -0
- package/dist/@types/src/trendline/trendlineSignalUtils.test.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineTestUtils.d.ts +4 -0
- package/dist/@types/src/trendline/trendlineTestUtils.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineUtils.d.ts +106 -0
- package/dist/@types/src/trendline/trendlineUtils.d.ts.map +1 -0
- package/dist/@types/src/trendline/trendlineUtils.test.d.ts +2 -0
- package/dist/@types/src/trendline/trendlineUtils.test.d.ts.map +1 -0
- package/dist/@types/src/trendlineAnnotation/index.d.ts +2 -0
- package/dist/@types/src/trendlineAnnotation/index.d.ts.map +1 -0
- package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.d.ts +60 -0
- package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.d.ts.map +1 -0
- package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.test.d.ts +2 -0
- package/dist/@types/src/trendlineAnnotation/trendlineAnnotationUtils.test.d.ts.map +1 -0
- package/dist/@types/src/types/axis/axisAnnotationSpec.types.d.ts +35 -0
- package/dist/@types/src/types/axis/axisAnnotationSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/axis/axisSpec.types.d.ts +128 -0
- package/dist/@types/src/types/axis/axisSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/axis/index.d.ts +4 -0
- package/dist/@types/src/types/axis/index.d.ts.map +1 -0
- package/dist/@types/src/types/axis/referenceLineSpec.types.d.ts +32 -0
- package/dist/@types/src/types/axis/referenceLineSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/chartSpec.types.d.ts +65 -0
- package/dist/@types/src/types/chartSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/dialogs/chartPopoverSpec.types.d.ts +27 -0
- package/dist/@types/src/types/dialogs/chartPopoverSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/dialogs/chartTooltipSpec.types.d.ts +13 -0
- package/dist/@types/src/types/dialogs/chartTooltipSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/dialogs/index.d.ts +3 -0
- package/dist/@types/src/types/dialogs/index.d.ts.map +1 -0
- package/dist/@types/src/types/index.d.ts +9 -0
- package/dist/@types/src/types/index.d.ts.map +1 -0
- package/dist/@types/src/types/legendSpec.types.d.ts +63 -0
- package/dist/@types/src/types/legendSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/areaSpec.types.d.ts +40 -0
- package/dist/@types/src/types/marks/areaSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/barSpec.types.d.ts +66 -0
- package/dist/@types/src/types/marks/barSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/bigNumberSpec.types.d.ts +15 -0
- package/dist/@types/src/types/marks/bigNumberSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/comboSpec.types.d.ts +11 -0
- package/dist/@types/src/types/marks/comboSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/donutSpec.types.d.ts +36 -0
- package/dist/@types/src/types/marks/donutSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/index.d.ts +9 -0
- package/dist/@types/src/types/marks/index.d.ts.map +1 -0
- package/dist/@types/src/types/marks/lineSpec.types.d.ts +58 -0
- package/dist/@types/src/types/marks/lineSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/scatterSpec.types.d.ts +64 -0
- package/dist/@types/src/types/marks/scatterSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/barAnnotationSpec.types.d.ts +20 -0
- package/dist/@types/src/types/marks/supplemental/barAnnotationSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/dountSummarySpec.types.d.ts +18 -0
- package/dist/@types/src/types/marks/supplemental/dountSummarySpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/index.d.ts +8 -0
- package/dist/@types/src/types/marks/supplemental/index.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/metricRangeSpec.types.d.ts +30 -0
- package/dist/@types/src/types/marks/supplemental/metricRangeSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/scatterPathSpec.types.d.ts +24 -0
- package/dist/@types/src/types/marks/supplemental/scatterPathSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/segmentLabelSpec.types.d.ts +24 -0
- package/dist/@types/src/types/marks/supplemental/segmentLabelSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/trendlineAnnotationSpec.types.d.ts +32 -0
- package/dist/@types/src/types/marks/supplemental/trendlineAnnotationSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/marks/supplemental/trendlineSpec.types.d.ts +62 -0
- package/dist/@types/src/types/marks/supplemental/trendlineSpec.types.d.ts.map +1 -0
- package/dist/@types/src/types/specUtil.types.d.ts +89 -0
- package/dist/@types/src/types/specUtil.types.d.ts.map +1 -0
- package/dist/@types/src/types/spectrumVizColor.types.d.ts +9 -0
- package/dist/@types/src/types/spectrumVizColor.types.d.ts.map +1 -0
- package/dist/@types/src/types/titleSpec.types.d.ts +14 -0
- package/dist/@types/src/types/titleSpec.types.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.LICENSE.txt +1 -0
- package/dist/index.js.map +1 -0
- package/package.json +34 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Spec } from 'vega';
|
|
2
|
+
import { AxisOptions } from './axis';
|
|
3
|
+
import { LegendOptions } from './legendSpec.types';
|
|
4
|
+
import { AreaOptions, BarOptions, BigNumberOptions, ComboOptions, DonutOptions, LineOptions, ScatterOptions } from './marks';
|
|
5
|
+
import { ChartSymbolShape, LineType, LineWidth, PartiallyRequired, SymbolSize } from './specUtil.types';
|
|
6
|
+
import { Colors } from './spectrumVizColor.types';
|
|
7
|
+
import { TitleOptions } from './titleSpec.types';
|
|
8
|
+
export type ColorScheme = 'light' | 'dark';
|
|
9
|
+
export type Height = number | `${number}%`;
|
|
10
|
+
export type HighlightedItem = string | number | (string | number)[];
|
|
11
|
+
export type TooltipAnchor = 'cursor' | 'mark';
|
|
12
|
+
export type TooltipPlacement = 'top' | 'bottom' | 'left' | 'right';
|
|
13
|
+
export type Width = number | string | 'auto';
|
|
14
|
+
export type ChartColors = Colors | Colors[];
|
|
15
|
+
export type LineTypes = LineType[] | LineType[][];
|
|
16
|
+
export type Opacities = number[] | number[][];
|
|
17
|
+
export type SymbolShapes = ChartSymbolShape[] | ChartSymbolShape[][];
|
|
18
|
+
export interface ChartHandle {
|
|
19
|
+
copy: () => Promise<string>;
|
|
20
|
+
download: (customFileName?: string) => Promise<string>;
|
|
21
|
+
getBase64Png: () => Promise<string>;
|
|
22
|
+
getSvg: () => Promise<string>;
|
|
23
|
+
}
|
|
24
|
+
export type MarkOptions = AreaOptions | BarOptions | BigNumberOptions | ComboOptions | DonutOptions | LineOptions | ScatterOptions;
|
|
25
|
+
export interface ChartOptions {
|
|
26
|
+
/** Background color of the chart. */
|
|
27
|
+
backgroundColor?: string;
|
|
28
|
+
/** Color scale. Defaults to the `categorical16' color scale. */
|
|
29
|
+
colors?: ChartColors;
|
|
30
|
+
/** react-spectrum color scheme. @see https://react-spectrum.adobe.com/react-spectrum/Provider.html#props */
|
|
31
|
+
colorScheme?: ColorScheme;
|
|
32
|
+
/** Chart description. Sets the aria-label attribute for the chart container. @see https://vega.github.io/vega/docs/specification/ */
|
|
33
|
+
description?: string;
|
|
34
|
+
/** Symbol shape scale. */
|
|
35
|
+
symbolShapes?: SymbolShapes;
|
|
36
|
+
/** Symbol size scale. Values define the min and max size in that order. */
|
|
37
|
+
symbolSizes?: [SymbolSize, SymbolSize];
|
|
38
|
+
/** Line type scale. */
|
|
39
|
+
lineTypes?: LineTypes;
|
|
40
|
+
/** Line width scale. */
|
|
41
|
+
lineWidths?: LineWidth[];
|
|
42
|
+
/** Opacity scale*/
|
|
43
|
+
opacities?: Opacities;
|
|
44
|
+
/** Chart title. If the `Title` component is provided as a child, the component will override this prop. */
|
|
45
|
+
title?: string;
|
|
46
|
+
/** Vega spec to be used instead of generating one using the component API. */
|
|
47
|
+
UNSAFE_vegaSpec?: Spec;
|
|
48
|
+
/** Series names to hide from the chart (controlled). */
|
|
49
|
+
hiddenSeries?: string[];
|
|
50
|
+
/** Data item id or ids that should be highlighted on the chart (controlled). Be sure to supply an `idKey` where each data point has a unique ID if you are using controlled highlighting of items. */
|
|
51
|
+
highlightedItem?: HighlightedItem;
|
|
52
|
+
/** Series name to highlight on the chart (controlled). */
|
|
53
|
+
highlightedSeries?: string | number;
|
|
54
|
+
/** Data key that contains a unique ID for each data point in the array. */
|
|
55
|
+
idKey?: string;
|
|
56
|
+
marks: MarkOptions[];
|
|
57
|
+
axes?: AxisOptions[];
|
|
58
|
+
legends?: LegendOptions[];
|
|
59
|
+
titles?: TitleOptions[];
|
|
60
|
+
}
|
|
61
|
+
type ChartOptionsWithDefaults = 'axes' | 'backgroundColor' | 'colors' | 'colorScheme' | 'hiddenSeries' | 'idKey' | 'legends' | 'lineTypes' | 'lineWidths' | 'marks' | 'symbolShapes' | 'symbolSizes' | 'titles';
|
|
62
|
+
export interface ChartSpecOptions extends PartiallyRequired<ChartOptions, ChartOptionsWithDefaults> {
|
|
63
|
+
}
|
|
64
|
+
export {};
|
|
65
|
+
//# sourceMappingURL=chartSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chartSpec.types.d.ts","sourceRoot":"","sources":["../../../../src/types/chartSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EACN,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,cAAc,EACd,MAAM,SAAS,CAAC;AACjB,OAAO,EA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AAa,GACb,QAAQ,CAAC;AAEZ,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB,CAAC,YAAY,EAAE,wBAAwB,CAAC;CAAG"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PartiallyRequired } from '../specUtil.types';
|
|
2
|
+
export interface ChartPopoverOptions {
|
|
3
|
+
/** Width of the popover */
|
|
4
|
+
width?: number | 'auto';
|
|
5
|
+
/** Minimum width of the popover */
|
|
6
|
+
minWidth?: number;
|
|
7
|
+
/** Maximum width of the popover */
|
|
8
|
+
maxWidth?: number;
|
|
9
|
+
/** Height of the popover */
|
|
10
|
+
height?: number | 'auto';
|
|
11
|
+
/** Minimum height of the popover */
|
|
12
|
+
minHeight?: number;
|
|
13
|
+
/** Maximum height of the popover */
|
|
14
|
+
maxHeight?: number;
|
|
15
|
+
/** handler that is called when the popover's open state changes */
|
|
16
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
17
|
+
/** The placement padding that should be applied between the popover and its surrounding container */
|
|
18
|
+
containerPadding?: number;
|
|
19
|
+
/** Sets which marks should be highlighted when a popover is visible. This feature is incomplete. */
|
|
20
|
+
UNSAFE_highlightBy?: 'series' | 'dimension' | 'item' | string[];
|
|
21
|
+
}
|
|
22
|
+
type ChartPopoverOptionsWithDefaults = 'UNSAFE_highlightBy';
|
|
23
|
+
export interface ChartPopoverSpecOptions extends PartiallyRequired<ChartPopoverOptions, ChartPopoverOptionsWithDefaults> {
|
|
24
|
+
markName: string;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=chartPopoverSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chartPopoverSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/dialogs/chartPopoverSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,mBAAmB;IACnC,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,qGAAqG;IACrG,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qGAAqG;IACrG,kBAAkB,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;CAChE;AAED,KAAK,+BAA+B,GAAG,oBAAoB,CAAC;AAE5D,MAAM,WAAW,uBAChB,SAAQ,iBAAiB,CAAC,mBAAmB,EAAE,+BAA+B,CAAC;IAC/E,QAAQ,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PartiallyRequired } from '../specUtil.types';
|
|
2
|
+
export interface ChartTooltipOptions {
|
|
3
|
+
/** The keys in the data that will disable the tooltip if they have truthy values */
|
|
4
|
+
excludeDataKeys?: string[];
|
|
5
|
+
/** Sets which marks should be highlighted when a tooltip is visible */
|
|
6
|
+
highlightBy?: 'series' | 'dimension' | 'item' | string[];
|
|
7
|
+
}
|
|
8
|
+
type ChartTooltipOptionsWithDefaults = 'highlightBy';
|
|
9
|
+
export interface ChartTooltipSpecOptions extends PartiallyRequired<ChartTooltipOptions, ChartTooltipOptionsWithDefaults> {
|
|
10
|
+
markName: string;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=chartTooltipSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chartTooltipSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/dialogs/chartTooltipSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,mBAAmB;IACnC,oFAAoF;IACpF,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,uEAAuE;IACvE,WAAW,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;CACzD;AAED,KAAK,+BAA+B,GAAG,aAAa,CAAC;AAErD,MAAM,WAAW,uBAChB,SAAQ,iBAAiB,CAAC,mBAAmB,EAAE,+BAA+B,CAAC;IAC/E,QAAQ,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/dialogs/index.ts"],"names":[],"mappings":"AAYA,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './chartSpec.types';
|
|
2
|
+
export * from './legendSpec.types';
|
|
3
|
+
export * from './spectrumVizColor.types';
|
|
4
|
+
export * from './titleSpec.types';
|
|
5
|
+
export * from './specUtil.types';
|
|
6
|
+
export * from './axis';
|
|
7
|
+
export * from './dialogs';
|
|
8
|
+
export * from './marks';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAYA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ColorScheme } from './chartSpec.types';
|
|
2
|
+
import { ColorFacet, FacetRef, LineTypeFacet, LineWidthFacet, OpacityFacet, PartiallyRequired, Position, SymbolShapeFacet } from './specUtil.types';
|
|
3
|
+
export type LegendDescription = {
|
|
4
|
+
seriesName: string;
|
|
5
|
+
description: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
};
|
|
8
|
+
export type LegendLabel = {
|
|
9
|
+
seriesName: string | number;
|
|
10
|
+
label: string;
|
|
11
|
+
maxLength?: number;
|
|
12
|
+
};
|
|
13
|
+
export interface LegendOptions {
|
|
14
|
+
/** color or key in the data that is used as the color facet for the symbols */
|
|
15
|
+
color?: ColorFacet;
|
|
16
|
+
/** series that should be hidden by default (uncontrolled) */
|
|
17
|
+
defaultHiddenSeries?: string[];
|
|
18
|
+
/** descriptions for each of the series */
|
|
19
|
+
descriptions?: LegendDescription[];
|
|
20
|
+
/** `true` if there is a onMouseOut of onMouseOver on the LegendProps. */
|
|
21
|
+
hasMouseInteraction?: boolean;
|
|
22
|
+
/** `true` if there is an onClick on the LegendProps */
|
|
23
|
+
hasOnClick?: boolean;
|
|
24
|
+
/** series names to hide from the legend */
|
|
25
|
+
hiddenEntries?: string[];
|
|
26
|
+
/** whether or not to include highlight interactions (controlled) */
|
|
27
|
+
highlight?: boolean;
|
|
28
|
+
/** allows the user to hide/show series by clicking on the legend entry (uncontrolled) */
|
|
29
|
+
isToggleable?: boolean;
|
|
30
|
+
/** keys from the data to generate the legend for. Defaults to all keys used to facet the data. */
|
|
31
|
+
keys?: string[];
|
|
32
|
+
/** labels for each of the series */
|
|
33
|
+
legendLabels?: LegendLabel[];
|
|
34
|
+
/** max width in pixels before truncating a legend label */
|
|
35
|
+
labelLimit?: number;
|
|
36
|
+
/** line type or key in the data that is used as the line type facet for the symbols */
|
|
37
|
+
lineType?: LineTypeFacet;
|
|
38
|
+
/** line type or key in the data that is used as the line type facet for the symbols */
|
|
39
|
+
lineWidth?: LineWidthFacet;
|
|
40
|
+
/** Sets the name of the component. */
|
|
41
|
+
name?: string;
|
|
42
|
+
/** opacity or key in the data that is used as the opacity facet for the symbols */
|
|
43
|
+
opacity?: OpacityFacet;
|
|
44
|
+
/** where the legend should be displayed */
|
|
45
|
+
position?: Position;
|
|
46
|
+
/** customize the legend symbol shape */
|
|
47
|
+
symbolShape?: SymbolShapeFacet;
|
|
48
|
+
/** legend title */
|
|
49
|
+
title?: string;
|
|
50
|
+
}
|
|
51
|
+
type LegendOptionsWithDefaults = 'hasMouseInteraction' | 'hasOnClick' | 'hiddenEntries' | 'highlight' | 'isToggleable' | 'position' | 'name';
|
|
52
|
+
export interface LegendSpecOptions extends PartiallyRequired<LegendOptions, LegendOptionsWithDefaults> {
|
|
53
|
+
color?: FacetRef<string>;
|
|
54
|
+
colorScheme: ColorScheme;
|
|
55
|
+
hiddenSeries: string[];
|
|
56
|
+
highlightedSeries?: string | number;
|
|
57
|
+
index: number;
|
|
58
|
+
lineType?: FacetRef<number[]>;
|
|
59
|
+
lineWidth?: FacetRef<number>;
|
|
60
|
+
symbolShape?: FacetRef<string>;
|
|
61
|
+
}
|
|
62
|
+
export {};
|
|
63
|
+
//# sourceMappingURL=legendSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legendSpec.types.d.ts","sourceRoot":"","sources":["../../../../src/types/legendSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EACN,UAAU,EACV,QAAQ,EACR,aAAa,EACb,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,QAAQ,EACR,gBAAgB,EAChB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,iBAAiB,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAA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AAc,GACd,UAAU,GACV,MAAM,CAAC;AAEV,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB,CAAC,aAAa,EAAE,yBAAyB,CAAC;IACrG,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC/B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ColorScheme, HighlightedItem } from '../chartSpec.types';
|
|
2
|
+
import { ChartPopoverOptions } from '../dialogs/chartPopoverSpec.types';
|
|
3
|
+
import { ChartTooltipOptions } from '../dialogs/chartTooltipSpec.types';
|
|
4
|
+
import { PartiallyRequired, ScaleType } from '../specUtil.types';
|
|
5
|
+
export interface AreaOptions {
|
|
6
|
+
markType: 'area';
|
|
7
|
+
/** Sets the name of the component. */
|
|
8
|
+
name?: string;
|
|
9
|
+
/** Key in the data that is used as the color facet */
|
|
10
|
+
color?: string;
|
|
11
|
+
/** Key in the data that is used as the metric */
|
|
12
|
+
metric?: string;
|
|
13
|
+
/** Data field that the metric is trended against (x-axis for horizontal orientation) */
|
|
14
|
+
dimension?: string;
|
|
15
|
+
/** Optional field used to set the stack order of the area (higher order = stacked on top/right) */
|
|
16
|
+
order?: string;
|
|
17
|
+
/** Optional field used to set the area opacity */
|
|
18
|
+
opacity?: number;
|
|
19
|
+
/** Sets the horizontal padding, this is a ratio from 0 to 1 for categorical scales (point) and a pixel value for continuous scales (time, linear) */
|
|
20
|
+
padding?: number;
|
|
21
|
+
/** Sets the type of scale that should be used for the trend */
|
|
22
|
+
scaleType?: ScaleType;
|
|
23
|
+
/** Data field for the start of the area */
|
|
24
|
+
metricStart?: string;
|
|
25
|
+
/** Data field for the end of the area */
|
|
26
|
+
metricEnd?: string;
|
|
27
|
+
/** Popover that is shown when hovering over the area */
|
|
28
|
+
chartPopovers?: ChartPopoverOptions[];
|
|
29
|
+
/** Tooltip that is shown when hovering over the area */
|
|
30
|
+
chartTooltips?: ChartTooltipOptions[];
|
|
31
|
+
}
|
|
32
|
+
type AreaOptionsWithDefaults = 'chartTooltips' | 'chartPopovers' | 'color' | 'dimension' | 'metric' | 'name' | 'opacity' | 'scaleType';
|
|
33
|
+
export interface AreaSpecOptions extends PartiallyRequired<AreaOptions, AreaOptionsWithDefaults> {
|
|
34
|
+
colorScheme: ColorScheme;
|
|
35
|
+
highlightedItem?: HighlightedItem;
|
|
36
|
+
idKey: string;
|
|
37
|
+
index: number;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=areaSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"areaSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/marks/areaSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEjE,MAAM,WAAW,WAAW;IAC3B,QAAQ,EAAE,MAAM,CAAC;IAEjB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wFAAwF;IACxF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mGAAmG;IACnG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qJAAqJ;IACrJ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,SAAS,CAAC,EAAE,SAAS,CAAC;IAGtB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,wDAAwD;IACxD,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACtC,wDAAwD;IACxD,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACtC;AAED,KAAK,uBAAuB,GACzB,eAAe,GACf,eAAe,GACf,OAAO,GACP,WAAW,GACX,QAAQ,GACR,MAAM,GACN,SAAS,GACT,WAAW,CAAC;AAEf,MAAM,WAAW,eAAgB,SAAQ,iBAAiB,CAAC,WAAW,EAAE,uBAAuB,CAAC;IAC/F,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ColorScheme, HighlightedItem } from '../chartSpec.types';
|
|
2
|
+
import { ChartPopoverOptions } from '../dialogs/chartPopoverSpec.types';
|
|
3
|
+
import { ChartTooltipOptions } from '../dialogs/chartTooltipSpec.types';
|
|
4
|
+
import { ColorFacet, LineTypeFacet, LineWidth, OpacityFacet, Orientation, PartiallyRequired } from '../specUtil.types';
|
|
5
|
+
import { BarAnnotationOptions } from './supplemental/barAnnotationSpec.types';
|
|
6
|
+
import { TrendlineOptions } from './supplemental/trendlineSpec.types';
|
|
7
|
+
export type DualFacet = [string, string];
|
|
8
|
+
export type BarType = 'dodged' | 'stacked';
|
|
9
|
+
export interface BarOptions {
|
|
10
|
+
markType: 'bar';
|
|
11
|
+
/** Key in the data that is used as the metric */
|
|
12
|
+
metric?: string;
|
|
13
|
+
/** Bar color or key in the data that is used as the color facet */
|
|
14
|
+
color?: ColorFacet | DualFacet;
|
|
15
|
+
/** Data field used for the bar categories (x-axis for a vertical bar) */
|
|
16
|
+
dimension?: string;
|
|
17
|
+
/** Data type field used for the bar categories (x-axis for a vertical bar) */
|
|
18
|
+
dimensionDataType?: string;
|
|
19
|
+
/** Sets the inner padding between bars in a group */
|
|
20
|
+
groupedPadding?: number;
|
|
21
|
+
/** `true` if BarProps has an onClick callback. Will add the mouse pointer to the bar on hover. */
|
|
22
|
+
hasOnClick?: boolean;
|
|
23
|
+
/** Should the top-left and top-right corners of the bars be square? Round by default */
|
|
24
|
+
hasSquareCorners?: boolean;
|
|
25
|
+
/** Line type or key in the data that is used as the line type facet */
|
|
26
|
+
lineType?: LineTypeFacet | DualFacet;
|
|
27
|
+
/** Border width of the bar */
|
|
28
|
+
lineWidth?: LineWidth;
|
|
29
|
+
/** Sets the name of the component. */
|
|
30
|
+
name?: string;
|
|
31
|
+
/** Optional field used to set the stack order of the bar (higher order = higher on bar) */
|
|
32
|
+
order?: string;
|
|
33
|
+
/** The direction of the bars. Defaults to "vertical". */
|
|
34
|
+
orientation?: Orientation;
|
|
35
|
+
/** Opacity or key in the data that is used as the opacity facet */
|
|
36
|
+
opacity?: OpacityFacet | DualFacet;
|
|
37
|
+
/** Sets inner padding (https://vega.github.io/vega/docs/scales/#band) */
|
|
38
|
+
paddingRatio?: number;
|
|
39
|
+
/** Sets the chart area padding, this is a ratio between 0 and 1 (https://vega.github.io/vega/docs/scales/#band) */
|
|
40
|
+
paddingOuter?: number;
|
|
41
|
+
/** The data field used for the trellis categories */
|
|
42
|
+
trellis?: string;
|
|
43
|
+
/** Orientation of the trellis. Only applicable if `trellis` is also defined. Defaults to "horizontal". */
|
|
44
|
+
trellisOrientation?: Orientation;
|
|
45
|
+
/** Padding between trellis groups; ratio between 0 and 1 (https://vega.github.io/vega/docs/scales/#band). Only applicable if `trellis` is also defined. Defaults to 0.2. */
|
|
46
|
+
trellisPadding?: number;
|
|
47
|
+
/** Bar type. */
|
|
48
|
+
type?: BarType;
|
|
49
|
+
/** Axis that the metric is trended against (y-axis for a vertical bar) */
|
|
50
|
+
metricAxis?: string;
|
|
51
|
+
barAnnotations?: BarAnnotationOptions[];
|
|
52
|
+
chartPopovers?: ChartPopoverOptions[];
|
|
53
|
+
chartTooltips?: ChartTooltipOptions[];
|
|
54
|
+
trendlines?: TrendlineOptions[];
|
|
55
|
+
}
|
|
56
|
+
type BarOptionsWithDefaults = 'barAnnotations' | 'color' | 'chartPopovers' | 'chartTooltips' | 'dimension' | 'hasOnClick' | 'hasSquareCorners' | 'lineType' | 'lineWidth' | 'metric' | 'name' | 'opacity' | 'paddingRatio' | 'orientation' | 'trellisOrientation' | 'trellisPadding' | 'trendlines' | 'type';
|
|
57
|
+
export interface BarSpecOptions extends PartiallyRequired<BarOptions, BarOptionsWithDefaults> {
|
|
58
|
+
colorScheme: ColorScheme;
|
|
59
|
+
dimensionScaleType: 'band';
|
|
60
|
+
highlightedItem?: HighlightedItem;
|
|
61
|
+
idKey: string;
|
|
62
|
+
index: number;
|
|
63
|
+
interactiveMarkName: string | undefined;
|
|
64
|
+
}
|
|
65
|
+
export {};
|
|
66
|
+
//# sourceMappingURL=barSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"barSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/marks/barSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,i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;IACjC,4KAA4K;IAC5K,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,0EAA0E;IAC1E,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,cAAc,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACxC,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACtC,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACtC,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAChC;AAED,KAAK,sBAAsB,GACxB,gBAAgB,GAChB,OAAO,GACP,eAAe,GACf,eAAe,GACf,WAAW,GACX,YAAY,GACZ,kBAAkB,GAClB,UAAU,GACV,WAAW,GACX,QAAQ,GACR,MAAM,GACN,SAAS,GACT,cAAc,GACd,aAAa,GACb,oBAAoB,GACpB,gBAAgB,GAChB,YAAY,GACZ,MAAM,CAAC;AAEV,MAAM,WAAW,cAAe,SAAQ,iBAAiB,CAAC,UAAU,EAAE,sBAAsB,CAAC;IAC5F,WAAW,EAAE,WAAW,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Orientation } from '../specUtil.types';
|
|
2
|
+
import { LineOptions } from './lineSpec.types';
|
|
3
|
+
export type BigNumberNumberType = 'linear' | 'percentage';
|
|
4
|
+
export type BigNumberMethod = 'sum' | 'avg' | 'last';
|
|
5
|
+
export interface BigNumberOptions {
|
|
6
|
+
markType: 'bigNumber';
|
|
7
|
+
orientation: Orientation;
|
|
8
|
+
label: string;
|
|
9
|
+
dataKey: string;
|
|
10
|
+
numberFormat?: string;
|
|
11
|
+
numberType?: BigNumberNumberType;
|
|
12
|
+
method?: BigNumberMethod;
|
|
13
|
+
lines?: LineOptions[];
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=bigNumberSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bigNumberSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/marks/bigNumberSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,YAAY,CAAC;AAC1D,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAErD,MAAM,WAAW,gBAAgB;IAChC,QAAQ,EAAE,WAAW,CAAC;IAEtB,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,MAAM,CAAC,EAAE,eAAe,CAAC;IAGzB,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;CACtB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BarOptions } from './barSpec.types';
|
|
2
|
+
import { LineOptions } from './lineSpec.types';
|
|
3
|
+
export interface ComboOptions {
|
|
4
|
+
markType: 'combo';
|
|
5
|
+
/** Data field that the metrics are trended against (x-axis for horizontal orientation) */
|
|
6
|
+
dimension?: string;
|
|
7
|
+
/** Sets the name of the component. */
|
|
8
|
+
name?: string;
|
|
9
|
+
marks?: (BarOptions | LineOptions)[];
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=comboSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comboSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/marks/comboSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAElB,0FAA0F;IAC1F,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,KAAK,CAAC,EAAE,CAAC,UAAU,GAAG,WAAW,CAAC,EAAE,CAAC;CACrC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ColorScheme, HighlightedItem } from '../chartSpec.types';
|
|
2
|
+
import { ChartPopoverOptions } from '../dialogs/chartPopoverSpec.types';
|
|
3
|
+
import { ChartTooltipOptions } from '../dialogs/chartTooltipSpec.types';
|
|
4
|
+
import { PartiallyRequired } from '../specUtil.types';
|
|
5
|
+
import { DonutSummaryOptions } from './supplemental/dountSummarySpec.types';
|
|
6
|
+
import { SegmentLabelOptions } from './supplemental/segmentLabelSpec.types';
|
|
7
|
+
export interface DonutOptions {
|
|
8
|
+
markType: 'donut';
|
|
9
|
+
/** Key in the data that is used as the color facet */
|
|
10
|
+
color?: string;
|
|
11
|
+
/** Ratio of the donut inner radius / donut outer radius. 0 is a pie chart. 0.85 is the default. */
|
|
12
|
+
holeRatio?: number;
|
|
13
|
+
/** Determines if the center metric should be displayed as a percent. if true, data should only be two data points, which sum to 1
|
|
14
|
+
* Also, if true, will display the first datapoint as a percent */
|
|
15
|
+
isBoolean?: boolean;
|
|
16
|
+
/** Key in the data that is used as the metric */
|
|
17
|
+
metric?: string;
|
|
18
|
+
/** Sets the name of the component. */
|
|
19
|
+
name?: string;
|
|
20
|
+
/** Start angle of the donut in radians (0 is top dead center, and default) */
|
|
21
|
+
startAngle?: number;
|
|
22
|
+
chartPopovers?: ChartPopoverOptions[];
|
|
23
|
+
chartTooltips?: ChartTooltipOptions[];
|
|
24
|
+
donutSummaries?: DonutSummaryOptions[];
|
|
25
|
+
segmentLabels?: SegmentLabelOptions[];
|
|
26
|
+
}
|
|
27
|
+
type DonutOptionsWithDefaults = 'chartPopovers' | 'chartTooltips' | 'color' | 'donutSummaries' | 'holeRatio' | 'isBoolean' | 'metric' | 'name' | 'segmentLabels' | 'startAngle';
|
|
28
|
+
export interface DonutSpecOptions extends PartiallyRequired<DonutOptions, DonutOptionsWithDefaults> {
|
|
29
|
+
colorScheme: ColorScheme;
|
|
30
|
+
highlightedItem?: HighlightedItem;
|
|
31
|
+
idKey: string;
|
|
32
|
+
index: number;
|
|
33
|
+
markType: 'donut';
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=donutSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"donutSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/marks/donutSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAE5E,MAAM,WAAW,YAAY;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAElB,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mGAAmG;IACnG,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;sEACkE;IAClE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACtC,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACtC,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACvC,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACtC;AAED,KAAK,wBAAwB,GAC1B,eAAe,GACf,eAAe,GACf,OAAO,GACP,gBAAgB,GAChB,WAAW,GACX,WAAW,GACX,QAAQ,GACR,MAAM,GACN,eAAe,GACf,YAAY,CAAC;AAEhB,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB,CAAC,YAAY,EAAE,wBAAwB,CAAC;IAClG,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;CAClB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './areaSpec.types';
|
|
2
|
+
export * from './barSpec.types';
|
|
3
|
+
export * from './bigNumberSpec.types';
|
|
4
|
+
export * from './comboSpec.types';
|
|
5
|
+
export * from './donutSpec.types';
|
|
6
|
+
export * from './lineSpec.types';
|
|
7
|
+
export * from './scatterSpec.types';
|
|
8
|
+
export * from './supplemental';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/types/marks/index.ts"],"names":[],"mappings":"AAYA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { INTERACTION_MODE } from '@spectrum-charts/constants';
|
|
2
|
+
import { ColorScheme, HighlightedItem } from '../chartSpec.types';
|
|
3
|
+
import { ChartPopoverOptions } from '../dialogs/chartPopoverSpec.types';
|
|
4
|
+
import { ChartTooltipOptions } from '../dialogs/chartTooltipSpec.types';
|
|
5
|
+
import { ColorFacet, FacetRef, LineTypeFacet, LineWidth, OpacityFacet, PartiallyRequired, ScaleType } from '../specUtil.types';
|
|
6
|
+
import { MetricRangeOptions } from './supplemental/metricRangeSpec.types';
|
|
7
|
+
import { TrendlineOptions } from './supplemental/trendlineSpec.types';
|
|
8
|
+
export type InteractionMode = `${INTERACTION_MODE}`;
|
|
9
|
+
export interface LineOptions {
|
|
10
|
+
markType: 'line';
|
|
11
|
+
/** Sets the name of the component. */
|
|
12
|
+
name?: string;
|
|
13
|
+
/** Key in the data that is used as the metric */
|
|
14
|
+
metric?: string;
|
|
15
|
+
/** Line color or key in the data that is used as the color facet */
|
|
16
|
+
color?: ColorFacet;
|
|
17
|
+
/** Data field that the value is trended against (x-axis) */
|
|
18
|
+
dimension?: string;
|
|
19
|
+
/** `true` if BarProps has an onClick callback. Will add the mouse pointer to the bar on hover. */
|
|
20
|
+
hasOnClick?: boolean;
|
|
21
|
+
/** Line type or key in the data that is used as the line type facet */
|
|
22
|
+
lineType?: LineTypeFacet;
|
|
23
|
+
/** Opacity or key in the data that is used as the opacity facet */
|
|
24
|
+
opacity?: OpacityFacet;
|
|
25
|
+
/** Sets the chart area padding, this is a ratio from 0 to 1 for categorical scales (point) and a pixel value for continuous scales (time, linear) */
|
|
26
|
+
padding?: number;
|
|
27
|
+
pointSize?: number;
|
|
28
|
+
/** Line to be interpreted and rendered as a sparkline. For example, Changes the fill of static points. */
|
|
29
|
+
isSparkline?: boolean;
|
|
30
|
+
/** Sparkline's method is last - meaning that last element of data has the static point */
|
|
31
|
+
isMethodLast?: boolean;
|
|
32
|
+
/** Sets the type of scale that should be used for the trend */
|
|
33
|
+
scaleType?: ScaleType;
|
|
34
|
+
/** Key in the data that if it exists and the value resolves to true for each data object, a point will be drawn for that data point on the line. */
|
|
35
|
+
staticPoint?: string;
|
|
36
|
+
/** Sets the interaction mode for the line */
|
|
37
|
+
interactionMode?: InteractionMode;
|
|
38
|
+
/** Axis that the metric is trended against (y-axis) */
|
|
39
|
+
metricAxis?: string;
|
|
40
|
+
chartPopovers?: ChartPopoverOptions[];
|
|
41
|
+
chartTooltips?: ChartTooltipOptions[];
|
|
42
|
+
metricRanges?: MetricRangeOptions[];
|
|
43
|
+
trendlines?: TrendlineOptions[];
|
|
44
|
+
}
|
|
45
|
+
type LineOptionsWithDefaults = 'chartPopovers' | 'chartTooltips' | 'color' | 'dimension' | 'hasOnClick' | 'lineType' | 'metric' | 'metricRanges' | 'name' | 'opacity' | 'scaleType' | 'trendlines';
|
|
46
|
+
export interface LineSpecOptions extends PartiallyRequired<LineOptions, LineOptionsWithDefaults> {
|
|
47
|
+
colorScheme: ColorScheme;
|
|
48
|
+
highlightedItem?: HighlightedItem;
|
|
49
|
+
idKey: string;
|
|
50
|
+
index: number;
|
|
51
|
+
interactiveMarkName: string | undefined;
|
|
52
|
+
isHighlightedByGroup?: boolean;
|
|
53
|
+
lineWidth?: FacetRef<LineWidth>;
|
|
54
|
+
popoverMarkName: string | undefined;
|
|
55
|
+
interactionMode?: InteractionMode;
|
|
56
|
+
}
|
|
57
|
+
export {};
|
|
58
|
+
//# sourceMappingURL=lineSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lineSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/marks/lineSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,O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C;IACtC,YAAY,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACpC,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAChC;AAED,KAAK,uBAAuB,GACzB,eAAe,GACf,eAAe,GACf,OAAO,GACP,WAAW,GACX,YAAY,GACZ,UAAU,GACV,QAAQ,GACR,cAAc,GACd,MAAM,GACN,SAAS,GACT,WAAW,GACX,YAAY,CAAC;AAEhB,MAAM,WAAW,eAAgB,SAAQ,iBAAiB,CAAC,WAAW,EAAE,uBAAuB,CAAC;IAC/F,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IAChC,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,eAAe,CAAC,EAAE,eAAe,CAAC;CAClC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ColorScheme, HighlightedItem } from '../chartSpec.types';
|
|
2
|
+
import { ChartPopoverOptions } from '../dialogs/chartPopoverSpec.types';
|
|
3
|
+
import { ChartTooltipOptions } from '../dialogs/chartTooltipSpec.types';
|
|
4
|
+
import { ColorFacet, LineTypeFacet, LineWidthFacet, OpacityFacet, PartiallyRequired, ScaleType, SymbolSizeFacet } from '../specUtil.types';
|
|
5
|
+
import { ScatterPathOptions } from './supplemental/scatterPathSpec.types';
|
|
6
|
+
import { TrendlineOptions } from './supplemental/trendlineSpec.types';
|
|
7
|
+
export interface ScatterOptions {
|
|
8
|
+
markType: 'scatter';
|
|
9
|
+
/** Sets the name of the component. */
|
|
10
|
+
name?: string;
|
|
11
|
+
/** Key in the data that is used as the metric */
|
|
12
|
+
metric?: string;
|
|
13
|
+
/**
|
|
14
|
+
* point fill and stroke color
|
|
15
|
+
* uses a key in the data that will map to the color scale or a static color value
|
|
16
|
+
*/
|
|
17
|
+
color?: ColorFacet;
|
|
18
|
+
/**
|
|
19
|
+
* type of color scale that should be used for the points
|
|
20
|
+
* use ordinal if the key used for `color` maps to string values ('UT', 'CA', 'NY', etc.)
|
|
21
|
+
* use linear if the key used for `color` maps to numeric values (0, 1, 2, etc.)
|
|
22
|
+
*/
|
|
23
|
+
colorScaleType?: 'linear' | 'ordinal';
|
|
24
|
+
/** data key for the x-axis */
|
|
25
|
+
dimension?: string;
|
|
26
|
+
/** scale type of the x-axis
|
|
27
|
+
* see https://vega.github.io/vega/docs/scales/#types for more information
|
|
28
|
+
*/
|
|
29
|
+
dimensionScaleType?: ScaleType;
|
|
30
|
+
/**
|
|
31
|
+
* line type of the point border
|
|
32
|
+
* uses a key in the data that will map to the line type scale or a static line type value
|
|
33
|
+
*/
|
|
34
|
+
lineType?: LineTypeFacet;
|
|
35
|
+
/**
|
|
36
|
+
* line width of the point border
|
|
37
|
+
* uses a key in the data that will map to the line width scale or a static line width value
|
|
38
|
+
*/
|
|
39
|
+
lineWidth?: LineWidthFacet;
|
|
40
|
+
/**
|
|
41
|
+
* point fill and stroke opacity
|
|
42
|
+
* uses a key in the data that will map to the opacity scale or a opacity value
|
|
43
|
+
*/
|
|
44
|
+
opacity?: OpacityFacet;
|
|
45
|
+
/**
|
|
46
|
+
* point size
|
|
47
|
+
* uses a key in the data that will map to the size scale (linear) or a static size value
|
|
48
|
+
*/
|
|
49
|
+
size?: SymbolSizeFacet;
|
|
50
|
+
chartPopovers?: ChartPopoverOptions[];
|
|
51
|
+
chartTooltips?: ChartTooltipOptions[];
|
|
52
|
+
scatterPaths?: ScatterPathOptions[];
|
|
53
|
+
trendlines?: TrendlineOptions[];
|
|
54
|
+
}
|
|
55
|
+
type ScatterOptionsWithDefaults = 'chartPopovers' | 'chartTooltips' | 'color' | 'colorScaleType' | 'dimension' | 'dimensionScaleType' | 'lineType' | 'lineWidth' | 'metric' | 'name' | 'opacity' | 'size' | 'scatterPaths' | 'trendlines';
|
|
56
|
+
export interface ScatterSpecOptions extends PartiallyRequired<ScatterOptions, ScatterOptionsWithDefaults> {
|
|
57
|
+
colorScheme: ColorScheme;
|
|
58
|
+
highlightedItem?: HighlightedItem;
|
|
59
|
+
idKey: string;
|
|
60
|
+
index: number;
|
|
61
|
+
interactiveMarkName: string | undefined;
|
|
62
|
+
}
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=scatterSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scatterSpec.types.d.ts","sourceRoot":"","sources":["../../../../../src/types/marks/scatterSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EACN,UAAU,EACV,aAAa,EACb,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAEtE,MAAM,WAAW,cAAc;IAC9B,QAAQ,EAAE,SAAS,CAAC;IAEpB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IACtC,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B;;;OAGG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB;;;OAGG;IACH,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;;OAGG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IAGvB,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACtC,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACtC,YAAY,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACpC,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAChC;AAED,KAAK,0BAA0B,GAC5B,eAAe,GACf,eAAe,GACf,OAAO,GACP,gBAAgB,GAChB,WAAW,GACX,oBAAoB,GACpB,UAAU,GACV,WAAW,GACX,QAAQ,GACR,MAAM,GACN,SAAS,GACT,MAAM,GACN,cAAc,GACd,YAAY,CAAC;AAEhB,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB,CAAC,cAAc,EAAE,0BAA0B,CAAC;IACxG,WAAW,EAAE,WAAW,CAAC;IACzB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PartiallyRequired } from '../../specUtil.types';
|
|
2
|
+
import { BarSpecOptions } from '../barSpec.types';
|
|
3
|
+
export interface BarAnnotationStyleOptions {
|
|
4
|
+
width?: number;
|
|
5
|
+
}
|
|
6
|
+
export interface BarAnnotationOptions {
|
|
7
|
+
/** The key in the data that has the text to display */
|
|
8
|
+
textKey?: string;
|
|
9
|
+
/** @deprecated */
|
|
10
|
+
style?: BarAnnotationStyleOptions;
|
|
11
|
+
}
|
|
12
|
+
type BarAnnotationOptionsWithDefaults = 'textKey';
|
|
13
|
+
export interface BarAnnotationSpecOptions extends PartiallyRequired<BarAnnotationOptions, BarAnnotationOptionsWithDefaults> {
|
|
14
|
+
barOptions: BarSpecOptions;
|
|
15
|
+
dataName: string;
|
|
16
|
+
dimensionField: string;
|
|
17
|
+
dimensionScaleName: string;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=barAnnotationSpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"barAnnotationSpec.types.d.ts","sourceRoot":"","sources":["../../../../../../src/types/marks/supplemental/barAnnotationSpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,yBAAyB;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACpC,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB;IAClB,KAAK,CAAC,EAAE,yBAAyB,CAAC;CAClC;AAED,KAAK,gCAAgC,GAAG,SAAS,CAAC;AAElD,MAAM,WAAW,wBAChB,SAAQ,iBAAiB,CAAC,oBAAoB,EAAE,gCAAgC,CAAC;IACjF,UAAU,EAAE,cAAc,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { NumberFormat, PartiallyRequired } from '../../specUtil.types';
|
|
2
|
+
import { DonutSpecOptions } from '../donutSpec.types';
|
|
3
|
+
export interface DonutSummaryOptions {
|
|
4
|
+
/** d3 number format specifier.
|
|
5
|
+
* Sets the number format for the summary value.
|
|
6
|
+
*
|
|
7
|
+
* see {@link https://d3js.org/d3-format#locale_format}
|
|
8
|
+
*/
|
|
9
|
+
numberFormat?: NumberFormat;
|
|
10
|
+
/** Label for the metric summary */
|
|
11
|
+
label?: string;
|
|
12
|
+
}
|
|
13
|
+
type DonutSummaryOptionsWithDefaults = 'numberFormat';
|
|
14
|
+
export interface DonutSummarySpecOptions extends PartiallyRequired<DonutSummaryOptions, DonutSummaryOptionsWithDefaults> {
|
|
15
|
+
donutOptions: DonutSpecOptions;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=dountSummarySpec.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dountSummarySpec.types.d.ts","sourceRoot":"","sources":["../../../../../../src/types/marks/supplemental/dountSummarySpec.types.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,WAAW,mBAAmB;IACnC;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,KAAK,+BAA+B,GAAG,cAAc,CAAC;AAEtD,MAAM,WAAW,uBAChB,SAAQ,iBAAiB,CAAC,mBAAmB,EAAE,+BAA+B,CAAC;IAC/E,YAAY,EAAE,gBAAgB,CAAC;CAC/B"}
|