@sqlrooms/mosaic 0.29.0-rc.1 → 0.29.0-rc.3
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 +161 -2
- package/dist/MosaicChart.d.ts +20 -0
- package/dist/MosaicChart.d.ts.map +1 -0
- package/dist/MosaicChart.js +25 -0
- package/dist/MosaicChart.js.map +1 -0
- package/dist/MosaicChartBuilder.d.ts +67 -0
- package/dist/MosaicChartBuilder.d.ts.map +1 -0
- package/dist/MosaicChartBuilder.js +33 -0
- package/dist/MosaicChartBuilder.js.map +1 -0
- package/dist/MosaicColorLegend.d.ts +18 -0
- package/dist/MosaicColorLegend.d.ts.map +1 -0
- package/dist/MosaicColorLegend.js +117 -0
- package/dist/MosaicColorLegend.js.map +1 -0
- package/dist/MosaicSlice.d.ts +27 -13
- package/dist/MosaicSlice.d.ts.map +1 -1
- package/dist/MosaicSlice.js +140 -42
- package/dist/MosaicSlice.js.map +1 -1
- package/dist/ResponsivePlot.d.ts +23 -0
- package/dist/ResponsivePlot.d.ts.map +1 -0
- package/dist/ResponsivePlot.js +43 -0
- package/dist/ResponsivePlot.js.map +1 -0
- package/dist/VgPlotChart.d.ts +24 -0
- package/dist/VgPlotChart.d.ts.map +1 -1
- package/dist/VgPlotChart.js +127 -21
- package/dist/VgPlotChart.js.map +1 -1
- package/dist/chart-builders/ChartBuilderActions.d.ts +6 -0
- package/dist/chart-builders/ChartBuilderActions.d.ts.map +1 -0
- package/dist/chart-builders/ChartBuilderActions.js +28 -0
- package/dist/chart-builders/ChartBuilderActions.js.map +1 -0
- package/dist/chart-builders/ChartBuilderContent.d.ts +28 -0
- package/dist/chart-builders/ChartBuilderContent.d.ts.map +1 -0
- package/dist/chart-builders/ChartBuilderContent.js +28 -0
- package/dist/chart-builders/ChartBuilderContent.js.map +1 -0
- package/dist/chart-builders/ChartBuilderContext.d.ts +16 -0
- package/dist/chart-builders/ChartBuilderContext.d.ts.map +1 -0
- package/dist/chart-builders/ChartBuilderContext.js +15 -0
- package/dist/chart-builders/ChartBuilderContext.js.map +1 -0
- package/dist/chart-builders/ChartBuilderDialog.d.ts +48 -0
- package/dist/chart-builders/ChartBuilderDialog.d.ts.map +1 -0
- package/dist/chart-builders/ChartBuilderDialog.js +30 -0
- package/dist/chart-builders/ChartBuilderDialog.js.map +1 -0
- package/dist/chart-builders/ChartBuilderFields.d.ts +6 -0
- package/dist/chart-builders/ChartBuilderFields.d.ts.map +1 -0
- package/dist/chart-builders/ChartBuilderFields.js +25 -0
- package/dist/chart-builders/ChartBuilderFields.js.map +1 -0
- package/dist/chart-builders/ChartBuilderRoot.d.ts +27 -0
- package/dist/chart-builders/ChartBuilderRoot.d.ts.map +1 -0
- package/dist/chart-builders/ChartBuilderRoot.js +61 -0
- package/dist/chart-builders/ChartBuilderRoot.js.map +1 -0
- package/dist/chart-builders/ChartBuilderTypeGrid.d.ts +7 -0
- package/dist/chart-builders/ChartBuilderTypeGrid.d.ts.map +1 -0
- package/dist/chart-builders/ChartBuilderTypeGrid.js +23 -0
- package/dist/chart-builders/ChartBuilderTypeGrid.js.map +1 -0
- package/dist/chart-builders/FieldSelectorInput.d.ts +13 -0
- package/dist/chart-builders/FieldSelectorInput.d.ts.map +1 -0
- package/dist/chart-builders/FieldSelectorInput.js +19 -0
- package/dist/chart-builders/FieldSelectorInput.js.map +1 -0
- package/dist/chart-builders/builders.d.ts +34 -0
- package/dist/chart-builders/builders.d.ts.map +1 -0
- package/dist/chart-builders/builders.js +51 -0
- package/dist/chart-builders/builders.js.map +1 -0
- package/dist/chart-builders/chartSpecTitle.d.ts +6 -0
- package/dist/chart-builders/chartSpecTitle.d.ts.map +1 -0
- package/dist/chart-builders/chartSpecTitle.js +8 -0
- package/dist/chart-builders/chartSpecTitle.js.map +1 -0
- package/dist/chart-builders/chartTypeUtils.d.ts +17 -0
- package/dist/chart-builders/chartTypeUtils.d.ts.map +1 -0
- package/dist/chart-builders/chartTypeUtils.js +55 -0
- package/dist/chart-builders/chartTypeUtils.js.map +1 -0
- package/dist/chart-builders/constants.d.ts +7 -0
- package/dist/chart-builders/constants.d.ts.map +1 -0
- package/dist/chart-builders/constants.js +34 -0
- package/dist/chart-builders/constants.js.map +1 -0
- package/dist/chart-builders/createChartBuilderStore.d.ts +11 -0
- package/dist/chart-builders/createChartBuilderStore.d.ts.map +1 -0
- package/dist/chart-builders/createChartBuilderStore.js +26 -0
- package/dist/chart-builders/createChartBuilderStore.js.map +1 -0
- package/dist/chart-builders/describeChartSpecs.d.ts +9 -0
- package/dist/chart-builders/describeChartSpecs.d.ts.map +1 -0
- package/dist/chart-builders/describeChartSpecs.js +41 -0
- package/dist/chart-builders/describeChartSpecs.js.map +1 -0
- package/dist/chart-builders/hooks/useChartFieldForm.d.ts +13 -0
- package/dist/chart-builders/hooks/useChartFieldForm.d.ts.map +1 -0
- package/dist/chart-builders/hooks/useChartFieldForm.js +12 -0
- package/dist/chart-builders/hooks/useChartFieldForm.js.map +1 -0
- package/dist/chart-builders/types.d.ts +23 -0
- package/dist/chart-builders/types.d.ts.map +1 -0
- package/dist/chart-builders/types.js +17 -0
- package/dist/chart-builders/types.js.map +1 -0
- package/dist/chart-types/base-types.d.ts +54 -0
- package/dist/chart-types/base-types.d.ts.map +1 -0
- package/dist/chart-types/base-types.js +6 -0
- package/dist/chart-types/base-types.js.map +1 -0
- package/dist/chart-types/box-plot/definition.d.ts +4 -0
- package/dist/chart-types/box-plot/definition.d.ts.map +1 -0
- package/dist/chart-types/box-plot/definition.js +45 -0
- package/dist/chart-types/box-plot/definition.js.map +1 -0
- package/dist/chart-types/box-plot/index.d.ts +3 -0
- package/dist/chart-types/box-plot/index.d.ts.map +1 -0
- package/dist/chart-types/box-plot/index.js +3 -0
- package/dist/chart-types/box-plot/index.js.map +1 -0
- package/dist/chart-types/box-plot/schema.d.ts +17 -0
- package/dist/chart-types/box-plot/schema.d.ts.map +1 -0
- package/dist/chart-types/box-plot/schema.js +12 -0
- package/dist/chart-types/box-plot/schema.js.map +1 -0
- package/dist/chart-types/bubble-chart/definition.d.ts +4 -0
- package/dist/chart-types/bubble-chart/definition.d.ts.map +1 -0
- package/dist/chart-types/bubble-chart/definition.js +48 -0
- package/dist/chart-types/bubble-chart/definition.js.map +1 -0
- package/dist/chart-types/bubble-chart/index.d.ts +3 -0
- package/dist/chart-types/bubble-chart/index.d.ts.map +1 -0
- package/dist/chart-types/bubble-chart/index.js +3 -0
- package/dist/chart-types/bubble-chart/index.js.map +1 -0
- package/dist/chart-types/bubble-chart/schema.d.ts +17 -0
- package/dist/chart-types/bubble-chart/schema.d.ts.map +1 -0
- package/dist/chart-types/bubble-chart/schema.js +12 -0
- package/dist/chart-types/bubble-chart/schema.js.map +1 -0
- package/dist/chart-types/count-plot/definition.d.ts +4 -0
- package/dist/chart-types/count-plot/definition.d.ts.map +1 -0
- package/dist/chart-types/count-plot/definition.js +50 -0
- package/dist/chart-types/count-plot/definition.js.map +1 -0
- package/dist/chart-types/count-plot/index.d.ts +3 -0
- package/dist/chart-types/count-plot/index.d.ts.map +1 -0
- package/dist/chart-types/count-plot/index.js +3 -0
- package/dist/chart-types/count-plot/index.js.map +1 -0
- package/dist/chart-types/count-plot/schema.d.ts +15 -0
- package/dist/chart-types/count-plot/schema.d.ts.map +1 -0
- package/dist/chart-types/count-plot/schema.js +11 -0
- package/dist/chart-types/count-plot/schema.js.map +1 -0
- package/dist/chart-types/custom-spec/definition.d.ts +4 -0
- package/dist/chart-types/custom-spec/definition.d.ts.map +1 -0
- package/dist/chart-types/custom-spec/definition.js +28 -0
- package/dist/chart-types/custom-spec/definition.js.map +1 -0
- package/dist/chart-types/custom-spec/index.d.ts +3 -0
- package/dist/chart-types/custom-spec/index.d.ts.map +1 -0
- package/dist/chart-types/custom-spec/index.js +3 -0
- package/dist/chart-types/custom-spec/index.js.map +1 -0
- package/dist/chart-types/custom-spec/schema.d.ts +11 -0
- package/dist/chart-types/custom-spec/schema.d.ts.map +1 -0
- package/dist/chart-types/custom-spec/schema.js +9 -0
- package/dist/chart-types/custom-spec/schema.js.map +1 -0
- package/dist/chart-types/ecdf/definition.d.ts +4 -0
- package/dist/chart-types/ecdf/definition.d.ts.map +1 -0
- package/dist/chart-types/ecdf/definition.js +47 -0
- package/dist/chart-types/ecdf/definition.js.map +1 -0
- package/dist/chart-types/ecdf/index.d.ts +3 -0
- package/dist/chart-types/ecdf/index.d.ts.map +1 -0
- package/dist/chart-types/ecdf/index.js +3 -0
- package/dist/chart-types/ecdf/index.js.map +1 -0
- package/dist/chart-types/ecdf/schema.d.ts +15 -0
- package/dist/chart-types/ecdf/schema.d.ts.map +1 -0
- package/dist/chart-types/ecdf/schema.js +11 -0
- package/dist/chart-types/ecdf/schema.js.map +1 -0
- package/dist/chart-types/heatmap/definition.d.ts +4 -0
- package/dist/chart-types/heatmap/definition.d.ts.map +1 -0
- package/dist/chart-types/heatmap/definition.js +49 -0
- package/dist/chart-types/heatmap/definition.js.map +1 -0
- package/dist/chart-types/heatmap/index.d.ts +3 -0
- package/dist/chart-types/heatmap/index.d.ts.map +1 -0
- package/dist/chart-types/heatmap/index.js +3 -0
- package/dist/chart-types/heatmap/index.js.map +1 -0
- package/dist/chart-types/heatmap/schema.d.ts +17 -0
- package/dist/chart-types/heatmap/schema.d.ts.map +1 -0
- package/dist/chart-types/heatmap/schema.js +12 -0
- package/dist/chart-types/heatmap/schema.js.map +1 -0
- package/dist/chart-types/histogram/definition.d.ts +4 -0
- package/dist/chart-types/histogram/definition.d.ts.map +1 -0
- package/dist/chart-types/histogram/definition.js +49 -0
- package/dist/chart-types/histogram/definition.js.map +1 -0
- package/dist/chart-types/histogram/index.d.ts +3 -0
- package/dist/chart-types/histogram/index.d.ts.map +1 -0
- package/dist/chart-types/histogram/index.js +3 -0
- package/dist/chart-types/histogram/index.js.map +1 -0
- package/dist/chart-types/histogram/schema.d.ts +15 -0
- package/dist/chart-types/histogram/schema.d.ts.map +1 -0
- package/dist/chart-types/histogram/schema.js +11 -0
- package/dist/chart-types/histogram/schema.js.map +1 -0
- package/dist/chart-types/index.d.ts +109 -0
- package/dist/chart-types/index.d.ts.map +1 -0
- package/dist/chart-types/index.js +70 -0
- package/dist/chart-types/index.js.map +1 -0
- package/dist/chart-types/line-chart/definition.d.ts +4 -0
- package/dist/chart-types/line-chart/definition.d.ts.map +1 -0
- package/dist/chart-types/line-chart/definition.js +46 -0
- package/dist/chart-types/line-chart/definition.js.map +1 -0
- package/dist/chart-types/line-chart/index.d.ts +3 -0
- package/dist/chart-types/line-chart/index.d.ts.map +1 -0
- package/dist/chart-types/line-chart/index.js +3 -0
- package/dist/chart-types/line-chart/index.js.map +1 -0
- package/dist/chart-types/line-chart/schema.d.ts +17 -0
- package/dist/chart-types/line-chart/schema.d.ts.map +1 -0
- package/dist/chart-types/line-chart/schema.js +12 -0
- package/dist/chart-types/line-chart/schema.js.map +1 -0
- package/dist/chart-types/registry.d.ts +5 -0
- package/dist/chart-types/registry.d.ts.map +1 -0
- package/dist/chart-types/registry.js +28 -0
- package/dist/chart-types/registry.js.map +1 -0
- package/dist/dashboard/DashboardPanelErrorBoundary.d.ts +17 -0
- package/dist/dashboard/DashboardPanelErrorBoundary.d.ts.map +1 -0
- package/dist/dashboard/DashboardPanelErrorBoundary.js +21 -0
- package/dist/dashboard/DashboardPanelErrorBoundary.js.map +1 -0
- package/dist/dashboard/MosaicDashboard.d.ts +18 -0
- package/dist/dashboard/MosaicDashboard.d.ts.map +1 -0
- package/dist/dashboard/MosaicDashboard.js +91 -0
- package/dist/dashboard/MosaicDashboard.js.map +1 -0
- package/dist/dashboard/MosaicDashboardContext.d.ts +12 -0
- package/dist/dashboard/MosaicDashboardContext.d.ts.map +1 -0
- package/dist/dashboard/MosaicDashboardContext.js +10 -0
- package/dist/dashboard/MosaicDashboardContext.js.map +1 -0
- package/dist/dashboard/MosaicDashboardPanel.d.ts +3 -0
- package/dist/dashboard/MosaicDashboardPanel.d.ts.map +1 -0
- package/dist/dashboard/MosaicDashboardPanel.js +26 -0
- package/dist/dashboard/MosaicDashboardPanel.js.map +1 -0
- package/dist/dashboard/MosaicDashboardPanelDragOverlay.d.ts +8 -0
- package/dist/dashboard/MosaicDashboardPanelDragOverlay.d.ts.map +1 -0
- package/dist/dashboard/MosaicDashboardPanelDragOverlay.js +17 -0
- package/dist/dashboard/MosaicDashboardPanelDragOverlay.js.map +1 -0
- package/dist/dashboard/MosaicDashboardPanelHeader.d.ts +13 -0
- package/dist/dashboard/MosaicDashboardPanelHeader.d.ts.map +1 -0
- package/dist/dashboard/MosaicDashboardPanelHeader.js +30 -0
- package/dist/dashboard/MosaicDashboardPanelHeader.js.map +1 -0
- package/dist/dashboard/MosaicDashboardPanelLayout.d.ts +10 -0
- package/dist/dashboard/MosaicDashboardPanelLayout.d.ts.map +1 -0
- package/dist/dashboard/MosaicDashboardPanelLayout.js +25 -0
- package/dist/dashboard/MosaicDashboardPanelLayout.js.map +1 -0
- package/dist/dashboard/MosaicDashboardPanels.d.ts +2 -0
- package/dist/dashboard/MosaicDashboardPanels.d.ts.map +1 -0
- package/dist/dashboard/MosaicDashboardPanels.js +52 -0
- package/dist/dashboard/MosaicDashboardPanels.js.map +1 -0
- package/dist/dashboard/MosaicDashboardProfilerPanelRenderer.d.ts +3 -0
- package/dist/dashboard/MosaicDashboardProfilerPanelRenderer.d.ts.map +1 -0
- package/dist/dashboard/MosaicDashboardProfilerPanelRenderer.js +32 -0
- package/dist/dashboard/MosaicDashboardProfilerPanelRenderer.js.map +1 -0
- package/dist/dashboard/MosaicDashboardSlice.d.ts +523 -0
- package/dist/dashboard/MosaicDashboardSlice.d.ts.map +1 -0
- package/dist/dashboard/MosaicDashboardSlice.js +615 -0
- package/dist/dashboard/MosaicDashboardSlice.js.map +1 -0
- package/dist/dashboard/MosaicDashboardToolbar.d.ts +3 -0
- package/dist/dashboard/MosaicDashboardToolbar.d.ts.map +1 -0
- package/dist/dashboard/MosaicDashboardToolbar.js +81 -0
- package/dist/dashboard/MosaicDashboardToolbar.js.map +1 -0
- package/dist/dashboard/MosaicDashboardVgPlotHeaderActions.d.ts +4 -0
- package/dist/dashboard/MosaicDashboardVgPlotHeaderActions.d.ts.map +1 -0
- package/dist/dashboard/MosaicDashboardVgPlotHeaderActions.js +29 -0
- package/dist/dashboard/MosaicDashboardVgPlotHeaderActions.js.map +1 -0
- package/dist/dashboard/MosaicDashboardVgPlotPanelRenderer.d.ts +3 -0
- package/dist/dashboard/MosaicDashboardVgPlotPanelRenderer.d.ts.map +1 -0
- package/dist/dashboard/MosaicDashboardVgPlotPanelRenderer.js +68 -0
- package/dist/dashboard/MosaicDashboardVgPlotPanelRenderer.js.map +1 -0
- package/dist/dashboard/VgPlotSpecPopoverEditor.d.ts +8 -0
- package/dist/dashboard/VgPlotSpecPopoverEditor.d.ts.map +1 -0
- package/dist/dashboard/VgPlotSpecPopoverEditor.js +40 -0
- package/dist/dashboard/VgPlotSpecPopoverEditor.js.map +1 -0
- package/dist/dashboard/chart-settings/ChartSettings.d.ts +39 -0
- package/dist/dashboard/chart-settings/ChartSettings.d.ts.map +1 -0
- package/dist/dashboard/chart-settings/ChartSettings.js +90 -0
- package/dist/dashboard/chart-settings/ChartSettings.js.map +1 -0
- package/dist/dashboard/chart-settings/ChartSettingsContext.d.ts +20 -0
- package/dist/dashboard/chart-settings/ChartSettingsContext.d.ts.map +1 -0
- package/dist/dashboard/chart-settings/ChartSettingsContext.js +14 -0
- package/dist/dashboard/chart-settings/ChartSettingsContext.js.map +1 -0
- package/dist/dashboard/chart-settings/ChartSettingsPanel.d.ts +11 -0
- package/dist/dashboard/chart-settings/ChartSettingsPanel.d.ts.map +1 -0
- package/dist/dashboard/chart-settings/ChartSettingsPanel.js +8 -0
- package/dist/dashboard/chart-settings/ChartSettingsPanel.js.map +1 -0
- package/dist/dashboard/chart-settings/ChartTypeSelector.d.ts +11 -0
- package/dist/dashboard/chart-settings/ChartTypeSelector.d.ts.map +1 -0
- package/dist/dashboard/chart-settings/ChartTypeSelector.js +17 -0
- package/dist/dashboard/chart-settings/ChartTypeSelector.js.map +1 -0
- package/dist/dashboard/chart-settings/DynamicChartSettings.d.ts +11 -0
- package/dist/dashboard/chart-settings/DynamicChartSettings.d.ts.map +1 -0
- package/dist/dashboard/chart-settings/DynamicChartSettings.js +19 -0
- package/dist/dashboard/chart-settings/DynamicChartSettings.js.map +1 -0
- package/dist/dashboard/chart-settings/index.d.ts +6 -0
- package/dist/dashboard/chart-settings/index.d.ts.map +1 -0
- package/dist/dashboard/chart-settings/index.js +6 -0
- package/dist/dashboard/chart-settings/index.js.map +1 -0
- package/dist/dashboard/chart-settings/useTableColumns.d.ts +3 -0
- package/dist/dashboard/chart-settings/useTableColumns.d.ts.map +1 -0
- package/dist/dashboard/chart-settings/useTableColumns.js +12 -0
- package/dist/dashboard/chart-settings/useTableColumns.js.map +1 -0
- package/dist/dashboard/defaultPanelRenderers.d.ts +3 -0
- package/dist/dashboard/defaultPanelRenderers.d.ts.map +1 -0
- package/dist/dashboard/defaultPanelRenderers.js +11 -0
- package/dist/dashboard/defaultPanelRenderers.js.map +1 -0
- package/dist/dashboard/generateMosaicChartSpec.d.ts +15 -0
- package/dist/dashboard/generateMosaicChartSpec.d.ts.map +1 -0
- package/dist/dashboard/generateMosaicChartSpec.js +30 -0
- package/dist/dashboard/generateMosaicChartSpec.js.map +1 -0
- package/dist/editor/MosaicChartContainer.d.ts +51 -0
- package/dist/editor/MosaicChartContainer.d.ts.map +1 -0
- package/dist/editor/MosaicChartContainer.js +39 -0
- package/dist/editor/MosaicChartContainer.js.map +1 -0
- package/dist/editor/MosaicChartDisplay.d.ts +18 -0
- package/dist/editor/MosaicChartDisplay.d.ts.map +1 -0
- package/dist/editor/MosaicChartDisplay.js +26 -0
- package/dist/editor/MosaicChartDisplay.js.map +1 -0
- package/dist/editor/MosaicChartEditorActions.d.ts +20 -0
- package/dist/editor/MosaicChartEditorActions.d.ts.map +1 -0
- package/dist/editor/MosaicChartEditorActions.js +18 -0
- package/dist/editor/MosaicChartEditorActions.js.map +1 -0
- package/dist/editor/MosaicCodeMirrorEditor.d.ts +15 -0
- package/dist/editor/MosaicCodeMirrorEditor.d.ts.map +1 -0
- package/dist/editor/MosaicCodeMirrorEditor.js +26 -0
- package/dist/editor/MosaicCodeMirrorEditor.js.map +1 -0
- package/dist/editor/MosaicEditorContext.d.ts +8 -0
- package/dist/editor/MosaicEditorContext.d.ts.map +1 -0
- package/dist/editor/MosaicEditorContext.js +14 -0
- package/dist/editor/MosaicEditorContext.js.map +1 -0
- package/dist/editor/MosaicSpecEditorPanel.d.ts +20 -0
- package/dist/editor/MosaicSpecEditorPanel.d.ts.map +1 -0
- package/dist/editor/MosaicSpecEditorPanel.js +25 -0
- package/dist/editor/MosaicSpecEditorPanel.js.map +1 -0
- package/dist/editor/mosaicSchema.d.ts +20 -0
- package/dist/editor/mosaicSchema.d.ts.map +1 -0
- package/dist/editor/mosaicSchema.js +57 -0
- package/dist/editor/mosaicSchema.js.map +1 -0
- package/dist/editor/types.d.ts +72 -0
- package/dist/editor/types.d.ts.map +1 -0
- package/dist/editor/types.js +2 -0
- package/dist/editor/types.js.map +1 -0
- package/dist/editor/useMosaicChartEditor.d.ts +9 -0
- package/dist/editor/useMosaicChartEditor.d.ts.map +1 -0
- package/dist/editor/useMosaicChartEditor.js +199 -0
- package/dist/editor/useMosaicChartEditor.js.map +1 -0
- package/dist/index.d.ts +53 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +37 -1
- package/dist/index.js.map +1 -1
- package/dist/profiler/MosaicProfiler.d.ts +32 -0
- package/dist/profiler/MosaicProfiler.d.ts.map +1 -0
- package/dist/profiler/MosaicProfiler.js +57 -0
- package/dist/profiler/MosaicProfiler.js.map +1 -0
- package/dist/profiler/MosaicProfilerHeader.d.ts +7 -0
- package/dist/profiler/MosaicProfilerHeader.d.ts.map +1 -0
- package/dist/profiler/MosaicProfilerHeader.js +196 -0
- package/dist/profiler/MosaicProfilerHeader.js.map +1 -0
- package/dist/profiler/MosaicProfilerRows.d.ts +9 -0
- package/dist/profiler/MosaicProfilerRows.d.ts.map +1 -0
- package/dist/profiler/MosaicProfilerRows.js +65 -0
- package/dist/profiler/MosaicProfilerRows.js.map +1 -0
- package/dist/profiler/MosaicProfilerStatusBar.d.ts +9 -0
- package/dist/profiler/MosaicProfilerStatusBar.d.ts.map +1 -0
- package/dist/profiler/MosaicProfilerStatusBar.js +28 -0
- package/dist/profiler/MosaicProfilerStatusBar.js.map +1 -0
- package/dist/profiler/ProfilerCategoryClient.d.ts +50 -0
- package/dist/profiler/ProfilerCategoryClient.d.ts.map +1 -0
- package/dist/profiler/ProfilerCategoryClient.js +121 -0
- package/dist/profiler/ProfilerCategoryClient.js.map +1 -0
- package/dist/profiler/ProfilerCountClient.d.ts +28 -0
- package/dist/profiler/ProfilerCountClient.d.ts.map +1 -0
- package/dist/profiler/ProfilerCountClient.js +51 -0
- package/dist/profiler/ProfilerCountClient.js.map +1 -0
- package/dist/profiler/ProfilerHistogramClient.d.ts +69 -0
- package/dist/profiler/ProfilerHistogramClient.d.ts.map +1 -0
- package/dist/profiler/ProfilerHistogramClient.js +179 -0
- package/dist/profiler/ProfilerHistogramClient.js.map +1 -0
- package/dist/profiler/ProfilerPageClient.d.ts +37 -0
- package/dist/profiler/ProfilerPageClient.d.ts.map +1 -0
- package/dist/profiler/ProfilerPageClient.js +65 -0
- package/dist/profiler/ProfilerPageClient.js.map +1 -0
- package/dist/profiler/ProfilerUnsupportedSummaryClient.d.ts +24 -0
- package/dist/profiler/ProfilerUnsupportedSummaryClient.d.ts.map +1 -0
- package/dist/profiler/ProfilerUnsupportedSummaryClient.js +51 -0
- package/dist/profiler/ProfilerUnsupportedSummaryClient.js.map +1 -0
- package/dist/profiler/createProfilerStore.d.ts +45 -0
- package/dist/profiler/createProfilerStore.d.ts.map +1 -0
- package/dist/profiler/createProfilerStore.js +120 -0
- package/dist/profiler/createProfilerStore.js.map +1 -0
- package/dist/profiler/layout.d.ts +7 -0
- package/dist/profiler/layout.d.ts.map +1 -0
- package/dist/profiler/layout.js +13 -0
- package/dist/profiler/layout.js.map +1 -0
- package/dist/profiler/profilerController.d.ts +64 -0
- package/dist/profiler/profilerController.d.ts.map +1 -0
- package/dist/profiler/profilerController.js +123 -0
- package/dist/profiler/profilerController.js.map +1 -0
- package/dist/profiler/types.d.ts +86 -0
- package/dist/profiler/types.d.ts.map +1 -0
- package/dist/profiler/types.js +2 -0
- package/dist/profiler/types.js.map +1 -0
- package/dist/profiler/useMosaicProfiler.d.ts +7 -0
- package/dist/profiler/useMosaicProfiler.d.ts.map +1 -0
- package/dist/profiler/useMosaicProfiler.js +339 -0
- package/dist/profiler/useMosaicProfiler.js.map +1 -0
- package/dist/profiler/utils.d.ts +61 -0
- package/dist/profiler/utils.d.ts.map +1 -0
- package/dist/profiler/utils.js +347 -0
- package/dist/profiler/utils.js.map +1 -0
- package/dist/tableInterop.d.ts +30 -0
- package/dist/tableInterop.d.ts.map +1 -0
- package/dist/tableInterop.js +85 -0
- package/dist/tableInterop.js.map +1 -0
- package/dist/useMosaicClient.d.ts +5 -15
- package/dist/useMosaicClient.d.ts.map +1 -1
- package/dist/useMosaicClient.js +22 -6
- package/dist/useMosaicClient.js.map +1 -1
- package/package.json +30 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/chart-types/ecdf/definition.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,yBAAyB,EAAC,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAC,oBAAoB,EAAC,MAAM,qCAAqC,CAAC;AAEzE,MAAM,QAAQ,GAAG,sBAAsB,CAAC;AACxC,MAAM,WAAW,GAAG,iCAAiC,CAAC;AAEtD,MAAM,CAAC,MAAM,aAAa,GAA2C;IACnE,EAAE,EAAE,MAAM;IACV,KAAK,EAAE,MAAM;IACb,WAAW,EAAE,WAAW;IACxB,aAAa,EACX,8EAA8E;IAChF,MAAM,EAAE;QACN;YACE,GAAG,EAAE,OAAO;YACZ,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,GAAG,yBAAyB,CAAC;YACrC,WAAW,EACT,uEAAuE;SAC1E;KACF;IACD,UAAU,EAAE,oBAAoB,CAAC,WAAW,CAAC;IAC7C,UAAU,EAAE,CAAC,SAAS,EAAE,EAAC,KAAK,EAAC,EAAQ,EAAE,CACvC,CAAC;QACC,IAAI,EAAE;YACJ;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,EAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC;gBAC3C,CAAC,EAAE,KAAK;gBACR,CAAC,EAAE,EAAC,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAC;gBACjC,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,GAAG;aACjB;YACD;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,EAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC;gBAC3C,CAAC,EAAE,KAAK;gBACR,CAAC,EAAE,EAAC,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAC;gBACjC,MAAM,EAAE,QAAQ;aACjB;YACD,EAAC,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,QAAQ,EAAC;SACpC;QACD,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,YAAY;QACpB,MAAM,EAAE,GAAG;QACX,KAAK,EAAE,GAAG;QACV,OAAO,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAC;QACnD,MAAM,EAAE,EAAC,KAAK,EAAE,EAAC,MAAM,EAAE,aAAa,EAAC,EAAC;KACzC,CAAS;CACb,CAAC","sourcesContent":["import type {Spec} from '@uwdata/mosaic-spec';\nimport type {ChartTypeDefinition} from '../base-types';\nimport type {EcdfChartSettings} from './schema';\nimport {QUANTITATIVE_COLUMN_TYPES} from '../../chart-builders/constants';\nimport {titleFromDescription} from '../../chart-builders/chartTypeUtils';\n\nconst FG_COLOR = 'var(--color-chart-1)';\nconst DESCRIPTION = 'Create an eCDF chart of a field';\n\nexport const ecdfChartType: ChartTypeDefinition<EcdfChartSettings> = {\n id: 'ecdf',\n label: 'eCDF',\n description: DESCRIPTION,\n aiDescription:\n 'Use for a cumulative distribution curve over one numeric or temporal column.',\n fields: [\n {\n key: 'field',\n label: 'Field',\n required: true,\n types: [...QUANTITATIVE_COLUMN_TYPES],\n description:\n 'Numeric or temporal column used to build the cumulative distribution.',\n },\n ],\n buildTitle: titleFromDescription(DESCRIPTION),\n createSpec: (tableName, {field}): Spec =>\n ({\n plot: [\n {\n mark: 'areaY',\n data: {from: tableName, filterBy: '$brush'},\n x: field,\n y: {sum: field, cumulative: true},\n fill: FG_COLOR,\n fillOpacity: 0.3,\n },\n {\n mark: 'lineY',\n data: {from: tableName, filterBy: '$brush'},\n x: field,\n y: {sum: field, cumulative: true},\n stroke: FG_COLOR,\n },\n {select: 'intervalX', as: '$brush'},\n ],\n xLabel: field,\n yLabel: 'Cumulative',\n height: 250,\n width: 380,\n margins: {left: 50, right: 20, top: 20, bottom: 50},\n params: {brush: {select: 'crossfilter'}},\n }) as Spec,\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chart-types/ecdf/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/chart-types/ecdf/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC","sourcesContent":["export * from './schema';\nexport * from './definition';\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const EcdfChartSettings: z.ZodObject<{
|
|
3
|
+
field: z.ZodOptional<z.ZodString>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export type EcdfChartSettings = z.infer<typeof EcdfChartSettings>;
|
|
6
|
+
export declare const EcdfChartConfig: z.ZodObject<{
|
|
7
|
+
chartType: z.ZodLiteral<"ecdf">;
|
|
8
|
+
settings: z.ZodObject<{
|
|
9
|
+
field: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
vgplot: z.ZodUnknown;
|
|
12
|
+
settingsOpen: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type EcdfChartConfig = z.infer<typeof EcdfChartConfig>;
|
|
15
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/chart-types/ecdf/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,iBAAiB;;iBAE5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,eAAO,MAAM,eAAe;;;;;;;iBAK1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const EcdfChartSettings = z.object({
|
|
3
|
+
field: z.string().optional(),
|
|
4
|
+
});
|
|
5
|
+
export const EcdfChartConfig = z.object({
|
|
6
|
+
chartType: z.literal('ecdf'),
|
|
7
|
+
settings: EcdfChartSettings,
|
|
8
|
+
vgplot: z.unknown(),
|
|
9
|
+
settingsOpen: z.boolean().optional(),
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/chart-types/ecdf/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IAC5B,QAAQ,EAAE,iBAAiB;IAC3B,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC","sourcesContent":["import {z} from 'zod';\n\nexport const EcdfChartSettings = z.object({\n field: z.string().optional(),\n});\n\nexport type EcdfChartSettings = z.infer<typeof EcdfChartSettings>;\n\nexport const EcdfChartConfig = z.object({\n chartType: z.literal('ecdf'),\n settings: EcdfChartSettings,\n vgplot: z.unknown(),\n settingsOpen: z.boolean().optional(),\n});\n\nexport type EcdfChartConfig = z.infer<typeof EcdfChartConfig>;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../src/chart-types/heatmap/definition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,UAAU,CAAC;AAMnD,eAAO,MAAM,gBAAgB,EAAE,mBAAmB,CAAC,oBAAoB,CA8CtE,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { NUMERIC_COLUMN_TYPES } from '../../chart-builders/constants';
|
|
2
|
+
import { titleFromDescription } from '../../chart-builders/chartTypeUtils';
|
|
3
|
+
const DESCRIPTION = 'Create a 2D heatmap of two fields';
|
|
4
|
+
export const heatmapChartType = {
|
|
5
|
+
id: 'heatmap',
|
|
6
|
+
label: 'Heatmap',
|
|
7
|
+
description: DESCRIPTION,
|
|
8
|
+
aiDescription: 'Use for dense relationships between two numeric columns where point overlap would be high.',
|
|
9
|
+
fields: [
|
|
10
|
+
{
|
|
11
|
+
key: 'x',
|
|
12
|
+
label: 'X Field',
|
|
13
|
+
required: true,
|
|
14
|
+
types: [...NUMERIC_COLUMN_TYPES],
|
|
15
|
+
description: 'Numeric column used on the x-axis.',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
key: 'y',
|
|
19
|
+
label: 'Y Field',
|
|
20
|
+
required: true,
|
|
21
|
+
types: [...NUMERIC_COLUMN_TYPES],
|
|
22
|
+
description: 'Numeric column used on the y-axis.',
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
buildTitle: titleFromDescription(DESCRIPTION),
|
|
26
|
+
createSpec: (tableName, { x, y }) => ({
|
|
27
|
+
plot: [
|
|
28
|
+
{
|
|
29
|
+
mark: 'raster',
|
|
30
|
+
data: { from: tableName, filterBy: '$brush' },
|
|
31
|
+
x,
|
|
32
|
+
y,
|
|
33
|
+
fill: 'density',
|
|
34
|
+
bandwidth: 0,
|
|
35
|
+
pixelSize: 3,
|
|
36
|
+
},
|
|
37
|
+
{ select: 'intervalXY', as: '$brush' },
|
|
38
|
+
],
|
|
39
|
+
colorScale: 'sqrt',
|
|
40
|
+
colorScheme: 'ylorrd',
|
|
41
|
+
xLabel: x,
|
|
42
|
+
yLabel: y,
|
|
43
|
+
height: 250,
|
|
44
|
+
width: 380,
|
|
45
|
+
margins: { left: 50, right: 20, top: 20, bottom: 50 },
|
|
46
|
+
params: { brush: { select: 'crossfilter' } },
|
|
47
|
+
}),
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/chart-types/heatmap/definition.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,oBAAoB,EAAC,MAAM,qCAAqC,CAAC;AAEzE,MAAM,WAAW,GAAG,mCAAmC,CAAC;AAExD,MAAM,CAAC,MAAM,gBAAgB,GAA8C;IACzE,EAAE,EAAE,SAAS;IACb,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,WAAW;IACxB,aAAa,EACX,4FAA4F;IAC9F,MAAM,EAAE;QACN;YACE,GAAG,EAAE,GAAG;YACR,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,GAAG,oBAAoB,CAAC;YAChC,WAAW,EAAE,oCAAoC;SAClD;QACD;YACE,GAAG,EAAE,GAAG;YACR,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,GAAG,oBAAoB,CAAC;YAChC,WAAW,EAAE,oCAAoC;SAClD;KACF;IACD,UAAU,EAAE,oBAAoB,CAAC,WAAW,CAAC;IAC7C,UAAU,EAAE,CAAC,SAAS,EAAE,EAAC,CAAC,EAAE,CAAC,EAAC,EAAQ,EAAE,CACtC,CAAC;QACC,IAAI,EAAE;YACJ;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,EAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC;gBAC3C,CAAC;gBACD,CAAC;gBACD,IAAI,EAAE,SAAS;gBACf,SAAS,EAAE,CAAC;gBACZ,SAAS,EAAE,CAAC;aACb;YACD,EAAC,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,QAAQ,EAAC;SACrC;QACD,UAAU,EAAE,MAAM;QAClB,WAAW,EAAE,QAAQ;QACrB,MAAM,EAAE,CAAC;QACT,MAAM,EAAE,CAAC;QACT,MAAM,EAAE,GAAG;QACX,KAAK,EAAE,GAAG;QACV,OAAO,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAC;QACnD,MAAM,EAAE,EAAC,KAAK,EAAE,EAAC,MAAM,EAAE,aAAa,EAAC,EAAC;KACzC,CAAS;CACb,CAAC","sourcesContent":["import type {Spec} from '@uwdata/mosaic-spec';\nimport type {ChartTypeDefinition} from '../base-types';\nimport type {HeatmapChartSettings} from './schema';\nimport {NUMERIC_COLUMN_TYPES} from '../../chart-builders/constants';\nimport {titleFromDescription} from '../../chart-builders/chartTypeUtils';\n\nconst DESCRIPTION = 'Create a 2D heatmap of two fields';\n\nexport const heatmapChartType: ChartTypeDefinition<HeatmapChartSettings> = {\n id: 'heatmap',\n label: 'Heatmap',\n description: DESCRIPTION,\n aiDescription:\n 'Use for dense relationships between two numeric columns where point overlap would be high.',\n fields: [\n {\n key: 'x',\n label: 'X Field',\n required: true,\n types: [...NUMERIC_COLUMN_TYPES],\n description: 'Numeric column used on the x-axis.',\n },\n {\n key: 'y',\n label: 'Y Field',\n required: true,\n types: [...NUMERIC_COLUMN_TYPES],\n description: 'Numeric column used on the y-axis.',\n },\n ],\n buildTitle: titleFromDescription(DESCRIPTION),\n createSpec: (tableName, {x, y}): Spec =>\n ({\n plot: [\n {\n mark: 'raster',\n data: {from: tableName, filterBy: '$brush'},\n x,\n y,\n fill: 'density',\n bandwidth: 0,\n pixelSize: 3,\n },\n {select: 'intervalXY', as: '$brush'},\n ],\n colorScale: 'sqrt',\n colorScheme: 'ylorrd',\n xLabel: x,\n yLabel: y,\n height: 250,\n width: 380,\n margins: {left: 50, right: 20, top: 20, bottom: 50},\n params: {brush: {select: 'crossfilter'}},\n }) as Spec,\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chart-types/heatmap/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/chart-types/heatmap/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC","sourcesContent":["export * from './schema';\nexport * from './definition';\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const HeatmapChartSettings: z.ZodObject<{
|
|
3
|
+
x: z.ZodOptional<z.ZodString>;
|
|
4
|
+
y: z.ZodOptional<z.ZodString>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type HeatmapChartSettings = z.infer<typeof HeatmapChartSettings>;
|
|
7
|
+
export declare const HeatmapChartConfig: z.ZodObject<{
|
|
8
|
+
chartType: z.ZodLiteral<"heatmap">;
|
|
9
|
+
settings: z.ZodObject<{
|
|
10
|
+
x: z.ZodOptional<z.ZodString>;
|
|
11
|
+
y: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
vgplot: z.ZodUnknown;
|
|
14
|
+
settingsOpen: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type HeatmapChartConfig = z.infer<typeof HeatmapChartConfig>;
|
|
17
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/chart-types/heatmap/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,eAAO,MAAM,kBAAkB;;;;;;;;iBAK7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const HeatmapChartSettings = z.object({
|
|
3
|
+
x: z.string().optional(),
|
|
4
|
+
y: z.string().optional(),
|
|
5
|
+
});
|
|
6
|
+
export const HeatmapChartConfig = z.object({
|
|
7
|
+
chartType: z.literal('heatmap'),
|
|
8
|
+
settings: HeatmapChartSettings,
|
|
9
|
+
vgplot: z.unknown(),
|
|
10
|
+
settingsOpen: z.boolean().optional(),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/chart-types/heatmap/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxB,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACzB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;IAC/B,QAAQ,EAAE,oBAAoB;IAC9B,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC","sourcesContent":["import {z} from 'zod';\n\nexport const HeatmapChartSettings = z.object({\n x: z.string().optional(),\n y: z.string().optional(),\n});\n\nexport type HeatmapChartSettings = z.infer<typeof HeatmapChartSettings>;\n\nexport const HeatmapChartConfig = z.object({\n chartType: z.literal('heatmap'),\n settings: HeatmapChartSettings,\n vgplot: z.unknown(),\n settingsOpen: z.boolean().optional(),\n});\n\nexport type HeatmapChartConfig = z.infer<typeof HeatmapChartConfig>;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../src/chart-types/histogram/definition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,UAAU,CAAC;AAQrD,eAAO,MAAM,kBAAkB,EAAE,mBAAmB,CAAC,sBAAsB,CA4C1E,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { QUANTITATIVE_COLUMN_TYPES } from '../../chart-builders/constants';
|
|
2
|
+
import { titleFromDescription } from '../../chart-builders/chartTypeUtils';
|
|
3
|
+
const BG_COLOR = 'var(--color-chart-overlay)';
|
|
4
|
+
const FG_COLOR = 'var(--color-chart-1)';
|
|
5
|
+
const DESCRIPTION = 'Create a histogram of a field';
|
|
6
|
+
export const histogramChartType = {
|
|
7
|
+
id: 'histogram',
|
|
8
|
+
label: 'Histogram',
|
|
9
|
+
description: DESCRIPTION,
|
|
10
|
+
aiDescription: 'Use for the distribution of one numeric or temporal column with count on the y-axis.',
|
|
11
|
+
fields: [
|
|
12
|
+
{
|
|
13
|
+
key: 'field',
|
|
14
|
+
label: 'Field',
|
|
15
|
+
required: true,
|
|
16
|
+
types: [...QUANTITATIVE_COLUMN_TYPES],
|
|
17
|
+
description: 'Numeric or temporal column to bin into histogram buckets.',
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
buildTitle: titleFromDescription(DESCRIPTION),
|
|
21
|
+
createSpec: (tableName, { field }) => ({
|
|
22
|
+
plot: [
|
|
23
|
+
{
|
|
24
|
+
mark: 'rectY',
|
|
25
|
+
data: { from: tableName },
|
|
26
|
+
x: { bin: field, maxbins: 40 },
|
|
27
|
+
y: { count: null },
|
|
28
|
+
fill: BG_COLOR,
|
|
29
|
+
inset: 0.5,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
mark: 'rectY',
|
|
33
|
+
data: { from: tableName, filterBy: '$brush' },
|
|
34
|
+
x: { bin: field, maxbins: 40 },
|
|
35
|
+
y: { count: null },
|
|
36
|
+
fill: FG_COLOR,
|
|
37
|
+
inset: 0.5,
|
|
38
|
+
},
|
|
39
|
+
{ select: 'intervalX', as: '$brush' },
|
|
40
|
+
],
|
|
41
|
+
xLabel: field,
|
|
42
|
+
yLabel: 'Count',
|
|
43
|
+
height: 200,
|
|
44
|
+
width: 380,
|
|
45
|
+
margins: { left: 50, right: 20, top: 20, bottom: 50 },
|
|
46
|
+
params: { brush: { select: 'crossfilter' } },
|
|
47
|
+
}),
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/chart-types/histogram/definition.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,yBAAyB,EAAC,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAC,oBAAoB,EAAC,MAAM,qCAAqC,CAAC;AAEzE,MAAM,QAAQ,GAAG,4BAA4B,CAAC;AAC9C,MAAM,QAAQ,GAAG,sBAAsB,CAAC;AACxC,MAAM,WAAW,GAAG,+BAA+B,CAAC;AAEpD,MAAM,CAAC,MAAM,kBAAkB,GAAgD;IAC7E,EAAE,EAAE,WAAW;IACf,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,WAAW;IACxB,aAAa,EACX,sFAAsF;IACxF,MAAM,EAAE;QACN;YACE,GAAG,EAAE,OAAO;YACZ,KAAK,EAAE,OAAO;YACd,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,GAAG,yBAAyB,CAAC;YACrC,WAAW,EAAE,2DAA2D;SACzE;KACF;IACD,UAAU,EAAE,oBAAoB,CAAC,WAAW,CAAC;IAC7C,UAAU,EAAE,CAAC,SAAS,EAAE,EAAC,KAAK,EAAyB,EAAQ,EAAE,CAC/D,CAAC;QACC,IAAI,EAAE;YACJ;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC;gBACvB,CAAC,EAAE,EAAC,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAC;gBAC5B,CAAC,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC;gBAChB,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,GAAG;aACX;YACD;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,EAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC;gBAC3C,CAAC,EAAE,EAAC,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAC;gBAC5B,CAAC,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC;gBAChB,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,GAAG;aACX;YACD,EAAC,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,QAAQ,EAAC;SACpC;QACD,MAAM,EAAE,KAAK;QACb,MAAM,EAAE,OAAO;QACf,MAAM,EAAE,GAAG;QACX,KAAK,EAAE,GAAG;QACV,OAAO,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAC;QACnD,MAAM,EAAE,EAAC,KAAK,EAAE,EAAC,MAAM,EAAE,aAAa,EAAC,EAAC;KACzC,CAAS;CACb,CAAC","sourcesContent":["import type {Spec} from '@uwdata/mosaic-spec';\nimport type {ChartTypeDefinition} from '../base-types';\nimport type {HistogramChartSettings} from './schema';\nimport {QUANTITATIVE_COLUMN_TYPES} from '../../chart-builders/constants';\nimport {titleFromDescription} from '../../chart-builders/chartTypeUtils';\n\nconst BG_COLOR = 'var(--color-chart-overlay)';\nconst FG_COLOR = 'var(--color-chart-1)';\nconst DESCRIPTION = 'Create a histogram of a field';\n\nexport const histogramChartType: ChartTypeDefinition<HistogramChartSettings> = {\n id: 'histogram',\n label: 'Histogram',\n description: DESCRIPTION,\n aiDescription:\n 'Use for the distribution of one numeric or temporal column with count on the y-axis.',\n fields: [\n {\n key: 'field',\n label: 'Field',\n required: true,\n types: [...QUANTITATIVE_COLUMN_TYPES],\n description: 'Numeric or temporal column to bin into histogram buckets.',\n },\n ],\n buildTitle: titleFromDescription(DESCRIPTION),\n createSpec: (tableName, {field}: HistogramChartSettings): Spec =>\n ({\n plot: [\n {\n mark: 'rectY',\n data: {from: tableName},\n x: {bin: field, maxbins: 40},\n y: {count: null},\n fill: BG_COLOR,\n inset: 0.5,\n },\n {\n mark: 'rectY',\n data: {from: tableName, filterBy: '$brush'},\n x: {bin: field, maxbins: 40},\n y: {count: null},\n fill: FG_COLOR,\n inset: 0.5,\n },\n {select: 'intervalX', as: '$brush'},\n ],\n xLabel: field,\n yLabel: 'Count',\n height: 200,\n width: 380,\n margins: {left: 50, right: 20, top: 20, bottom: 50},\n params: {brush: {select: 'crossfilter'}},\n }) as Spec,\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chart-types/histogram/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/chart-types/histogram/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC","sourcesContent":["export * from './schema';\nexport * from './definition';\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const HistogramChartSettings: z.ZodObject<{
|
|
3
|
+
field: z.ZodOptional<z.ZodString>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export type HistogramChartSettings = z.infer<typeof HistogramChartSettings>;
|
|
6
|
+
export declare const HistogramChartConfig: z.ZodObject<{
|
|
7
|
+
chartType: z.ZodLiteral<"histogram">;
|
|
8
|
+
settings: z.ZodObject<{
|
|
9
|
+
field: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
vgplot: z.ZodUnknown;
|
|
12
|
+
settingsOpen: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type HistogramChartConfig = z.infer<typeof HistogramChartConfig>;
|
|
15
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/chart-types/histogram/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E,eAAO,MAAM,oBAAoB;;;;;;;iBAK/B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const HistogramChartSettings = z.object({
|
|
3
|
+
field: z.string().optional(),
|
|
4
|
+
});
|
|
5
|
+
export const HistogramChartConfig = z.object({
|
|
6
|
+
chartType: z.literal('histogram'),
|
|
7
|
+
settings: HistogramChartSettings,
|
|
8
|
+
vgplot: z.unknown(),
|
|
9
|
+
settingsOpen: z.boolean().optional(),
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/chart-types/histogram/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IACjC,QAAQ,EAAE,sBAAsB;IAChC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC","sourcesContent":["import {z} from 'zod';\n\nexport const HistogramChartSettings = z.object({\n field: z.string().optional(),\n});\n\nexport type HistogramChartSettings = z.infer<typeof HistogramChartSettings>;\n\nexport const HistogramChartConfig = z.object({\n chartType: z.literal('histogram'),\n settings: HistogramChartSettings,\n vgplot: z.unknown(),\n settingsOpen: z.boolean().optional(),\n});\n\nexport type HistogramChartConfig = z.infer<typeof HistogramChartConfig>;\n"]}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export * from './base-types';
|
|
2
|
+
export * from './histogram';
|
|
3
|
+
export * from './line-chart';
|
|
4
|
+
export * from './count-plot';
|
|
5
|
+
export * from './ecdf';
|
|
6
|
+
export * from './heatmap';
|
|
7
|
+
export * from './box-plot';
|
|
8
|
+
export * from './bubble-chart';
|
|
9
|
+
export * from './custom-spec';
|
|
10
|
+
export * from './registry';
|
|
11
|
+
import { z } from 'zod';
|
|
12
|
+
export declare const VgPlotChartConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13
|
+
chartType: z.ZodLiteral<"histogram">;
|
|
14
|
+
settings: z.ZodObject<{
|
|
15
|
+
field: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
vgplot: z.ZodUnknown;
|
|
18
|
+
settingsOpen: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
+
chartType: z.ZodLiteral<"count-plot">;
|
|
21
|
+
settings: z.ZodObject<{
|
|
22
|
+
field: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
vgplot: z.ZodUnknown;
|
|
25
|
+
settingsOpen: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
+
chartType: z.ZodLiteral<"ecdf">;
|
|
28
|
+
settings: z.ZodObject<{
|
|
29
|
+
field: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
vgplot: z.ZodUnknown;
|
|
32
|
+
settingsOpen: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
chartType: z.ZodLiteral<"line-chart">;
|
|
35
|
+
settings: z.ZodObject<{
|
|
36
|
+
x: z.ZodOptional<z.ZodString>;
|
|
37
|
+
y: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
vgplot: z.ZodUnknown;
|
|
40
|
+
settingsOpen: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
chartType: z.ZodLiteral<"bubble-chart">;
|
|
43
|
+
settings: z.ZodObject<{
|
|
44
|
+
x: z.ZodOptional<z.ZodString>;
|
|
45
|
+
y: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
vgplot: z.ZodUnknown;
|
|
48
|
+
settingsOpen: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
chartType: z.ZodLiteral<"heatmap">;
|
|
51
|
+
settings: z.ZodObject<{
|
|
52
|
+
x: z.ZodOptional<z.ZodString>;
|
|
53
|
+
y: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
vgplot: z.ZodUnknown;
|
|
56
|
+
settingsOpen: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
chartType: z.ZodLiteral<"box-plot">;
|
|
59
|
+
settings: z.ZodObject<{
|
|
60
|
+
x: z.ZodOptional<z.ZodString>;
|
|
61
|
+
y: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
vgplot: z.ZodUnknown;
|
|
64
|
+
settingsOpen: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
66
|
+
chartType: z.ZodLiteral<"custom-spec">;
|
|
67
|
+
vgplot: z.ZodUnknown;
|
|
68
|
+
settingsOpen: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
settings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
70
|
+
}, z.core.$strip>], "chartType">;
|
|
71
|
+
export type VgPlotChartConfig = z.infer<typeof VgPlotChartConfig>;
|
|
72
|
+
export type VgPlotChartSettings = VgPlotChartConfig['settings'];
|
|
73
|
+
export declare const mosaicChartTypes: {
|
|
74
|
+
readonly histogram: import("./base-types").ChartTypeDefinition<{
|
|
75
|
+
field?: string | undefined;
|
|
76
|
+
}>;
|
|
77
|
+
readonly countPlot: import("./base-types").ChartTypeDefinition<{
|
|
78
|
+
field?: string | undefined;
|
|
79
|
+
}>;
|
|
80
|
+
readonly lineChart: import("./base-types").ChartTypeDefinition<{
|
|
81
|
+
x?: string | undefined;
|
|
82
|
+
y?: string | undefined;
|
|
83
|
+
}>;
|
|
84
|
+
readonly ecdf: import("./base-types").ChartTypeDefinition<{
|
|
85
|
+
field?: string | undefined;
|
|
86
|
+
}>;
|
|
87
|
+
readonly heatmap: import("./base-types").ChartTypeDefinition<{
|
|
88
|
+
x?: string | undefined;
|
|
89
|
+
y?: string | undefined;
|
|
90
|
+
}>;
|
|
91
|
+
readonly boxPlot: import("./base-types").ChartTypeDefinition<{
|
|
92
|
+
x?: string | undefined;
|
|
93
|
+
y?: string | undefined;
|
|
94
|
+
}>;
|
|
95
|
+
readonly bubbleChart: import("./base-types").ChartTypeDefinition<{
|
|
96
|
+
x?: string | undefined;
|
|
97
|
+
y?: string | undefined;
|
|
98
|
+
}>;
|
|
99
|
+
readonly customSpec: import("./base-types").ChartTypeDefinition<Record<string, unknown>>;
|
|
100
|
+
};
|
|
101
|
+
export declare function createDefaultChartTypes(options?: {
|
|
102
|
+
includeCustomSpec?: boolean;
|
|
103
|
+
}): (import("./base-types").ChartTypeDefinition<{
|
|
104
|
+
field?: string | undefined;
|
|
105
|
+
}> | import("./base-types").ChartTypeDefinition<{
|
|
106
|
+
x?: string | undefined;
|
|
107
|
+
y?: string | undefined;
|
|
108
|
+
}>)[];
|
|
109
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/chart-types/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC;AAG7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAqB3B,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAS5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAClE,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,CAAC,UAAU,CAAC,CAAC;AAGhE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;CASnB,CAAC;AAEX,wBAAgB,uBAAuB,CAAC,OAAO,CAAC,EAAE;IAChD,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;;;;;MAiBA"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// Re-export base types
|
|
2
|
+
export * from './base-types';
|
|
3
|
+
// Re-export all schemas and types
|
|
4
|
+
export * from './histogram';
|
|
5
|
+
export * from './line-chart';
|
|
6
|
+
export * from './count-plot';
|
|
7
|
+
export * from './ecdf';
|
|
8
|
+
export * from './heatmap';
|
|
9
|
+
export * from './box-plot';
|
|
10
|
+
export * from './bubble-chart';
|
|
11
|
+
export * from './custom-spec';
|
|
12
|
+
export * from './registry';
|
|
13
|
+
// Import chart type definitions for legacy exports
|
|
14
|
+
import { histogramChartType } from './histogram';
|
|
15
|
+
import { lineChartChartType } from './line-chart';
|
|
16
|
+
import { countPlotChartType } from './count-plot';
|
|
17
|
+
import { ecdfChartType } from './ecdf';
|
|
18
|
+
import { heatmapChartType } from './heatmap';
|
|
19
|
+
import { boxPlotChartType } from './box-plot';
|
|
20
|
+
import { bubbleChartChartType } from './bubble-chart';
|
|
21
|
+
import { customSpecChartType } from './custom-spec';
|
|
22
|
+
// Import Zod configs for discriminated union
|
|
23
|
+
import { HistogramChartConfig as HistogramChartConfigSchema } from './histogram';
|
|
24
|
+
import { CountPlotChartConfig as CountPlotChartConfigSchema } from './count-plot';
|
|
25
|
+
import { EcdfChartConfig as EcdfChartConfigSchema } from './ecdf';
|
|
26
|
+
import { LineChartConfig as LineChartConfigSchema } from './line-chart';
|
|
27
|
+
import { BubbleChartConfig as BubbleChartConfigSchema } from './bubble-chart';
|
|
28
|
+
import { HeatmapChartConfig as HeatmapChartConfigSchema } from './heatmap';
|
|
29
|
+
import { BoxPlotChartConfig as BoxPlotChartConfigSchema } from './box-plot';
|
|
30
|
+
import { CustomSpecChartConfig as CustomSpecChartConfigSchema } from './custom-spec';
|
|
31
|
+
import { z } from 'zod';
|
|
32
|
+
// Zod schema for VgPlotChartConfig (discriminated union)
|
|
33
|
+
export const VgPlotChartConfig = z.discriminatedUnion('chartType', [
|
|
34
|
+
HistogramChartConfigSchema,
|
|
35
|
+
CountPlotChartConfigSchema,
|
|
36
|
+
EcdfChartConfigSchema,
|
|
37
|
+
LineChartConfigSchema,
|
|
38
|
+
BubbleChartConfigSchema,
|
|
39
|
+
HeatmapChartConfigSchema,
|
|
40
|
+
BoxPlotChartConfigSchema,
|
|
41
|
+
CustomSpecChartConfigSchema,
|
|
42
|
+
]);
|
|
43
|
+
// Legacy compatibility exports
|
|
44
|
+
export const mosaicChartTypes = {
|
|
45
|
+
histogram: histogramChartType,
|
|
46
|
+
countPlot: countPlotChartType,
|
|
47
|
+
lineChart: lineChartChartType,
|
|
48
|
+
ecdf: ecdfChartType,
|
|
49
|
+
heatmap: heatmapChartType,
|
|
50
|
+
boxPlot: boxPlotChartType,
|
|
51
|
+
bubbleChart: bubbleChartChartType,
|
|
52
|
+
customSpec: customSpecChartType,
|
|
53
|
+
};
|
|
54
|
+
export function createDefaultChartTypes(options) {
|
|
55
|
+
const includeCustomSpec = options?.includeCustomSpec ?? true;
|
|
56
|
+
const chartTypes = [
|
|
57
|
+
histogramChartType,
|
|
58
|
+
countPlotChartType,
|
|
59
|
+
lineChartChartType,
|
|
60
|
+
ecdfChartType,
|
|
61
|
+
heatmapChartType,
|
|
62
|
+
boxPlotChartType,
|
|
63
|
+
bubbleChartChartType,
|
|
64
|
+
];
|
|
65
|
+
if (includeCustomSpec) {
|
|
66
|
+
chartTypes.push(customSpecChartType);
|
|
67
|
+
}
|
|
68
|
+
return chartTypes;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/chart-types/index.ts"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,cAAc,cAAc,CAAC;AAE7B,kCAAkC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAE3B,mDAAmD;AACnD,OAAO,EAAC,kBAAkB,EAAC,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAC,kBAAkB,EAAC,MAAM,cAAc,CAAC;AAChD,OAAO,EAAC,kBAAkB,EAAC,MAAM,cAAc,CAAC;AAChD,OAAO,EAAC,aAAa,EAAC,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAC,mBAAmB,EAAC,MAAM,eAAe,CAAC;AAElD,6CAA6C;AAC7C,OAAO,EAAC,oBAAoB,IAAI,0BAA0B,EAAC,MAAM,aAAa,CAAC;AAC/E,OAAO,EAAC,oBAAoB,IAAI,0BAA0B,EAAC,MAAM,cAAc,CAAC;AAChF,OAAO,EAAC,eAAe,IAAI,qBAAqB,EAAC,MAAM,QAAQ,CAAC;AAChE,OAAO,EAAC,eAAe,IAAI,qBAAqB,EAAC,MAAM,cAAc,CAAC;AACtE,OAAO,EAAC,iBAAiB,IAAI,uBAAuB,EAAC,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAC,kBAAkB,IAAI,wBAAwB,EAAC,MAAM,WAAW,CAAC;AACzE,OAAO,EAAC,kBAAkB,IAAI,wBAAwB,EAAC,MAAM,YAAY,CAAC;AAC1E,OAAO,EAAC,qBAAqB,IAAI,2BAA2B,EAAC,MAAM,eAAe,CAAC;AACnF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,yDAAyD;AACzD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,kBAAkB,CAAC,WAAW,EAAE;IACjE,0BAA0B;IAC1B,0BAA0B;IAC1B,qBAAqB;IACrB,qBAAqB;IACrB,uBAAuB;IACvB,wBAAwB;IACxB,wBAAwB;IACxB,2BAA2B;CAC5B,CAAC,CAAC;AAKH,+BAA+B;AAC/B,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,SAAS,EAAE,kBAAkB;IAC7B,SAAS,EAAE,kBAAkB;IAC7B,SAAS,EAAE,kBAAkB;IAC7B,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,gBAAgB;IACzB,OAAO,EAAE,gBAAgB;IACzB,WAAW,EAAE,oBAAoB;IACjC,UAAU,EAAE,mBAAmB;CACvB,CAAC;AAEX,MAAM,UAAU,uBAAuB,CAAC,OAEvC;IACC,MAAM,iBAAiB,GAAG,OAAO,EAAE,iBAAiB,IAAI,IAAI,CAAC;IAC7D,MAAM,UAAU,GAAG;QACjB,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,aAAa;QACb,gBAAgB;QAChB,gBAAgB;QAChB,oBAAoB;KACrB,CAAC;IAEF,IAAI,iBAAiB,EAAE,CAAC;QACtB,UAAU,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IACvC,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC","sourcesContent":["// Re-export base types\nexport * from './base-types';\n\n// Re-export all schemas and types\nexport * from './histogram';\nexport * from './line-chart';\nexport * from './count-plot';\nexport * from './ecdf';\nexport * from './heatmap';\nexport * from './box-plot';\nexport * from './bubble-chart';\nexport * from './custom-spec';\nexport * from './registry';\n\n// Import chart type definitions for legacy exports\nimport {histogramChartType} from './histogram';\nimport {lineChartChartType} from './line-chart';\nimport {countPlotChartType} from './count-plot';\nimport {ecdfChartType} from './ecdf';\nimport {heatmapChartType} from './heatmap';\nimport {boxPlotChartType} from './box-plot';\nimport {bubbleChartChartType} from './bubble-chart';\nimport {customSpecChartType} from './custom-spec';\n\n// Import Zod configs for discriminated union\nimport {HistogramChartConfig as HistogramChartConfigSchema} from './histogram';\nimport {CountPlotChartConfig as CountPlotChartConfigSchema} from './count-plot';\nimport {EcdfChartConfig as EcdfChartConfigSchema} from './ecdf';\nimport {LineChartConfig as LineChartConfigSchema} from './line-chart';\nimport {BubbleChartConfig as BubbleChartConfigSchema} from './bubble-chart';\nimport {HeatmapChartConfig as HeatmapChartConfigSchema} from './heatmap';\nimport {BoxPlotChartConfig as BoxPlotChartConfigSchema} from './box-plot';\nimport {CustomSpecChartConfig as CustomSpecChartConfigSchema} from './custom-spec';\nimport {z} from 'zod';\n\n// Zod schema for VgPlotChartConfig (discriminated union)\nexport const VgPlotChartConfig = z.discriminatedUnion('chartType', [\n HistogramChartConfigSchema,\n CountPlotChartConfigSchema,\n EcdfChartConfigSchema,\n LineChartConfigSchema,\n BubbleChartConfigSchema,\n HeatmapChartConfigSchema,\n BoxPlotChartConfigSchema,\n CustomSpecChartConfigSchema,\n]);\n\nexport type VgPlotChartConfig = z.infer<typeof VgPlotChartConfig>;\nexport type VgPlotChartSettings = VgPlotChartConfig['settings'];\n\n// Legacy compatibility exports\nexport const mosaicChartTypes = {\n histogram: histogramChartType,\n countPlot: countPlotChartType,\n lineChart: lineChartChartType,\n ecdf: ecdfChartType,\n heatmap: heatmapChartType,\n boxPlot: boxPlotChartType,\n bubbleChart: bubbleChartChartType,\n customSpec: customSpecChartType,\n} as const;\n\nexport function createDefaultChartTypes(options?: {\n includeCustomSpec?: boolean;\n}) {\n const includeCustomSpec = options?.includeCustomSpec ?? true;\n const chartTypes = [\n histogramChartType,\n countPlotChartType,\n lineChartChartType,\n ecdfChartType,\n heatmapChartType,\n boxPlotChartType,\n bubbleChartChartType,\n ];\n\n if (includeCustomSpec) {\n chartTypes.push(customSpecChartType);\n }\n\n return chartTypes;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../src/chart-types/line-chart/definition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,UAAU,CAAC;AAUhD,eAAO,MAAM,kBAAkB,EAAE,mBAAmB,CAAC,iBAAiB,CA2CrE,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { QUANTITATIVE_COLUMN_TYPES, NUMERIC_COLUMN_TYPES, } from '../../chart-builders/constants';
|
|
2
|
+
import { titleFromDescription } from '../../chart-builders/chartTypeUtils';
|
|
3
|
+
const FG_COLOR = 'var(--color-chart-1)';
|
|
4
|
+
const DESCRIPTION = 'Create a line chart of two fields';
|
|
5
|
+
export const lineChartChartType = {
|
|
6
|
+
id: 'line-chart',
|
|
7
|
+
label: 'Line Chart',
|
|
8
|
+
description: DESCRIPTION,
|
|
9
|
+
aiDescription: 'Use for trends over an ordered x-axis, typically time on x and a numeric measure on y.',
|
|
10
|
+
fields: [
|
|
11
|
+
{
|
|
12
|
+
key: 'x',
|
|
13
|
+
label: 'X Field',
|
|
14
|
+
required: true,
|
|
15
|
+
types: [...QUANTITATIVE_COLUMN_TYPES],
|
|
16
|
+
description: 'Ordered x-axis column, usually time or a quantitative value.',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
key: 'y',
|
|
20
|
+
label: 'Y Field',
|
|
21
|
+
required: true,
|
|
22
|
+
types: [...NUMERIC_COLUMN_TYPES],
|
|
23
|
+
description: 'Numeric measure plotted on the y-axis.',
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
buildTitle: titleFromDescription(DESCRIPTION),
|
|
27
|
+
createSpec: (tableName, { x, y }) => ({
|
|
28
|
+
plot: [
|
|
29
|
+
{
|
|
30
|
+
mark: 'lineY',
|
|
31
|
+
data: { from: tableName, filterBy: '$brush' },
|
|
32
|
+
x,
|
|
33
|
+
y,
|
|
34
|
+
stroke: FG_COLOR,
|
|
35
|
+
},
|
|
36
|
+
{ select: 'intervalX', as: '$brush' },
|
|
37
|
+
],
|
|
38
|
+
xLabel: x,
|
|
39
|
+
yLabel: y,
|
|
40
|
+
height: 250,
|
|
41
|
+
width: 380,
|
|
42
|
+
margins: { left: 50, right: 20, top: 20, bottom: 50 },
|
|
43
|
+
params: { brush: { select: 'crossfilter' } },
|
|
44
|
+
}),
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../src/chart-types/line-chart/definition.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,yBAAyB,EACzB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAC,oBAAoB,EAAC,MAAM,qCAAqC,CAAC;AAEzE,MAAM,QAAQ,GAAG,sBAAsB,CAAC;AACxC,MAAM,WAAW,GAAG,mCAAmC,CAAC;AAExD,MAAM,CAAC,MAAM,kBAAkB,GAA2C;IACxE,EAAE,EAAE,YAAY;IAChB,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,WAAW;IACxB,aAAa,EACX,wFAAwF;IAC1F,MAAM,EAAE;QACN;YACE,GAAG,EAAE,GAAG;YACR,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,GAAG,yBAAyB,CAAC;YACrC,WAAW,EACT,8DAA8D;SACjE;QACD;YACE,GAAG,EAAE,GAAG;YACR,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,CAAC,GAAG,oBAAoB,CAAC;YAChC,WAAW,EAAE,wCAAwC;SACtD;KACF;IACD,UAAU,EAAE,oBAAoB,CAAC,WAAW,CAAC;IAC7C,UAAU,EAAE,CAAC,SAAS,EAAE,EAAC,CAAC,EAAE,CAAC,EAAC,EAAQ,EAAE,CACtC,CAAC;QACC,IAAI,EAAE;YACJ;gBACE,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,EAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC;gBAC3C,CAAC;gBACD,CAAC;gBACD,MAAM,EAAE,QAAQ;aACjB;YACD,EAAC,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,QAAQ,EAAC;SACpC;QACD,MAAM,EAAE,CAAC;QACT,MAAM,EAAE,CAAC;QACT,MAAM,EAAE,GAAG;QACX,KAAK,EAAE,GAAG;QACV,OAAO,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAC;QACnD,MAAM,EAAE,EAAC,KAAK,EAAE,EAAC,MAAM,EAAE,aAAa,EAAC,EAAC;KACzC,CAAS;CACb,CAAC","sourcesContent":["import type {Spec} from '@uwdata/mosaic-spec';\nimport type {ChartTypeDefinition} from '../base-types';\nimport type {LineChartSettings} from './schema';\nimport {\n QUANTITATIVE_COLUMN_TYPES,\n NUMERIC_COLUMN_TYPES,\n} from '../../chart-builders/constants';\nimport {titleFromDescription} from '../../chart-builders/chartTypeUtils';\n\nconst FG_COLOR = 'var(--color-chart-1)';\nconst DESCRIPTION = 'Create a line chart of two fields';\n\nexport const lineChartChartType: ChartTypeDefinition<LineChartSettings> = {\n id: 'line-chart',\n label: 'Line Chart',\n description: DESCRIPTION,\n aiDescription:\n 'Use for trends over an ordered x-axis, typically time on x and a numeric measure on y.',\n fields: [\n {\n key: 'x',\n label: 'X Field',\n required: true,\n types: [...QUANTITATIVE_COLUMN_TYPES],\n description:\n 'Ordered x-axis column, usually time or a quantitative value.',\n },\n {\n key: 'y',\n label: 'Y Field',\n required: true,\n types: [...NUMERIC_COLUMN_TYPES],\n description: 'Numeric measure plotted on the y-axis.',\n },\n ],\n buildTitle: titleFromDescription(DESCRIPTION),\n createSpec: (tableName, {x, y}): Spec =>\n ({\n plot: [\n {\n mark: 'lineY',\n data: {from: tableName, filterBy: '$brush'},\n x,\n y,\n stroke: FG_COLOR,\n },\n {select: 'intervalX', as: '$brush'},\n ],\n xLabel: x,\n yLabel: y,\n height: 250,\n width: 380,\n margins: {left: 50, right: 20, top: 20, bottom: 50},\n params: {brush: {select: 'crossfilter'}},\n }) as Spec,\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chart-types/line-chart/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/chart-types/line-chart/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC","sourcesContent":["export * from './schema';\nexport * from './definition';\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const LineChartSettings: z.ZodObject<{
|
|
3
|
+
x: z.ZodOptional<z.ZodString>;
|
|
4
|
+
y: z.ZodOptional<z.ZodString>;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export type LineChartSettings = z.infer<typeof LineChartSettings>;
|
|
7
|
+
export declare const LineChartConfig: z.ZodObject<{
|
|
8
|
+
chartType: z.ZodLiteral<"line-chart">;
|
|
9
|
+
settings: z.ZodObject<{
|
|
10
|
+
x: z.ZodOptional<z.ZodString>;
|
|
11
|
+
y: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
vgplot: z.ZodUnknown;
|
|
14
|
+
settingsOpen: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type LineChartConfig = z.infer<typeof LineChartConfig>;
|
|
17
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/chart-types/line-chart/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,eAAO,MAAM,eAAe;;;;;;;;iBAK1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|