A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
fix: bar chart x-scale for boolean column preview (#2054)
Akshay Agrawal6e1a1761ed05
diff --git a/frontend/src/components/data-table/chart-spec-model.tsx b/frontend/src/components/data-table/chart-spec-model.tsxindex ecdb031990..113aef7244 100644--- a/frontend/src/components/data-table/chart-spec-model.tsx+++ b/frontend/src/components/data-table/chart-spec-model.tsx@@ -95,7 +95,7 @@ export class ColumnChartSpecModel<T> {aggregate: "count",type: "quantitative",axis: null,- scale: { type: "symlog" },+ scale: { type: "linear" },},tooltip: [{@@ -142,7 +142,7 @@ export class ColumnChartSpecModel<T> {aggregate: "count",type: "quantitative",axis: null,- scale: { type: "symlog" },+ scale: { type: "linear" },},tooltip: [{ field: column, type: "nominal", format: ",d", title: "Value" },@@ -154,7 +154,27 @@ export class ColumnChartSpecModel<T> {},],},- };+ layer: [+ {+ mark: { type: "bar", color: mint.mint11 },+ },+ {+ mark: {+ type: "text",+ align: "left",+ baseline: "middle",+ dx: 3,+ color: slate.slate9,+ },+ encoding: {+ text: {+ aggregate: "count",+ type: "quantitative",+ },+ },+ },+ ],+ } as TopLevelFacetedUnitSpec; // "layer" not in TopLevelFacetedUnitSpeccase "unknown":case "string":return null;