@@ -7,11 +7,10 @@ import {get, filter, omitBy, isNil, isEmpty} from 'lodash';
7
7
8
8
import { LO_VIEW , LO_MODE , SHOW_DROPDOWN , SET_LAYOUT_MODE , getLayouInfo , dispatchUpdateLayoutInfo } from '../../core/LayoutCntlr.js' ;
9
9
import { clone } from '../../util/WebUtil.js' ;
10
- import { findGroupByTblId , getTblIdsByGroup , getActiveTableId , getTableInGroup } from '../../tables/TableUtil.js' ;
10
+ import { findGroupByTblId , getTblIdsByGroup , getActiveTableId } from '../../tables/TableUtil.js' ;
11
11
import { TBL_RESULTS_ADDED , TABLE_LOADED , TABLE_REMOVE , TBL_RESULTS_ACTIVE } from '../../tables/TablesCntlr.js' ;
12
- import { CHART_ADD , CHART_REMOVE , getNumCharts , dispatchChartAdd } from '../../charts/ChartsCntlr.js' ;
13
- import { getDefaultXYPlotOptions , DT_XYCOLS } from '../../charts/dataTypes/XYColsCDT.js' ;
14
- import { SCATTER } from '../../charts/ChartUtil.js' ;
12
+ import { CHART_ADD , CHART_REMOVE } from '../../charts/ChartsCntlr.js' ;
13
+
15
14
import ImagePlotCntlr from '../../visualize/ImagePlotCntlr.js' ;
16
15
import { isMetaDataTable , isCatalogTable } from '../../metaConvert/converterUtils.js' ;
17
16
import { META_VIEWER_ID } from '../../visualize/ui/TriViewImageSection.jsx' ;
@@ -145,24 +144,6 @@ function handleNewTable(action, images, showImages, showTables, coverageLockedOn
145
144
146
145
const { tbl_id} = action . payload ;
147
146
148
- // check if a default chart needs to be added
149
- if ( getNumCharts ( tbl_id ) === 0 ) {
150
- // how do I know the default chart should be added?
151
- // add a default chart if the group is main
152
- if ( getTableInGroup ( tbl_id , 'main' ) ) {
153
- // default chart is xy plot of coordinate columns or first two numeric columns
154
- const defaultOptions = getDefaultXYPlotOptions ( tbl_id ) ;
155
- if ( defaultOptions ) {
156
- dispatchChartAdd ( {
157
- chartId : 'xyplot-' + tbl_id ,
158
- chartType : SCATTER ,
159
- groupId : tbl_id ,
160
- chartDataElements : [ { tblId : tbl_id , type : DT_XYCOLS , options : defaultOptions } ]
161
- } ) ;
162
- }
163
- }
164
- }
165
-
166
147
// check for catalog or meta images
167
148
if ( ! showTables ) return [ showImages , images , coverageLockedOn ] ; // ignores this if table is not visible
168
149
0 commit comments