Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updates on how data is selected and axis points are calculated.
Changed the order in which
getDisplayedData
looks for the data.The data used to calculated the Axis points are returned in this order:
This allows us to use a general data set for a complement like
Line
while using a specific data set for another component like Scatter.The example below has the chart's data property defined as the general data used for the
Line
components while theScatter
has its own data property.Without this code changes the
Scatter
would never render since it would use the data from the chart.The
linesData
andscatterData
are completely different and they don't use the samepoints
on any axis. They are just displayed together.Changed how an axis points are calculated.
Updated the
getAxisMapByAxes
send togetDisplayedData
graphicalItems
which are connected with the given axis.This prevents the axis from considering data it is not supposed to display.
The example code is the same used in the previous item.
Without this change:
With this change: