Module: app/zamestnanec/formular/[formId]/vysledek/toolbar-items/DataVisualization
Type Aliases
ChartType
Ƭ ChartType: typeof ChartTypes
[keyof typeof ChartTypes
]
Defined in
src/web-app/src/app/zamestnanec/formular/[formId]/vysledek/toolbar-items/DataVisualization.tsx:13
Variables
ChartTypes
• Const
ChartTypes: Object
Type declaration
Name | Type |
---|---|
bar | "Sloupcový graf" |
pie | "Koláčový graf" |
Defined in
src/web-app/src/app/zamestnanec/formular/[formId]/vysledek/toolbar-items/DataVisualization.tsx:15
Functions
default
▸ default(root0
): Element
Component for visualizing data.
Parameters
Name | Type | Description |
---|---|---|
root0 | Object | Props. |
root0.chartType | ChartType | Type of chart to use. |
root0.data | { name : string ; value : number }[] | Data to visualize. |
Returns
Element
Throws
- If the chart type is unsupported. Should not happen if the ChartType type is used.
Defined in
src/web-app/src/app/zamestnanec/formular/[formId]/vysledek/toolbar-items/DataVisualization.tsx:27