You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With that, it's impossible to know which point (x, y, ...) it is, in order to give it the desired color. For example, if I want to do point.y > 10 ? 'red' : 'black', that's not possible with the function's current parameter.
I also suggest to assign point.datafirst so that the callback can use datum.data, xFormatted and yFormatted which include the original values. Else, only the rendered X and Y coordinates are available which may not be of much help.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Only the series is passed to
pointColor
if that property is provided as functionnivo/packages/line/src/hooks.js
Lines 48 to 49 in c361e9b
With that, it's impossible to know which point (x, y, ...) it is, in order to give it the desired color. For example, if I want to do
point.y > 10 ? 'red' : 'black'
, that's not possible with the function's current parameter.Describe the solution you'd like
I guess this should mostly do it:
It's even already the case for
borderColor
.I also suggest to assign
point.data
first so that the callback can usedatum.data
,xFormatted
andyFormatted
which include the original values. Else, only the rendered X and Y coordinates are available which may not be of much help.The text was updated successfully, but these errors were encountered: