Skip to content

Commit

Permalink
fix download props to handle strings
Browse files Browse the repository at this point in the history
  • Loading branch information
kwongz committed Jan 14, 2025
1 parent 4c8a120 commit c8aed8f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,14 @@
<Story name="All" let:args>
<Heatmap {...args} {data} x="x" y="y" value="value" />
</Story>
<Story name="disable download" let:args>
<Heatmap
{...args}
{data}
x="x"
y="y"
value="value"
downloadableImage="false"
downloadableData="false"
/>
</Story>
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import getSortedDistinctValues from '@evidence-dev/component-utilities/getSortedDistinctValues';
import getCompletedData from '@evidence-dev/component-utilities/getCompletedData';
import { getThemeStores } from '../../../themes/themes.js';
import { toBoolean } from '../../../utils.js';
const { theme, resolveColorScale } = getThemeStores();
Expand Down Expand Up @@ -84,6 +85,9 @@
export let downloadableData = undefined;
export let downloadableImage = undefined;
$: downloadableData = toBoolean(downloadableData);
$: downloadableImage = toBoolean(downloadableImage);
export let connectGroup = undefined;
export let nullsZero = true; // if nulls or missing records should display as zero or missing values (blank grey squares)
Expand Down

0 comments on commit c8aed8f

Please sign in to comment.