Skip to content

Commit

Permalink
chart views now use open legend renderer property instead of internal…
Browse files Browse the repository at this point in the history
… one (#3149)
  • Loading branch information
l-lemesev authored and liuxuan30 committed Jan 8, 2018
1 parent cd39b73 commit b2a3719
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Source/Charts/Charts/BarLineChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ open class BarLineChartViewBase: ChartViewBase, BarLineScatterCandleBubbleChartD

if _legend !== nil
{
_legendRenderer?.computeLegend(data: data)
legendRenderer?.computeLegend(data: data)
}
}

Expand Down
2 changes: 1 addition & 1 deletion Source/Charts/Charts/PieChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ open class PieChartView: PieRadarChartViewBase

renderer.drawValues(context: context)

_legendRenderer.renderLegend(context: context)
legendRenderer.renderLegend(context: context)

drawDescription(context: context)

Expand Down
2 changes: 1 addition & 1 deletion Source/Charts/Charts/PieRadarChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ open class PieRadarChartViewBase: ChartViewBase

if let data = _data , _legend !== nil
{
_legendRenderer.computeLegend(data: data)
legendRenderer.computeLegend(data: data)
}

calculateOffsets()
Expand Down
4 changes: 2 additions & 2 deletions Source/Charts/Charts/RadarChartView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ open class RadarChartView: PieRadarChartViewBase
let legend = _legend,
!legend.isLegendCustom
{
_legendRenderer?.computeLegend(data: data)
legendRenderer?.computeLegend(data: data)
}

calculateOffsets()
Expand Down Expand Up @@ -139,7 +139,7 @@ open class RadarChartView: PieRadarChartViewBase

renderer.drawValues(context: context)

_legendRenderer.renderLegend(context: context)
legendRenderer.renderLegend(context: context)

drawDescription(context: context)

Expand Down

0 comments on commit b2a3719

Please sign in to comment.