feat: dashboard set show_symbol bydefault as true (#6193)

This commit is contained in:
ktx-vaidehi
2025-03-13 19:57:55 +05:30
committed by GitHub
parent fde7f66485
commit 2db5a8b041
2 changed files with 4 additions and 3 deletions
@@ -1626,8 +1626,9 @@ export default defineComponent({
}
// by default, set show_symbol as false
if (!dashboardPanelData.data.config.show_symbol) {
dashboardPanelData.data.config.show_symbol = false;
if (dashboardPanelData.data.config.show_symbol === undefined) {
const isNewPanel = !dashboardPanelData.data.id;
dashboardPanelData.data.config.show_symbol = isNewPanel;
}
// by default, set line interpolation as smooth
+1 -1
View File
@@ -66,7 +66,7 @@ const getDefaultDashboardPanelData: any = () => ({
position: null,
rotate: 0,
},
show_symbol: false,
show_symbol: true,
line_interpolation: "smooth",
legend_width: {
value: null,