@@ -42,7 +42,7 @@ interface RenderedTooltipContent {
4242
4343interface MatchedItem {
4444 point : Highcharts . Point ;
45- linkedErrorbars : Highcharts . Point [ ] ;
45+ errorRanges : Highcharts . Point [ ] ;
4646}
4747
4848export function ChartTooltip ( {
@@ -159,9 +159,9 @@ function getTooltipContentCartesian(
159159 return {
160160 key : item . point . series . name ,
161161 value : valueFormatter ( itemY ) ,
162- description : item . linkedErrorbars . length ? (
162+ description : item . errorRanges . length ? (
163163 < div >
164- { item . linkedErrorbars . map ( ( errorBarPoint , index ) => (
164+ { item . errorRanges . map ( ( errorBarPoint , index ) => (
165165 < div key = { index } className = { styles [ "error-range" ] } >
166166 < span > { errorBarPoint . series . userOptions . name ? errorBarPoint . series . userOptions . name : "" } </ span >
167167 < span >
@@ -215,7 +215,7 @@ function getTooltipContentPie(
215215 api : ChartAPI ,
216216 { point, renderers = { } } : { point : Highcharts . Point } & { renderers ?: CoreTooltipContent } ,
217217) : RenderedTooltipContent {
218- const tooltipDetails : TooltipSlotProps = { x : point . x , items : [ { point, linkedErrorbars : [ ] } ] } ;
218+ const tooltipDetails : TooltipSlotProps = { x : point . x , items : [ { point, errorRanges : [ ] } ] } ;
219219 return {
220220 header : renderers . header ?.( tooltipDetails ) ?? (
221221 < div className = { styles [ "tooltip-default-header" ] } >
@@ -268,12 +268,12 @@ function findTooltipSeriesItems(
268268 if ( ! matchedSeries . has ( point . series ) ) {
269269 matchedSeries . add ( point . series ) ;
270270 if ( isXThreshold ( point . series ) ) {
271- matchedItems . push ( { point, linkedErrorbars : [ ] } ) ;
271+ matchedItems . push ( { point, errorRanges : [ ] } ) ;
272272 } else {
273273 point . series . data
274274 . filter ( ( d ) => d . x === point . x )
275275 . sort ( ( a , b ) => ( a . y ?? 0 ) - ( b . y ?? 0 ) )
276- . forEach ( ( point ) => matchedItems . push ( { point, linkedErrorbars : [ ] } ) ) ;
276+ . forEach ( ( point ) => matchedItems . push ( { point, errorRanges : [ ] } ) ) ;
277277 }
278278 }
279279 }
@@ -288,7 +288,7 @@ function findTooltipSeriesItems(
288288 . map ( ( item ) => {
289289 const errorRanges = seriesErrors . get ( getSeriesId ( item . point . series ) ) ?? [ ] ;
290290 const sortedErrorRanges = errorRanges . sort ( ( i1 , i2 ) => getSeriesIndex ( i1 . series ) - getSeriesIndex ( i2 . series ) ) ;
291- return { ...item , linkedErrorbars : sortedErrorRanges } ;
291+ return { ...item , errorRanges : sortedErrorRanges } ;
292292 } )
293293 ) ;
294294}
0 commit comments