diff --git a/texturefrontend/src/components/ColumnProfile.svelte b/texturefrontend/src/components/ColumnProfile.svelte index 95930d5..ea26145 100644 --- a/texturefrontend/src/components/ColumnProfile.svelte +++ b/texturefrontend/src/components/ColumnProfile.svelte @@ -25,6 +25,7 @@ let active = true; let showSettings = false; + let useLogScale = false; $: showChartForType = displayCol.type === "number" || displayCol.type === "categorical" || @@ -83,6 +84,7 @@ showBackground={$showBackgroundDistMap[displayCol.name]} shouldBin={colSummary?.cardinality == undefined || colSummary.cardinality >= 10} + {useLogScale} /> {:else if displayCol.type === "categorical"} Show background distribution + {#if displayCol.type === "number"} + + {/if} {/if} diff --git a/texturefrontend/src/components/charts/Histogram.svelte b/texturefrontend/src/components/charts/Histogram.svelte index 5e5e045..3eda68a 100644 --- a/texturefrontend/src/components/charts/Histogram.svelte +++ b/texturefrontend/src/components/charts/Histogram.svelte @@ -13,6 +13,7 @@ export let mainDatasetName: string; export let showBackground = true; export let shouldBin = true; + export let useLogScale = false; $: width = $sidebarWidth - 50; let uuid = getUUID(); @@ -79,6 +80,11 @@ vg.margins({ top: 10, right: 15, left: 40 }), ]; + if (useLogScale) { + console.log("using log scale"); + plotDirectives.push(vg.xScale("log")); + } + if (showBackground) { plotDirectives.unshift( vg.rectY(vg.from(table), {