Skip to content

Commit

Permalink
fix bug:_yAxis.entries will not be cleaned up in computeAxisValues
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxuan30 committed Jun 18, 2015
1 parent 874181a commit 48d0804
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Charts/Classes/Renderers/ChartYAxisRendererRadarChart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ public class ChartYAxisRendererRadarChart: ChartYAxisRenderer
interval = floor(10 * intervalMagnitude);
}

// clean old values
if (_yAxis.entries.count > 0)
{
_yAxis.entries.removeAll(keepCapacity: false);
}

// if the labels should only show min and max
if (_yAxis.isShowOnlyMinMaxEnabled)
{
Expand Down

0 comments on commit 48d0804

Please sign in to comment.