End result looks something like:
End result looks something like:
Problem 3: Expose the setter/getter to the relevant chart.
Solution: Add two variants of a nested context which exposes getter A / setter B, and getter B / setter A.
Problem 3: Expose the setter/getter to the relevant chart.
Solution: Add two variants of a nested context which exposes getter A / setter B, and getter B / setter A.
Problem 2: Prevent changes in your new context propagating back to the chart component which dispatched the change.
Solution: Track the tooltip position for each chart separately, splitting the context to expose the setter/getter separately.
Problem 2: Prevent changes in your new context propagating back to the chart component which dispatched the change.
Solution: Track the tooltip position for each chart separately, splitting the context to expose the setter/getter separately.