diff --git a/apps/www/src/lib/registry/default/ui/chart-area/AreaChart.vue b/apps/www/src/lib/registry/default/ui/chart-area/AreaChart.vue index 5d3bf2ae0..992260f9d 100644 --- a/apps/www/src/lib/registry/default/ui/chart-area/AreaChart.vue +++ b/apps/www/src/lib/registry/default/ui/chart-area/AreaChart.vue @@ -4,7 +4,8 @@ import { VisArea, VisAxis, VisLine, VisXYContainer } from '@unovis/vue' import { Area, Axis, Line } from '@unovis/ts' import { type Component, computed, ref } from 'vue' import { useMounted } from '@vueuse/core' -import { type BaseChartProps, ChartCrosshair, ChartLegend, defaultColors } from '@/lib/registry/default/ui/chart' +import type { BaseChartProps } from '.' +import { ChartCrosshair, ChartLegend, defaultColors } from '@/lib/registry/default/ui/chart' import { cn } from '@/lib/utils' const props = withDefaults(defineProps & { diff --git a/apps/www/src/lib/registry/default/ui/chart-area/index.ts b/apps/www/src/lib/registry/default/ui/chart-area/index.ts index 81345fd8e..39ee5fde9 100644 --- a/apps/www/src/lib/registry/default/ui/chart-area/index.ts +++ b/apps/www/src/lib/registry/default/ui/chart-area/index.ts @@ -1 +1,66 @@ export { default as AreaChart } from './AreaChart.vue' + +import type { Spacing } from '@unovis/ts' + +type KeyOf> = Extract + +export interface BaseChartProps> { + /** + * The source data, in which each entry is a dictionary. + */ + data: T[] + /** + * Select the categories from your data. Used to populate the legend and toolip. + */ + categories: KeyOf[] + /** + * Sets the key to map the data to the axis. + */ + index: KeyOf + /** + * Change the default colors. + */ + colors?: string[] + /** + * Margin of each the container + */ + margin?: Spacing + /** + * Change the opacity of the non-selected field + * @default 0.2 + */ + filterOpacity?: number + /** + * Function to format X label + */ + xFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string + /** + * Function to format Y label + */ + yFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string + /** + * Controls the visibility of the X axis. + * @default true + */ + showXAxis?: boolean + /** + * Controls the visibility of the Y axis. + * @default true + */ + showYAxis?: boolean + /** + * Controls the visibility of tooltip. + * @default true + */ + showTooltip?: boolean + /** + * Controls the visibility of legend. + * @default true + */ + showLegend?: boolean + /** + * Controls the visibility of gridline. + * @default true + */ + showGridLine?: boolean +} diff --git a/apps/www/src/lib/registry/default/ui/chart-bar/BarChart.vue b/apps/www/src/lib/registry/default/ui/chart-bar/BarChart.vue index 5ac16a8cd..d65b6567a 100644 --- a/apps/www/src/lib/registry/default/ui/chart-bar/BarChart.vue +++ b/apps/www/src/lib/registry/default/ui/chart-bar/BarChart.vue @@ -4,7 +4,8 @@ import { VisAxis, VisGroupedBar, VisStackedBar, VisXYContainer } from '@unovis/v import { Axis, GroupedBar, StackedBar } from '@unovis/ts' import { type Component, computed, ref } from 'vue' import { useMounted } from '@vueuse/core' -import { type BaseChartProps, ChartCrosshair, ChartLegend, defaultColors } from '@/lib/registry/default/ui/chart' +import type { BaseChartProps } from '.' +import { ChartCrosshair, ChartLegend, defaultColors } from '@/lib/registry/default/ui/chart' import { cn } from '@/lib/utils' const props = withDefaults(defineProps & { diff --git a/apps/www/src/lib/registry/default/ui/chart-bar/index.ts b/apps/www/src/lib/registry/default/ui/chart-bar/index.ts index 805149a5a..e3107a4d0 100644 --- a/apps/www/src/lib/registry/default/ui/chart-bar/index.ts +++ b/apps/www/src/lib/registry/default/ui/chart-bar/index.ts @@ -1 +1,66 @@ export { default as BarChart } from './BarChart.vue' + +import type { Spacing } from '@unovis/ts' + +type KeyOf> = Extract + +export interface BaseChartProps> { + /** + * The source data, in which each entry is a dictionary. + */ + data: T[] + /** + * Select the categories from your data. Used to populate the legend and toolip. + */ + categories: KeyOf[] + /** + * Sets the key to map the data to the axis. + */ + index: KeyOf + /** + * Change the default colors. + */ + colors?: string[] + /** + * Margin of each the container + */ + margin?: Spacing + /** + * Change the opacity of the non-selected field + * @default 0.2 + */ + filterOpacity?: number + /** + * Function to format X label + */ + xFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string + /** + * Function to format Y label + */ + yFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string + /** + * Controls the visibility of the X axis. + * @default true + */ + showXAxis?: boolean + /** + * Controls the visibility of the Y axis. + * @default true + */ + showYAxis?: boolean + /** + * Controls the visibility of tooltip. + * @default true + */ + showTooltip?: boolean + /** + * Controls the visibility of legend. + * @default true + */ + showLegend?: boolean + /** + * Controls the visibility of gridline. + * @default true + */ + showGridLine?: boolean +} diff --git a/apps/www/src/lib/registry/default/ui/chart-donut/DonutChart.vue b/apps/www/src/lib/registry/default/ui/chart-donut/DonutChart.vue index 9ab5f652a..a87863a02 100644 --- a/apps/www/src/lib/registry/default/ui/chart-donut/DonutChart.vue +++ b/apps/www/src/lib/registry/default/ui/chart-donut/DonutChart.vue @@ -3,7 +3,8 @@ import { VisDonut, VisSingleContainer } from '@unovis/vue' import { Donut } from '@unovis/ts' import { type Component, computed, ref } from 'vue' import { useMounted } from '@vueuse/core' -import { type BaseChartProps, ChartSingleTooltip, defaultColors } from '@/lib/registry/default/ui/chart' +import type { BaseChartProps } from '.' +import { ChartSingleTooltip, defaultColors } from '@/lib/registry/default/ui/chart' import { cn } from '@/lib/utils' const props = withDefaults(defineProps, 'data' | 'colors' | 'index' | 'margin' | 'showLegend' | 'showTooltip' | 'filterOpacity'> & { diff --git a/apps/www/src/lib/registry/default/ui/chart-donut/index.ts b/apps/www/src/lib/registry/default/ui/chart-donut/index.ts index b42413a0e..9111a1f23 100644 --- a/apps/www/src/lib/registry/default/ui/chart-donut/index.ts +++ b/apps/www/src/lib/registry/default/ui/chart-donut/index.ts @@ -1 +1,39 @@ export { default as DonutChart } from './DonutChart.vue' + +import type { Spacing } from '@unovis/ts' + +type KeyOf> = Extract + +export interface BaseChartProps> { + /** + * The source data, in which each entry is a dictionary. + */ + data: T[] + /** + * Sets the key to map the data to the axis. + */ + index: KeyOf + /** + * Change the default colors. + */ + colors?: string[] + /** + * Margin of each the container + */ + margin?: Spacing + /** + * Change the opacity of the non-selected field + * @default 0.2 + */ + filterOpacity?: number + /** + * Controls the visibility of tooltip. + * @default true + */ + showTooltip?: boolean + /** + * Controls the visibility of legend. + * @default true + */ + showLegend?: boolean +} diff --git a/apps/www/src/lib/registry/default/ui/chart-line/LineChart.vue b/apps/www/src/lib/registry/default/ui/chart-line/LineChart.vue index 05025f499..82734ab37 100644 --- a/apps/www/src/lib/registry/default/ui/chart-line/LineChart.vue +++ b/apps/www/src/lib/registry/default/ui/chart-line/LineChart.vue @@ -4,7 +4,8 @@ import { VisAxis, VisLine, VisXYContainer } from '@unovis/vue' import { Axis, Line } from '@unovis/ts' import { type Component, computed, ref } from 'vue' import { useMounted } from '@vueuse/core' -import { type BaseChartProps, ChartCrosshair, ChartLegend, defaultColors } from '@/lib/registry/default/ui/chart' +import type { BaseChartProps } from '.' +import { ChartCrosshair, ChartLegend, defaultColors } from '@/lib/registry/default/ui/chart' import { cn } from '@/lib/utils' const props = withDefaults(defineProps & { diff --git a/apps/www/src/lib/registry/default/ui/chart-line/index.ts b/apps/www/src/lib/registry/default/ui/chart-line/index.ts index 5d827c88d..bb0a26f2b 100644 --- a/apps/www/src/lib/registry/default/ui/chart-line/index.ts +++ b/apps/www/src/lib/registry/default/ui/chart-line/index.ts @@ -1 +1,66 @@ export { default as LineChart } from './LineChart.vue' + +import type { Spacing } from '@unovis/ts' + +type KeyOf> = Extract + +export interface BaseChartProps> { + /** + * The source data, in which each entry is a dictionary. + */ + data: T[] + /** + * Select the categories from your data. Used to populate the legend and toolip. + */ + categories: KeyOf[] + /** + * Sets the key to map the data to the axis. + */ + index: KeyOf + /** + * Change the default colors. + */ + colors?: string[] + /** + * Margin of each the container + */ + margin?: Spacing + /** + * Change the opacity of the non-selected field + * @default 0.2 + */ + filterOpacity?: number + /** + * Function to format X label + */ + xFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string + /** + * Function to format Y label + */ + yFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string + /** + * Controls the visibility of the X axis. + * @default true + */ + showXAxis?: boolean + /** + * Controls the visibility of the Y axis. + * @default true + */ + showYAxis?: boolean + /** + * Controls the visibility of tooltip. + * @default true + */ + showTooltip?: boolean + /** + * Controls the visibility of legend. + * @default true + */ + showLegend?: boolean + /** + * Controls the visibility of gridline. + * @default true + */ + showGridLine?: boolean +} diff --git a/apps/www/src/lib/registry/new-york/ui/chart-area/AreaChart.vue b/apps/www/src/lib/registry/new-york/ui/chart-area/AreaChart.vue index 2f45162f4..ea8cb5228 100644 --- a/apps/www/src/lib/registry/new-york/ui/chart-area/AreaChart.vue +++ b/apps/www/src/lib/registry/new-york/ui/chart-area/AreaChart.vue @@ -4,7 +4,8 @@ import { VisArea, VisAxis, VisLine, VisXYContainer } from '@unovis/vue' import { Area, Axis, Line } from '@unovis/ts' import { type Component, computed, ref } from 'vue' import { useMounted } from '@vueuse/core' -import { type BaseChartProps, ChartCrosshair, ChartLegend, defaultColors } from '@/lib/registry/new-york/ui/chart' +import type { BaseChartProps } from '.' +import { ChartCrosshair, ChartLegend, defaultColors } from '@/lib/registry/new-york/ui/chart' import { cn } from '@/lib/utils' const props = withDefaults(defineProps & { diff --git a/apps/www/src/lib/registry/new-york/ui/chart-area/index.ts b/apps/www/src/lib/registry/new-york/ui/chart-area/index.ts index 81345fd8e..39ee5fde9 100644 --- a/apps/www/src/lib/registry/new-york/ui/chart-area/index.ts +++ b/apps/www/src/lib/registry/new-york/ui/chart-area/index.ts @@ -1 +1,66 @@ export { default as AreaChart } from './AreaChart.vue' + +import type { Spacing } from '@unovis/ts' + +type KeyOf> = Extract + +export interface BaseChartProps> { + /** + * The source data, in which each entry is a dictionary. + */ + data: T[] + /** + * Select the categories from your data. Used to populate the legend and toolip. + */ + categories: KeyOf[] + /** + * Sets the key to map the data to the axis. + */ + index: KeyOf + /** + * Change the default colors. + */ + colors?: string[] + /** + * Margin of each the container + */ + margin?: Spacing + /** + * Change the opacity of the non-selected field + * @default 0.2 + */ + filterOpacity?: number + /** + * Function to format X label + */ + xFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string + /** + * Function to format Y label + */ + yFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string + /** + * Controls the visibility of the X axis. + * @default true + */ + showXAxis?: boolean + /** + * Controls the visibility of the Y axis. + * @default true + */ + showYAxis?: boolean + /** + * Controls the visibility of tooltip. + * @default true + */ + showTooltip?: boolean + /** + * Controls the visibility of legend. + * @default true + */ + showLegend?: boolean + /** + * Controls the visibility of gridline. + * @default true + */ + showGridLine?: boolean +} diff --git a/apps/www/src/lib/registry/new-york/ui/chart-bar/BarChart.vue b/apps/www/src/lib/registry/new-york/ui/chart-bar/BarChart.vue index 0556df9a5..9b6991e74 100644 --- a/apps/www/src/lib/registry/new-york/ui/chart-bar/BarChart.vue +++ b/apps/www/src/lib/registry/new-york/ui/chart-bar/BarChart.vue @@ -4,7 +4,8 @@ import { VisAxis, VisGroupedBar, VisStackedBar, VisXYContainer } from '@unovis/v import { Axis, GroupedBar, StackedBar } from '@unovis/ts' import { type Component, computed, ref } from 'vue' import { useMounted } from '@vueuse/core' -import { type BaseChartProps, ChartCrosshair, ChartLegend, defaultColors } from '@/lib/registry/new-york/ui/chart' +import type { BaseChartProps } from '.' +import { ChartCrosshair, ChartLegend, defaultColors } from '@/lib/registry/new-york/ui/chart' import { cn } from '@/lib/utils' const props = withDefaults(defineProps & { @@ -33,7 +34,6 @@ const props = withDefaults(defineProps & { showLegend: true, showGridLine: true, }) - const emits = defineEmits<{ legendItemClick: [d: BulletLegendItemInterface, i: number] }>() diff --git a/apps/www/src/lib/registry/new-york/ui/chart-bar/index.ts b/apps/www/src/lib/registry/new-york/ui/chart-bar/index.ts index 805149a5a..e3107a4d0 100644 --- a/apps/www/src/lib/registry/new-york/ui/chart-bar/index.ts +++ b/apps/www/src/lib/registry/new-york/ui/chart-bar/index.ts @@ -1 +1,66 @@ export { default as BarChart } from './BarChart.vue' + +import type { Spacing } from '@unovis/ts' + +type KeyOf> = Extract + +export interface BaseChartProps> { + /** + * The source data, in which each entry is a dictionary. + */ + data: T[] + /** + * Select the categories from your data. Used to populate the legend and toolip. + */ + categories: KeyOf[] + /** + * Sets the key to map the data to the axis. + */ + index: KeyOf + /** + * Change the default colors. + */ + colors?: string[] + /** + * Margin of each the container + */ + margin?: Spacing + /** + * Change the opacity of the non-selected field + * @default 0.2 + */ + filterOpacity?: number + /** + * Function to format X label + */ + xFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string + /** + * Function to format Y label + */ + yFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string + /** + * Controls the visibility of the X axis. + * @default true + */ + showXAxis?: boolean + /** + * Controls the visibility of the Y axis. + * @default true + */ + showYAxis?: boolean + /** + * Controls the visibility of tooltip. + * @default true + */ + showTooltip?: boolean + /** + * Controls the visibility of legend. + * @default true + */ + showLegend?: boolean + /** + * Controls the visibility of gridline. + * @default true + */ + showGridLine?: boolean +} diff --git a/apps/www/src/lib/registry/new-york/ui/chart-donut/DonutChart.vue b/apps/www/src/lib/registry/new-york/ui/chart-donut/DonutChart.vue index 21f399b54..986d7ead3 100644 --- a/apps/www/src/lib/registry/new-york/ui/chart-donut/DonutChart.vue +++ b/apps/www/src/lib/registry/new-york/ui/chart-donut/DonutChart.vue @@ -3,7 +3,8 @@ import { VisDonut, VisSingleContainer } from '@unovis/vue' import { Donut } from '@unovis/ts' import { type Component, computed, ref } from 'vue' import { useMounted } from '@vueuse/core' -import { type BaseChartProps, ChartSingleTooltip, defaultColors } from '@/lib/registry/new-york/ui/chart' +import type { BaseChartProps } from '.' +import { ChartSingleTooltip, defaultColors } from '@/lib/registry/new-york/ui/chart' import { cn } from '@/lib/utils' const props = withDefaults(defineProps, 'data' | 'colors' | 'index' | 'margin' | 'showLegend' | 'showTooltip' | 'filterOpacity'> & { diff --git a/apps/www/src/lib/registry/new-york/ui/chart-donut/index.ts b/apps/www/src/lib/registry/new-york/ui/chart-donut/index.ts index b42413a0e..9111a1f23 100644 --- a/apps/www/src/lib/registry/new-york/ui/chart-donut/index.ts +++ b/apps/www/src/lib/registry/new-york/ui/chart-donut/index.ts @@ -1 +1,39 @@ export { default as DonutChart } from './DonutChart.vue' + +import type { Spacing } from '@unovis/ts' + +type KeyOf> = Extract + +export interface BaseChartProps> { + /** + * The source data, in which each entry is a dictionary. + */ + data: T[] + /** + * Sets the key to map the data to the axis. + */ + index: KeyOf + /** + * Change the default colors. + */ + colors?: string[] + /** + * Margin of each the container + */ + margin?: Spacing + /** + * Change the opacity of the non-selected field + * @default 0.2 + */ + filterOpacity?: number + /** + * Controls the visibility of tooltip. + * @default true + */ + showTooltip?: boolean + /** + * Controls the visibility of legend. + * @default true + */ + showLegend?: boolean +} diff --git a/apps/www/src/lib/registry/new-york/ui/chart-line/LineChart.vue b/apps/www/src/lib/registry/new-york/ui/chart-line/LineChart.vue index e342fd3c4..8749d0c6e 100644 --- a/apps/www/src/lib/registry/new-york/ui/chart-line/LineChart.vue +++ b/apps/www/src/lib/registry/new-york/ui/chart-line/LineChart.vue @@ -4,7 +4,8 @@ import { VisAxis, VisLine, VisXYContainer } from '@unovis/vue' import { Axis, Line } from '@unovis/ts' import { type Component, computed, ref } from 'vue' import { useMounted } from '@vueuse/core' -import { type BaseChartProps, ChartCrosshair, ChartLegend, defaultColors } from '@/lib/registry/new-york/ui/chart' +import type { BaseChartProps } from '.' +import { ChartCrosshair, ChartLegend, defaultColors } from '@/lib/registry/new-york/ui/chart' import { cn } from '@/lib/utils' const props = withDefaults(defineProps & { diff --git a/apps/www/src/lib/registry/new-york/ui/chart-line/index.ts b/apps/www/src/lib/registry/new-york/ui/chart-line/index.ts index 5d827c88d..bb0a26f2b 100644 --- a/apps/www/src/lib/registry/new-york/ui/chart-line/index.ts +++ b/apps/www/src/lib/registry/new-york/ui/chart-line/index.ts @@ -1 +1,66 @@ export { default as LineChart } from './LineChart.vue' + +import type { Spacing } from '@unovis/ts' + +type KeyOf> = Extract + +export interface BaseChartProps> { + /** + * The source data, in which each entry is a dictionary. + */ + data: T[] + /** + * Select the categories from your data. Used to populate the legend and toolip. + */ + categories: KeyOf[] + /** + * Sets the key to map the data to the axis. + */ + index: KeyOf + /** + * Change the default colors. + */ + colors?: string[] + /** + * Margin of each the container + */ + margin?: Spacing + /** + * Change the opacity of the non-selected field + * @default 0.2 + */ + filterOpacity?: number + /** + * Function to format X label + */ + xFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string + /** + * Function to format Y label + */ + yFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string + /** + * Controls the visibility of the X axis. + * @default true + */ + showXAxis?: boolean + /** + * Controls the visibility of the Y axis. + * @default true + */ + showYAxis?: boolean + /** + * Controls the visibility of tooltip. + * @default true + */ + showTooltip?: boolean + /** + * Controls the visibility of legend. + * @default true + */ + showLegend?: boolean + /** + * Controls the visibility of gridline. + * @default true + */ + showGridLine?: boolean +} diff --git a/apps/www/src/public/registry/styles/default/chart-area.json b/apps/www/src/public/registry/styles/default/chart-area.json index 000bdedab..70754ace7 100644 --- a/apps/www/src/public/registry/styles/default/chart-area.json +++ b/apps/www/src/public/registry/styles/default/chart-area.json @@ -12,11 +12,11 @@ "files": [ { "name": "AreaChart.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", - "content": "export { default as AreaChart } from './AreaChart.vue'\n" + "content": "export { default as AreaChart } from './AreaChart.vue'\n\nimport type { Spacing } from '@unovis/ts'\n\ntype KeyOf> = Extract\n\nexport interface BaseChartProps> {\n /**\n * The source data, in which each entry is a dictionary.\n */\n data: T[]\n /**\n * Select the categories from your data. Used to populate the legend and toolip.\n */\n categories: KeyOf[]\n /**\n * Sets the key to map the data to the axis.\n */\n index: KeyOf\n /**\n * Change the default colors.\n */\n colors?: string[]\n /**\n * Margin of each the container\n */\n margin?: Spacing\n /**\n * Change the opacity of the non-selected field\n * @default 0.2\n */\n filterOpacity?: number\n /**\n * Function to format X label\n */\n xFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string\n /**\n * Function to format Y label\n */\n yFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string\n /**\n * Controls the visibility of the X axis.\n * @default true\n */\n showXAxis?: boolean\n /**\n * Controls the visibility of the Y axis.\n * @default true\n */\n showYAxis?: boolean\n /**\n * Controls the visibility of tooltip.\n * @default true\n */\n showTooltip?: boolean\n /**\n * Controls the visibility of legend.\n * @default true\n */\n showLegend?: boolean\n /**\n * Controls the visibility of gridline.\n * @default true\n */\n showGridLine?: boolean\n}\n" } ], "type": "components:ui" diff --git a/apps/www/src/public/registry/styles/default/chart-bar.json b/apps/www/src/public/registry/styles/default/chart-bar.json index 3c01939a1..dfafcf461 100644 --- a/apps/www/src/public/registry/styles/default/chart-bar.json +++ b/apps/www/src/public/registry/styles/default/chart-bar.json @@ -12,11 +12,11 @@ "files": [ { "name": "BarChart.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", - "content": "export { default as BarChart } from './BarChart.vue'\n" + "content": "export { default as BarChart } from './BarChart.vue'\n\nimport type { Spacing } from '@unovis/ts'\n\ntype KeyOf> = Extract\n\nexport interface BaseChartProps> {\n /**\n * The source data, in which each entry is a dictionary.\n */\n data: T[]\n /**\n * Select the categories from your data. Used to populate the legend and toolip.\n */\n categories: KeyOf[]\n /**\n * Sets the key to map the data to the axis.\n */\n index: KeyOf\n /**\n * Change the default colors.\n */\n colors?: string[]\n /**\n * Margin of each the container\n */\n margin?: Spacing\n /**\n * Change the opacity of the non-selected field\n * @default 0.2\n */\n filterOpacity?: number\n /**\n * Function to format X label\n */\n xFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string\n /**\n * Function to format Y label\n */\n yFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string\n /**\n * Controls the visibility of the X axis.\n * @default true\n */\n showXAxis?: boolean\n /**\n * Controls the visibility of the Y axis.\n * @default true\n */\n showYAxis?: boolean\n /**\n * Controls the visibility of tooltip.\n * @default true\n */\n showTooltip?: boolean\n /**\n * Controls the visibility of legend.\n * @default true\n */\n showLegend?: boolean\n /**\n * Controls the visibility of gridline.\n * @default true\n */\n showGridLine?: boolean\n}\n" } ], "type": "components:ui" diff --git a/apps/www/src/public/registry/styles/default/chart-donut.json b/apps/www/src/public/registry/styles/default/chart-donut.json index bf3ecd0f3..c0fa5cdfc 100644 --- a/apps/www/src/public/registry/styles/default/chart-donut.json +++ b/apps/www/src/public/registry/styles/default/chart-donut.json @@ -12,11 +12,11 @@ "files": [ { "name": "DonutChart.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", - "content": "export { default as DonutChart } from './DonutChart.vue'\n" + "content": "export { default as DonutChart } from './DonutChart.vue'\n\nimport type { Spacing } from '@unovis/ts'\n\ntype KeyOf> = Extract\n\nexport interface BaseChartProps> {\n /**\n * The source data, in which each entry is a dictionary.\n */\n data: T[]\n /**\n * Sets the key to map the data to the axis.\n */\n index: KeyOf\n /**\n * Change the default colors.\n */\n colors?: string[]\n /**\n * Margin of each the container\n */\n margin?: Spacing\n /**\n * Change the opacity of the non-selected field\n * @default 0.2\n */\n filterOpacity?: number\n /**\n * Controls the visibility of tooltip.\n * @default true\n */\n showTooltip?: boolean\n /**\n * Controls the visibility of legend.\n * @default true\n */\n showLegend?: boolean\n}\n" } ], "type": "components:ui" diff --git a/apps/www/src/public/registry/styles/default/chart-line.json b/apps/www/src/public/registry/styles/default/chart-line.json index 2b08ea7fc..a4e30ada0 100644 --- a/apps/www/src/public/registry/styles/default/chart-line.json +++ b/apps/www/src/public/registry/styles/default/chart-line.json @@ -12,11 +12,11 @@ "files": [ { "name": "LineChart.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", - "content": "export { default as LineChart } from './LineChart.vue'\n" + "content": "export { default as LineChart } from './LineChart.vue'\n\nimport type { Spacing } from '@unovis/ts'\n\ntype KeyOf> = Extract\n\nexport interface BaseChartProps> {\n /**\n * The source data, in which each entry is a dictionary.\n */\n data: T[]\n /**\n * Select the categories from your data. Used to populate the legend and toolip.\n */\n categories: KeyOf[]\n /**\n * Sets the key to map the data to the axis.\n */\n index: KeyOf\n /**\n * Change the default colors.\n */\n colors?: string[]\n /**\n * Margin of each the container\n */\n margin?: Spacing\n /**\n * Change the opacity of the non-selected field\n * @default 0.2\n */\n filterOpacity?: number\n /**\n * Function to format X label\n */\n xFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string\n /**\n * Function to format Y label\n */\n yFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string\n /**\n * Controls the visibility of the X axis.\n * @default true\n */\n showXAxis?: boolean\n /**\n * Controls the visibility of the Y axis.\n * @default true\n */\n showYAxis?: boolean\n /**\n * Controls the visibility of tooltip.\n * @default true\n */\n showTooltip?: boolean\n /**\n * Controls the visibility of legend.\n * @default true\n */\n showLegend?: boolean\n /**\n * Controls the visibility of gridline.\n * @default true\n */\n showGridLine?: boolean\n}\n" } ], "type": "components:ui" diff --git a/apps/www/src/public/registry/styles/new-york/chart-area.json b/apps/www/src/public/registry/styles/new-york/chart-area.json index 90920ca86..1168aa724 100644 --- a/apps/www/src/public/registry/styles/new-york/chart-area.json +++ b/apps/www/src/public/registry/styles/new-york/chart-area.json @@ -12,11 +12,11 @@ "files": [ { "name": "AreaChart.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", - "content": "export { default as AreaChart } from './AreaChart.vue'\n" + "content": "export { default as AreaChart } from './AreaChart.vue'\n\nimport type { Spacing } from '@unovis/ts'\n\ntype KeyOf> = Extract\n\nexport interface BaseChartProps> {\n /**\n * The source data, in which each entry is a dictionary.\n */\n data: T[]\n /**\n * Select the categories from your data. Used to populate the legend and toolip.\n */\n categories: KeyOf[]\n /**\n * Sets the key to map the data to the axis.\n */\n index: KeyOf\n /**\n * Change the default colors.\n */\n colors?: string[]\n /**\n * Margin of each the container\n */\n margin?: Spacing\n /**\n * Change the opacity of the non-selected field\n * @default 0.2\n */\n filterOpacity?: number\n /**\n * Function to format X label\n */\n xFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string\n /**\n * Function to format Y label\n */\n yFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string\n /**\n * Controls the visibility of the X axis.\n * @default true\n */\n showXAxis?: boolean\n /**\n * Controls the visibility of the Y axis.\n * @default true\n */\n showYAxis?: boolean\n /**\n * Controls the visibility of tooltip.\n * @default true\n */\n showTooltip?: boolean\n /**\n * Controls the visibility of legend.\n * @default true\n */\n showLegend?: boolean\n /**\n * Controls the visibility of gridline.\n * @default true\n */\n showGridLine?: boolean\n}\n" } ], "type": "components:ui" diff --git a/apps/www/src/public/registry/styles/new-york/chart-bar.json b/apps/www/src/public/registry/styles/new-york/chart-bar.json index 6c2942478..434a4a655 100644 --- a/apps/www/src/public/registry/styles/new-york/chart-bar.json +++ b/apps/www/src/public/registry/styles/new-york/chart-bar.json @@ -12,11 +12,11 @@ "files": [ { "name": "BarChart.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", - "content": "export { default as BarChart } from './BarChart.vue'\n" + "content": "export { default as BarChart } from './BarChart.vue'\n\nimport type { Spacing } from '@unovis/ts'\n\ntype KeyOf> = Extract\n\nexport interface BaseChartProps> {\n /**\n * The source data, in which each entry is a dictionary.\n */\n data: T[]\n /**\n * Select the categories from your data. Used to populate the legend and toolip.\n */\n categories: KeyOf[]\n /**\n * Sets the key to map the data to the axis.\n */\n index: KeyOf\n /**\n * Change the default colors.\n */\n colors?: string[]\n /**\n * Margin of each the container\n */\n margin?: Spacing\n /**\n * Change the opacity of the non-selected field\n * @default 0.2\n */\n filterOpacity?: number\n /**\n * Function to format X label\n */\n xFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string\n /**\n * Function to format Y label\n */\n yFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string\n /**\n * Controls the visibility of the X axis.\n * @default true\n */\n showXAxis?: boolean\n /**\n * Controls the visibility of the Y axis.\n * @default true\n */\n showYAxis?: boolean\n /**\n * Controls the visibility of tooltip.\n * @default true\n */\n showTooltip?: boolean\n /**\n * Controls the visibility of legend.\n * @default true\n */\n showLegend?: boolean\n /**\n * Controls the visibility of gridline.\n * @default true\n */\n showGridLine?: boolean\n}\n" } ], "type": "components:ui" diff --git a/apps/www/src/public/registry/styles/new-york/chart-donut.json b/apps/www/src/public/registry/styles/new-york/chart-donut.json index 5482628d8..09f3929ca 100644 --- a/apps/www/src/public/registry/styles/new-york/chart-donut.json +++ b/apps/www/src/public/registry/styles/new-york/chart-donut.json @@ -12,11 +12,11 @@ "files": [ { "name": "DonutChart.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", - "content": "export { default as DonutChart } from './DonutChart.vue'\n" + "content": "export { default as DonutChart } from './DonutChart.vue'\n\nimport type { Spacing } from '@unovis/ts'\n\ntype KeyOf> = Extract\n\nexport interface BaseChartProps> {\n /**\n * The source data, in which each entry is a dictionary.\n */\n data: T[]\n /**\n * Sets the key to map the data to the axis.\n */\n index: KeyOf\n /**\n * Change the default colors.\n */\n colors?: string[]\n /**\n * Margin of each the container\n */\n margin?: Spacing\n /**\n * Change the opacity of the non-selected field\n * @default 0.2\n */\n filterOpacity?: number\n /**\n * Controls the visibility of tooltip.\n * @default true\n */\n showTooltip?: boolean\n /**\n * Controls the visibility of legend.\n * @default true\n */\n showLegend?: boolean\n}\n" } ], "type": "components:ui" diff --git a/apps/www/src/public/registry/styles/new-york/chart-line.json b/apps/www/src/public/registry/styles/new-york/chart-line.json index fdc55a8df..b98ca746c 100644 --- a/apps/www/src/public/registry/styles/new-york/chart-line.json +++ b/apps/www/src/public/registry/styles/new-york/chart-line.json @@ -12,11 +12,11 @@ "files": [ { "name": "LineChart.vue", - "content": "\n\n\n" + "content": "\n\n\n" }, { "name": "index.ts", - "content": "export { default as LineChart } from './LineChart.vue'\n" + "content": "export { default as LineChart } from './LineChart.vue'\n\nimport type { Spacing } from '@unovis/ts'\n\ntype KeyOf> = Extract\n\nexport interface BaseChartProps> {\n /**\n * The source data, in which each entry is a dictionary.\n */\n data: T[]\n /**\n * Select the categories from your data. Used to populate the legend and toolip.\n */\n categories: KeyOf[]\n /**\n * Sets the key to map the data to the axis.\n */\n index: KeyOf\n /**\n * Change the default colors.\n */\n colors?: string[]\n /**\n * Margin of each the container\n */\n margin?: Spacing\n /**\n * Change the opacity of the non-selected field\n * @default 0.2\n */\n filterOpacity?: number\n /**\n * Function to format X label\n */\n xFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string\n /**\n * Function to format Y label\n */\n yFormatter?: (tick: number | Date, i: number, ticks: number[] | Date[]) => string\n /**\n * Controls the visibility of the X axis.\n * @default true\n */\n showXAxis?: boolean\n /**\n * Controls the visibility of the Y axis.\n * @default true\n */\n showYAxis?: boolean\n /**\n * Controls the visibility of tooltip.\n * @default true\n */\n showTooltip?: boolean\n /**\n * Controls the visibility of legend.\n * @default true\n */\n showLegend?: boolean\n /**\n * Controls the visibility of gridline.\n * @default true\n */\n showGridLine?: boolean\n}\n" } ], "type": "components:ui"