File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ import * as React from 'React' ;
3
+
4
+ enum ChartType {
5
+ doughnut = 'doughnut' ,
6
+ pie = 'pie' ,
7
+ line = 'line' ,
8
+ bar = 'bar' ,
9
+ horizontalBar = 'horizontalBar' ,
10
+ radar = 'radar' ,
11
+ polarArea = 'polarArea'
12
+ }
13
+
14
+ interface ChartComponentProps {
15
+ data :Object ;
16
+ height ? :number ;
17
+ legend ? :Object ;
18
+ onElementsClick ? :Function ;
19
+ options ? :Object ;
20
+ redraw ? :boolean ;
21
+ type ? :ChartType ;
22
+ width ? :number ;
23
+ }
24
+
25
+ export class Doughnut extends React . Component < ChartComponentProps , any > { }
26
+ export class Pie extends React . Component < ChartComponentProps , any > { }
27
+ export class Line extends React . Component < ChartComponentProps , any > { }
28
+ export class Bar extends React . Component < ChartComponentProps , any > { }
29
+ export class HorizontalBar extends React . Component < ChartComponentProps , any > { }
30
+ export class Radar extends React . Component < ChartComponentProps , any > { }
31
+ export class Polar extends React . Component < ChartComponentProps , any > { }
You can’t perform that action at this time.
0 commit comments