Creating beautiful data visualizations using Pioneer Charts and Angular is both simple and intuitive. The following steps will help get you up and running in no time.
Lets face it, creating rich data visualizations is hard! A lot of work needs to be put in up front to produce clean and compliant markup that reacts to data in meaningful way. Pioneer Charts sets out to solve these problems in a simple and intuitive way through:
npm install --save @pioneer-code/pioneer-charts
Pioneer Charts components are standalone. Import the ones you plan on using directly in your component.
import { PcacLineChart } from '@pioneer-code/pioneer-charts';
@Component({
...
imports: [PcacLineChart],
...
})
export class YourComponent { }@import "@pioneer-code/pioneer-charts/themes/pioneer-charts.css";
Every chart can be used from the keyboard and read by a screen reader, with nothing to set up.
barClicked, sliceClicked or dotClicked emits.ariaLabel, and each bar, slice or point by its key and value, formatted as its axis is — “Chips, Week 3: 125”. Axes and grid lines are left out, as the marks already carry their values. With a custom tooltip, the focused mark is described by the tooltip too, so whatever the template adds is read out.