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
That would create a view where each line that would start on a point with a value higher than 40000 would be green, or red if not.
This is exactly how points handle colouring, but the same logic is not applicable to lines.
EDIT: Currently, calling .color like that will colour the whole line depending on the value of the last value. It should be possible to colour segments of the line. A final example would be something like this:
The text was updated successfully, but these errors were encountered:
What problem does this feature solve?
The end user should be able to see a single line graph with different colours depending on a line segment's starting Y value.
What does the proposed API look like?
Usage example, if we wanted to colour depending on a Y value called "value", pivoted by a "date":
That would create a view where each line that would start on a point with a value higher than 40000 would be green, or red if not.
This is exactly how points handle colouring, but the same logic is not applicable to lines.
EDIT: Currently, calling
.color
like that will colour the whole line depending on the value of the last value. It should be possible to colour segments of the line. A final example would be something like this:The text was updated successfully, but these errors were encountered: