Resolving Domain Axis Rescaling Issue in CombinedDomainXYPlot
In a CombinedDomainXYPlot chart, where multiple subplots share a domain axis, the range axes automatically adjust to data changes. However, the domain axis does not exhibit the same behavior, which can be problematic when hiding or showing series.
Underlying Mechanism
CombinedDomainXYPlot establishes a combined maximum range for the shared domain axis during the getDataRange() computation. This ensures that the axis can be shared among the subplots. Visibility changes for individual series do not affect the domain axis, but changing the dataset triggers an update through the configure() method.
Resolving the Issue
To manually refresh the domain axis scaling:
Alternatively, to achieve automatic updates:
Additional Notes
The above is the detailed content of How to Resolve Domain Axis Rescaling Issues in CombinedDomainXYPlot?. For more information, please follow other related articles on the PHP Chinese website!