Skip to content

Commit

Permalink
Update CartesianMarkersItem.js
Browse files Browse the repository at this point in the history
Allow `legendNode` props for finer control over legend customization for markers
  • Loading branch information
Bigood authored Sep 20, 2023
1 parent 2671ca4 commit 16ecb26
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ const CartesianMarkersItem = ({
lineStyle,
textStyle,
legend,
legendNode,
legendPosition,
legendOffsetX,
legendOffsetY,
Expand All @@ -191,8 +192,7 @@ const CartesianMarkersItem = ({
y2 = height
}

let legendNode = null
if (legend) {
if (legend && !legendNode) {
const legendProps = computeLabel({
axis,
width,
Expand Down

0 comments on commit 16ecb26

Please sign in to comment.