-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
498 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,66 @@ | ||
export { default as AreaChart } from './AreaChart.vue' | ||
|
||
import type { Spacing } from '@unovis/ts' | ||
|
||
type KeyOf<T extends Record<string, any>> = Extract<keyof T, string> | ||
|
||
export interface BaseChartProps<T extends Record<string, any>> { | ||
/** | ||
* 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<T>[] | ||
/** | ||
* Sets the key to map the data to the axis. | ||
*/ | ||
index: KeyOf<T> | ||
/** | ||
* 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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,66 @@ | ||
export { default as BarChart } from './BarChart.vue' | ||
|
||
import type { Spacing } from '@unovis/ts' | ||
|
||
type KeyOf<T extends Record<string, any>> = Extract<keyof T, string> | ||
|
||
export interface BaseChartProps<T extends Record<string, any>> { | ||
/** | ||
* 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<T>[] | ||
/** | ||
* Sets the key to map the data to the axis. | ||
*/ | ||
index: KeyOf<T> | ||
/** | ||
* 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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,39 @@ | ||
export { default as DonutChart } from './DonutChart.vue' | ||
|
||
import type { Spacing } from '@unovis/ts' | ||
|
||
type KeyOf<T extends Record<string, any>> = Extract<keyof T, string> | ||
|
||
export interface BaseChartProps<T extends Record<string, any>> { | ||
/** | ||
* The source data, in which each entry is a dictionary. | ||
*/ | ||
data: T[] | ||
/** | ||
* Sets the key to map the data to the axis. | ||
*/ | ||
index: KeyOf<T> | ||
/** | ||
* 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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,66 @@ | ||
export { default as LineChart } from './LineChart.vue' | ||
|
||
import type { Spacing } from '@unovis/ts' | ||
|
||
type KeyOf<T extends Record<string, any>> = Extract<keyof T, string> | ||
|
||
export interface BaseChartProps<T extends Record<string, any>> { | ||
/** | ||
* 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<T>[] | ||
/** | ||
* Sets the key to map the data to the axis. | ||
*/ | ||
index: KeyOf<T> | ||
/** | ||
* 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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,66 @@ | ||
export { default as AreaChart } from './AreaChart.vue' | ||
|
||
import type { Spacing } from '@unovis/ts' | ||
|
||
type KeyOf<T extends Record<string, any>> = Extract<keyof T, string> | ||
|
||
export interface BaseChartProps<T extends Record<string, any>> { | ||
/** | ||
* 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<T>[] | ||
/** | ||
* Sets the key to map the data to the axis. | ||
*/ | ||
index: KeyOf<T> | ||
/** | ||
* 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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.