We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50d50ee commit a064ee2Copy full SHA for a064ee2
src/lib/components/data-vis/position-chart/PositionChart.svelte
@@ -13,6 +13,8 @@
13
chartHeight = 24,
14
} = $props();
15
16
+ $inspect(value, "value");
17
+
18
const range = Array.from({ length: 10 }, (_, i) => i);
19
20
// the 'chart' is the bar and the marker - its height is a prop and its width is binded to clientWidth
@@ -79,10 +81,15 @@
79
81
{:else}
80
82
{#each value as rowValue, i}
83
<g
- transform="translate({xFunction(rowValue) +
84
+ transform="translate({xFunction(rowValue.data) +
85
markerRadius},{chartHeight / 2})"
86
>
- <circle r={markerRadius} cx="0" cy="0" fill="#CA357C" stroke="white"
87
+ <circle
88
+ r={markerRadius}
89
+ cx="0"
90
+ cy="0"
91
+ fill={rowValue.color}
92
+ stroke="white"
93
></circle>
94
</g>
95
{/each}
0 commit comments