Skip to content

Commit b7fb08a

Browse files
use ISO date string in tooltip in scatterplot (#13011)
1 parent 68aefcc commit b7fb08a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

app/gui/src/project-view/components/visualizations/ScatterplotVisualization.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ const brush = computed(() => {
508508
])
509509
.on('start brush', (event: d3.D3BrushEvent<unknown>) => {
510510
brushExtent.value = event.selection ?? undefined
511+
createNewFilterNodeEnabled.value = true
511512
})
512513
})
513514
@@ -681,7 +682,7 @@ function formatXPoint(x: Date | number | DateObj) {
681682
case 'Time':
682683
return x.toTimeString()
683684
case 'Date':
684-
return x.toDateString()
685+
return x.toISOString()
685686
default:
686687
return x.toString()
687688
}
@@ -883,17 +884,17 @@ function useScatterplotVizToolbar() {
883884
title: 'Enable Selection',
884885
toggle: selectionEnabled,
885886
},
886-
{
887-
icon: 'show_all',
888-
title: 'Fit All',
889-
onClick: () => zoomToSelected(false),
890-
},
891887
{
892888
icon: 'zoom',
893889
title: 'Zoom to Selected',
894890
disabled: () => brushExtent.value == null,
895891
onClick: zoomToSelected,
896892
},
893+
{
894+
icon: 'refresh',
895+
title: 'Reset scatterplot view',
896+
onClick: () => zoomToSelected(false),
897+
},
897898
{
898899
icon: 'add_to_graph_editor',
899900
title: 'Create component of selected points',

0 commit comments

Comments
 (0)