Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private renderChart(chart: ChartModel, expandHandler?: () => void) {
const colors = this.props.colors || getTheme(ChartThemeColor.multi, ChartThemeVariant.default).chart.colorScale;
const dataSupplier = getDataSupplier(chart, { values: this.props.labelValues, prettifier: this.props.labelPrettifier }, colors);
let onClick: ((datum: VCDataPoint) => void) | undefined = undefined;
if (this.props.onClick) {
onClick = (datum: VCDataPoint) => this.props.onClick!(chart, datum);
}
return (