File tree Expand file tree Collapse file tree
views/dashboard/modules/data-view/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,10 +24,7 @@ export default function useDataChart(data: ResultType) {
2424 ...item ,
2525 index,
2626 } ) )
27- . filter (
28- ( item : SchemaType ) =>
29- ! dateTypes . find ( ( type : string ) => type === item . data_type ) && item . name !== chartForm . selectedYTypes [ 0 ]
30- )
27+ . filter ( ( item : SchemaType ) => item . data_type === 'String' && item . name !== chartForm . selectedYTypes [ 0 ] )
3128 } )
3229
3330 const xOptions = computed ( ( ) => {
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ a-card(v-if="hasChart" :bordered="false")
303303 if (props .defaultChartForm .groupBySelectedTypes ?.length ) {
304304 chartForm .groupBySelectedTypes = props .defaultChartForm .groupBySelectedTypes
305305 } else if (groupByOptions .value .length ) {
306- chartForm .groupBySelectedTypes = [ groupByOptions .value [ 0 ]. name ]
306+ chartForm .groupBySelectedTypes = groupByOptions .value . map (( item ) => item . name )
307307 }
308308 }
309309 })
You can’t perform that action at this time.
0 commit comments