Skip to content

Commit

Permalink
fixes #46
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-rodriguez committed Jun 2, 2021
1 parent bfdfe17 commit 126d232
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/LiveChartsCore/Kernel/DataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,14 @@ public virtual DimensionalBounds GetCartesianBounds(
bounds.SecondaryBounds.AppendValue(secondary);
bounds.TertiaryBounds.AppendValue(tertiary);

if (primary >= yMin && primary <= yMax && secondary >= xMin && secondary <= xMax)
if (primary >= yMin && primary <= yMax)
{
bounds.VisiblePrimaryBounds.AppendValue(primary);
bounds.VisibleTertiaryBounds.AppendValue(tertiary);
}

if (secondary >= xMin && secondary <= xMax)
{
bounds.VisibleSecondaryBounds.AppendValue(secondary);
bounds.VisibleTertiaryBounds.AppendValue(tertiary);
}
Expand Down

0 comments on commit 126d232

Please sign in to comment.