Skip to content

Commit

Permalink
invert color spectrum
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian committed Mar 27, 2024
1 parent fb8c2d1 commit 476f8e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/routes/Brush.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
$: pointsPerRect = Math.round((DATA_MAX - DATA_MIN) / numChunks);
$: colorScale = d3.scaleThreshold(
[1, pointsPerRect / 4, (pointsPerRect / 4) * 2, (pointsPerRect / 4) * 3, pointsPerRect],
['50', '200', '400', '500', '600', '900']
// ['50', '200', '400', '500', '600', '900']
['900', '600', '500', '400', '200', '50']
);
// $: colorScale = d3.scaleQuantize([0, pointsPerRect], ['50', '200', '400', '500', '600', '900']);
Expand Down
5 changes: 3 additions & 2 deletions src/routes/Detail.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
width={x.bandwidth()}
height={y(verseNumber) - y(verseNumber + 1)}
fill="currentColor"
class="hover:text-primary-500"
class="hover:text-secondary-900"
on:click={() => {
console.log(hasVerse);
}}
Expand All @@ -143,14 +143,15 @@
{:else}
<a
href={`${base}/textzeugen/${sigla.label}/${verseNumber}`}
class="hover:text-primary-500"
class="hover:text-secondary-900"
>
<rect
x={x(sigla.label)}
y={y(verseNumber + 1)}
width={x.bandwidth()}
height={y(verseNumber) - y(verseNumber + 1)}
fill="currentColor"
class="hover:text-secondary-900"
/>
</a>
{/if}
Expand Down

0 comments on commit 476f8e1

Please sign in to comment.