Skip to content

Commit

Permalink
fix issue ChartsOrg#3662
Browse files Browse the repository at this point in the history
  • Loading branch information
Duke-yi committed Sep 27, 2018
1 parent 5087a04 commit 26dfe03
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Source/Charts/Renderers/CandleStickChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ open class CandleStickChartRenderer: LineScatterCandleRadarRenderer
@objc open func drawDataSet(context: CGContext, dataSet: ICandleChartDataSet)
{
guard
let dataProvider = dataProvider,
let chart = dataProvider as? CandleStickChartView
let dataProvider = dataProvider
else { return }

let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)
Expand Down Expand Up @@ -257,7 +256,7 @@ open class CandleStickChartRenderer: LineScatterCandleRadarRenderer
}

let axElement = createAccessibleElement(withIndex: j,
container: chart,
container: dataProvider,
dataSet: dataSet)
{ (element) in
element.accessibilityLabel = "\(doesContainMultipleDataSets ? "\(dataSet.label ?? "Dataset")" : "") " + "\(xPos) - \(accessibilityMovementDescription). low: \(low), high: \(high), opening: \(open), closing: \(close)"
Expand Down

0 comments on commit 26dfe03

Please sign in to comment.