G2 Component for Angular >= 2
Demo
Install
npm install ngx-g2 --save
Usage
Import G2Module
to your Module
;
Your component
Then use it in html
Attributes
Name | Type | Description |
---|---|---|
[data] | Array | chart data |
[titles] | Object | chart titles |
[width] | number | chart width |
[height] | number | chart height |
[plotCfg] | Object | chart config |
[forceFit] | boolean | fit width to parent element |
(configure) | Function | callback to configure chart |