Skip to content

Commit 7a6b200

Browse files
committed
Experiment with using canvas rendering (needs hitcanvas for click) and disabling tooltip/highlight spring motion
1 parent af994ce commit 7a6b200

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
})}
3535
padding={{ left: 24, bottom: 48 }}
3636
legend={{ placement: 'bottom-left', classes: { root: 'right-0 overflow-auto scrollbar-none' } }}
37+
_renderContext="canvas"
3738
{...lineChartProps}
3839
{...restProps}
3940
>

frontend/src/lib/components/charts/common.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const tooltipProps = {
2525
root: {
2626
variant: 'none',
2727
class: 'text-small bg-neutral-200 border border-neutral-400 rounded-md shadow-lg'
28+
// motion: false,
2829
},
2930
header: {
3031
class: 'text-neutral-700 bg-neutral-300 px-3 py-1'
@@ -54,6 +55,7 @@ export const lineChartProps = {
5455
props: {
5556
spline: { class: 'stroke-1' },
5657
tooltip: tooltipProps
58+
// highlight: { motion: false }
5759
}
5860
} satisfies NonNullable<ComponentProps<typeof LineChart>>;
5961

0 commit comments

Comments
 (0)