# Function toChartProps

toChartProps(widgetModel): ChartProps

Translates a WidgetModel to the props for rendering a chart.

# Parameters

Parameter Type
widgetModel WidgetModel

# Returns

ChartProps

# Example

<Chart {...widgetModelTranslator.toChartProps(widgetModel)} />

Note: this method is not supported for pivot widgets. Use toPivotTableProps instead for getting props for the <PivotTable> component.