File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
frontend/src/app/components/ChartGraph/BasicTableChart Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ class BasicTableChart extends ReactChart {
9090 options . config ,
9191 options . widgetSpecialConfig ,
9292 ) ;
93- this . cachedAntTableOptions = tableOptions ;
93+ this . cachedAntTableOptions = Omit ( tableOptions , [ 'dataSource' ] ) ;
9494 this . cachedDatartConfig = options . config ;
9595 this . cacheContext = context ;
9696 this . adapter ?. updated ( tableOptions , context ) ;
@@ -107,6 +107,15 @@ class BasicTableChart extends ReactChart {
107107
108108 public onResize ( options , context ?) : void {
109109 const columns = this . getDataColumnWidths ( options , context ) ;
110+ const dataConfigs = options . config . datas || [ ] ;
111+ const chartDataSet = transformToDataSet (
112+ options . dataset . rows ,
113+ options . dataset . columns ,
114+ dataConfigs ,
115+ ) ;
116+ this . cachedAntTableOptions . dataSource = chartDataSet ;
117+ console . log ( `options.dataset ---> ` , options . dataset ) ;
118+
110119 const tableOptions = Object . assign (
111120 this . cachedAntTableOptions ,
112121 {
You can’t perform that action at this time.
0 commit comments