File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
packages/cli/templates/react/igr-ts
doughnut-chart/default/files/src/app/__path__
grid/basic/files/src/app/__path__
pie-chart/default/files/src/app/__path__ Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ const data: any = [
2424export default function $ ( ClassName ) ( ) {
2525 const title = 'Doughnut Chart' ;
2626 const [ chartData , setChartData ] = useState ( [ ] ) ;
27- const legendRef : any = useRef ( ) ;
28- const chartRef : any = useRef ( ) ;
27+ const legendRef : any = useRef ( null ) ;
28+ const chartRef : any = useRef ( null ) ;
2929
3030 useEffect ( ( ) => {
3131 setChartData ( data ) ;
Original file line number Diff line number Diff line change @@ -25,27 +25,27 @@ export default function $(ClassName)() {
2525 < IgrColumn
2626 field = "ProductID"
2727 header = "Product ID"
28- dataType = "Number " >
28+ dataType = "number " >
2929 </ IgrColumn >
3030 < IgrColumn
3131 field = "ProductName"
3232 header = "Product Name"
33- dataType = "String " >
33+ dataType = "string " >
3434 </ IgrColumn >
3535 < IgrColumn
3636 field = "QuantityPerUnit"
3737 header = "Quantity Per Unit"
38- dataType = "String " >
38+ dataType = "string " >
3939 </ IgrColumn >
4040 < IgrColumn
4141 field = "UnitsInStock"
4242 header = "Units In Stock"
43- dataType = "Number " >
43+ dataType = "number " >
4444 </ IgrColumn >
4545 < IgrColumn
4646 field = "OrderDate"
4747 header = "Order Date"
48- dataType = "Date " >
48+ dataType = "date " >
4949 </ IgrColumn >
5050 </ IgrGrid >
5151 </ div >
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ const data: any = [
1919export default function $ ( ClassName ) ( ) {
2020 const title = 'Pie Chart' ;
2121 const [ chartData , setChartData ] = useState ( [ ] ) ;
22- const legendRef : any = useRef ( ) ;
23- const chartRef : any = useRef ( ) ;
22+ const legendRef : any = useRef ( null ) ;
23+ const chartRef : any = useRef ( null ) ;
2424
2525 useEffect ( ( ) => {
2626 setChartData ( data ) ;
You can’t perform that action at this time.
0 commit comments