diff options
author | bobzel <zzzman@gmail.com> | 2024-05-14 23:54:56 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-05-14 23:54:56 -0400 |
commit | 2bd8fb7fa526d8c03bbbf16ad3fe3b7447d2ca41 (patch) | |
tree | cb38112a9f2547512d4db9031f70c363aca498dd | |
parent | 29b70db45b0d5da8cb163ccb062afe4579556fde (diff) |
made text unselectable in pieCharts
-rw-r--r-- | src/client/views/nodes/DataVizBox/components/PieChart.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/DataVizBox/components/PieChart.tsx b/src/client/views/nodes/DataVizBox/components/PieChart.tsx index c82496f1a..ce770d4f1 100644 --- a/src/client/views/nodes/DataVizBox/components/PieChart.tsx +++ b/src/client/views/nodes/DataVizBox/components/PieChart.tsx @@ -357,6 +357,7 @@ export class PieChart extends ObservableReactComponent<PieChartProps> { const heightOffset = (centroid[1] / radius) * Math.abs(centroid[1]); return 'translate(' + (centroid[0] + centroid[0] / (radius * 0.02)) + ',' + (centroid[1] + heightOffset) + ')'; }) + .attr('pointer-events', 'none') .attr('text-anchor', 'middle') .text(d => { let dataPoint; |