@@ -155,14 +155,12 @@ export function ChartLineRenderer({
155155 < CartesianGrid vertical = { false } stroke = "#272A2E" strokeDasharray = "3 3" />
156156 < XAxis { ...xAxisConfig } />
157157 < YAxis { ...yAxisConfig } />
158- { /* Hide tooltip when legend is shown - legend displays hover data instead */ }
159- { ! showLegend && (
160- < ChartTooltip
161- cursor = { false }
162- content = { < ChartTooltipContent indicator = "line" /> }
163- labelFormatter = { tooltipLabelFormatter }
164- />
165- ) }
158+ { /* When legend is shown below, render tooltip with cursor only (no content popup) */ }
159+ < ChartTooltip
160+ cursor = { { stroke : "rgba(255, 255, 255, 0.1)" , strokeWidth : 1 } }
161+ content = { showLegend ? ( ) => null : < ChartTooltipContent indicator = "line" /> }
162+ labelFormatter = { tooltipLabelFormatter }
163+ />
166164 { /* Note: Legend is now rendered by ChartRoot outside the chart container */ }
167165 { dataKeys . map ( ( key ) => (
168166 < Area
@@ -205,14 +203,12 @@ export function ChartLineRenderer({
205203 < CartesianGrid vertical = { false } stroke = "#272A2E" strokeDasharray = "3 3" />
206204 < XAxis { ...xAxisConfig } />
207205 < YAxis { ...yAxisConfig } />
208- { /* Hide tooltip when legend is shown - legend displays hover data instead */ }
209- { ! showLegend && (
210- < ChartTooltip
211- cursor = { false }
212- content = { < ChartTooltipContent /> }
213- labelFormatter = { tooltipLabelFormatter }
214- />
215- ) }
206+ { /* When legend is shown below, render tooltip with cursor only (no content popup) */ }
207+ < ChartTooltip
208+ cursor = { { stroke : "rgba(255, 255, 255, 0.1)" , strokeWidth : 1 } }
209+ content = { showLegend ? ( ) => null : < ChartTooltipContent /> }
210+ labelFormatter = { tooltipLabelFormatter }
211+ />
216212 { /* Note: Legend is now rendered by ChartRoot outside the chart container */ }
217213 { dataKeys . map ( ( key ) => (
218214 < Line
0 commit comments