@@ -3,7 +3,7 @@ import style from "@/src/styles/components/projects/projectId/project-overview.m
33import { useEffect , useRef , useState } from "react" ;
44import { changeDataStructure , squashData } from "@/src/util/components/projects/projectId/project-overview/charts-helper" ;
55import { ChartData } from "chart.js" ;
6- import * as d3 from 'd3v4 ' ;
6+ import * as d3 from 'd3 ' ;
77
88export default function LabelDistributionBarChart ( props : BarChartProps ) {
99
@@ -183,11 +183,12 @@ export default function LabelDistributionBarChart(props: BarChartProps) {
183183 . on ( "mouseover" , function ( d ) {
184184 divTooltip . style ( "opacity" , 1 ) ;
185185 } )
186- . on ( "mousemove" , function ( d ) {
187- divTooltip . style ( "left" , d3 . event . pageX + 10 + "px" )
188- divTooltip . style ( "top" , d3 . event . pageY - 25 + "px" )
189- divTooltip . style ( "display" , "inline-block" )
190- divTooltip . style ( "opacity" , "0.9" ) ;
186+ . on ( "mousemove" , function ( event ) {
187+ divTooltip . style ( "left" , ( event . pageX + 10 ) + "px" )
188+ . style ( "top" , ( event . pageY - 25 ) + "px" )
189+ . style ( "display" , "inline-block" )
190+ . style ( "opacity" , "0.9" ) ;
191+
191192 var elements = document . querySelectorAll ( "#horizontal-grouped-bar :hover" ) ;
192193 var l = elements . length - 1 ;
193194
0 commit comments