@@ -1858,9 +1858,6 @@ class Chart {
18581858 if ( this . gridConfig ) renderGrid ( g , this . gridConfig , xScale , yScale , w , h , this . theme )
18591859 renderAxes ( g , this . axesList , xScale , yScale , w , h , this . theme , yScaleRight )
18601860
1861- // Reference lines (rendered after grid/axes, before series overlay)
1862- renderReferenceLines ( g , this . referenceLines , xScale , yScale , w , h , this . theme )
1863-
18641861 // Stacked areas
18651862 const areaList = this . seriesList . filter ( s => s . type === "area" )
18661863 const stackedGroups = { }
@@ -1904,6 +1901,9 @@ class Chart {
19041901 renderScatter ( g , data , xScale , scale , this . xKey , s , this . animate , this . element )
19051902 } )
19061903
1904+ // Reference lines (rendered after series so they appear on top)
1905+ renderReferenceLines ( g , this . referenceLines , xScale , yScale , w , h , this . theme )
1906+
19071907 // Data labels
19081908 if ( this . dataLabelConfig ) {
19091909 renderDataLabels ( g , data , xScale , yScale , this . xKey , cartesianSeries , this . dataLabelConfig , this . theme )
0 commit comments