@@ -128,8 +128,8 @@ sqlpage_chart = (() => {
128128 const categories =
129129 series . length > 0 && typeof series [ 0 ] . data [ 0 ] . x === "string" ;
130130 if ( data . type === "pie" ) {
131- labels = data . points . map ( ( [ name , x , y ] ) => x || name ) ;
132- series = data . points . map ( ( [ name , x , y ] ) => Number . parseFloat ( y ) ) ;
131+ labels = data . points . map ( ( [ name , x , _y ] ) => x || name ) ;
132+ series = data . points . map ( ( [ _name , _x , y ] ) => Number . parseFloat ( y ) ) ;
133133 } else if ( categories && data . type === "bar" && series . length > 1 )
134134 series = align_categories ( series ) ;
135135
@@ -166,8 +166,7 @@ sqlpage_chart = (() => {
166166 : data . type === "pie"
167167 ? ( value , { seriesIndex, w } ) =>
168168 `${ w . config . labels [ seriesIndex ] } : ${ value . toFixed ( ) } %`
169- : ( value , { seriesIndex, w } ) =>
170- value ?. toLocaleString ?. ( ) || value ,
169+ : ( value ) => value ?. toLocaleString ?. ( ) || value ,
171170 } ,
172171 fill : {
173172 type : data . type === "area" ? "gradient" : "solid" ,
@@ -260,7 +259,7 @@ sqlpage_chart = (() => {
260259 c . removeAttribute ( "data-pre-init" ) ;
261260 }
262261
263- function bubbleTooltip ( { series , seriesIndex, dataPointIndex, w } ) {
262+ function bubbleTooltip ( { seriesIndex, dataPointIndex, w } ) {
264263 const { name, data } = w . config . series [ seriesIndex ] ;
265264 const point = data [ dataPointIndex ] ;
266265
0 commit comments