JSPM

@carbon/charts-angular

1.7.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3434
  • Score
    100M100P100Q123868F
  • License Apache-2.0

Carbon charting components for Angular

Package Exports

  • @carbon/charts-angular
  • @carbon/charts-angular/bundles/carbon-charts-angular.umd.js
  • @carbon/charts-angular/fesm5/carbon-charts-angular.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@carbon/charts-angular) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Notice

This version relies on Carbon v11. If you're using Carbon v10, see the legacy demo site

@carbon/charts-angular

Carbon Charting Angular Wrappers

Storybook demos

Storybook demo sources

Angular 13 example

Getting started

Run the following command using npm:

npm install -S @carbon/charts @carbon/charts-angular d3

If you prefer Yarn, use the following command instead:

yarn add @carbon/charts @carbon/charts-angular d3

Note: you'd also need to install carbon-components if you're not using a bundled version of the library.

Step-by-step instructions

Read here

Charting data & options

Although we will definitely introduce new models in the future as we start shipping new components such as maps, Data and options follow the same model in all charts, with minor exceptions and differences in specific components.

For instance in the case of a donut chart you're able to pass in an additional field called center in your options configuring the donut center.

For instructions on using the tabular data format, see here

There are also additional options available depending on the chart type being used, see our demo examples here.

Customizable options (specific to chart type) can be found here