Skip to content

Commit

Permalink
Merge pull request #3664 from Michael-Du/fix-combinedChartView-candle…
Browse files Browse the repository at this point in the history
…data_bug

fix issue #3662
  • Loading branch information
liuxuan30 authored Oct 11, 2018
2 parents fbec767 + 26dfe03 commit c46db9a
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 c46db9a

Please sign in to comment.