From 9d189d489a69411d5ea30b55ff8d365123715369 Mon Sep 17 00:00:00 2001 From: Sam Nolan Date: Thu, 31 Mar 2022 10:19:01 +1100 Subject: [PATCH] Removes the action bubble from vega charts --- packages/components/src/SquiggleChart.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/components/src/SquiggleChart.tsx b/packages/components/src/SquiggleChart.tsx index 47087481..d7e79075 100644 --- a/packages/components/src/SquiggleChart.tsx +++ b/packages/components/src/SquiggleChart.tsx @@ -13,11 +13,11 @@ import * as chartSpecification from "./spec-distributions.json"; import * as percentilesSpec from "./spec-percentiles.json"; let SquiggleVegaChart = createClassFromSpec({ - spec: chartSpecification as Spec, + spec: chartSpecification as Spec }); let SquigglePercentilesChart = createClassFromSpec({ - spec: percentilesSpec as Spec, + spec: percentilesSpec as Spec }); export interface SquiggleChartProps { @@ -74,7 +74,7 @@ export const SquiggleChart: React.FC = (props) => { y: y, })); - return ; + return ; } else if (shape.tag === "Discrete") { let xyShape = shape.value.xyShape; let totalY = xyShape.ys.reduce((a, b) => a + b); @@ -89,7 +89,7 @@ export const SquiggleChart: React.FC = (props) => { y: y, })); - return ; + return ; } else if (shape.tag === "Mixed") { let discreteShape = shape.value.discrete.xyShape; let totalDiscrete = discreteShape.ys.reduce((a, b) => a + b); @@ -156,6 +156,7 @@ export const SquiggleChart: React.FC = (props) => { return ( ); } @@ -195,7 +196,10 @@ export const SquiggleChart: React.FC = (props) => { return null; } }); - return x !== null) }} />; + return x !== null) }} + actions={false} + />; } }); return <>{chartResults};