Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: line chart and barchart more configurations

DarkPhoenix2704a5f3c20126e1
diff --git a/packages/nocodb-sdk/src/lib/dashboard/widgetUtils.ts b/packages/nocodb-sdk/src/lib/dashboard/widgetUtils.ts
index 809a51f22c..9ca424432a 100644
--- a/packages/nocodb-sdk/src/lib/dashboard/widgetUtils.ts
+++ b/packages/nocodb-sdk/src/lib/dashboard/widgetUtils.ts
@@ -265,7 +265,7 @@ const getDefaultChartConfig = (
includeEmptyRecords: false,
},
yAxis: {
- startAtZero: false,
+ startAtZero: true,
fields: [
{
column_id: getDefaultYAxisColumn(columns),
@@ -275,14 +275,6 @@ const getDefaultChartConfig = (
groupBy: null,
},
},
- appearance: {
- orientation: 'vertical' as const,
- showDataLabels: false,
- showLegend: true,
- legendPosition: 'top' as const,
- colorSchema: 'default' as const,
- customColorSchema: [],
- },
permissions: {
allowUserToPrint: false,
allowUsersToViewRecords: false,