How to use the @carbon/charts.BarChart function in @carbon/charts

To help you get started, we’ve selected a few @carbon/charts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github carbon-design-system / carbon-charts / packages / angular / src / bar-chart.component.ts View on Github external
ngAfterViewInit() {
		this.chart = new BarChart(
			this.chartRef.nativeElement,
			{
				data: this.data,
				options: this.options
			}
		);

		Object.assign(this, this.chart);
	}
}
github carbon-design-system / carbon-charts / packages / react / src / bar-chart.js View on Github external
componentDidMount() {
		this.chart = new BC(
			this.chartRef,
			{
				data: this.props.data,
				options: this.props.options
			}
		);
	}

@carbon/charts

Carbon Charts component library

Apache-2.0
Latest version published 2 months ago

Package Health Score

90 / 100
Full package analysis