Skip to content

Commit c7cb682

Browse files
authored
use cursor-crosshair on brushable charts (#454)
## Summary ## Checklist - [ ] Added Unit Tests - [ ] Covered by existing CI - [ ] Integration tested - [ ] Documentation update
1 parent 218428a commit c7cb682

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

frontend/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"clsx": "^2.1.1",
6969
"d3": "^7.9.0",
7070
"dotenv": "^16.4.7",
71-
"layerchart": "^1.0.1",
71+
"layerchart": "^1.0.2",
7272
"lodash": "^4.17.21",
7373
"svelte-inspect-value": "0.3.0",
7474
"svelte-ux": "^1.0.0",

frontend/src/lib/components/charts/FeaturesLineChart.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
hideDelay: 150,
5050
...(typeof restProps.tooltip === 'object' ? restProps.tooltip : null)
5151
}}
52+
props={{
53+
canvas: {
54+
class: 'cursor-crosshair'
55+
}
56+
}}
5257
>
5358
<svelte:fragment slot="aboveMarks" let:xScale let:yScale>
5459
{#if markPoint}

frontend/src/lib/components/charts/PercentileLineChart.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,9 @@
5757
},
5858
restProps
5959
)}
60+
props={{
61+
canvas: {
62+
class: 'cursor-crosshair'
63+
}
64+
}}
6065
/>

0 commit comments

Comments
 (0)