Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getTransformer function doesn't work properly when AxisDependency is set to right #2833

Closed
ludovicjamet opened this issue Sep 28, 2017 · 1 comment

Comments

@ludovicjamet
Copy link

Context
Last version of Charts, using a CombinedChartView with a grouped BarChart and a LineChart.

Problem
getTransformer function doesn't work properly when AxisDependency is set to right. The AxisDependency still to left axis.

It should be
The AxisDependency should return a right axis based transformer.

Exemple code

let transformer = barChartView.getTransformer(forAxis: YAxis.AxisDependency.right)
let point = transformer.pixelForValues(x: groupWidth, y: 0)

It seems like it's not implemented yet,

internal override func initialize()
{
    super.initialize()       
    _leftAxisTransformer = Transformer(viewPortHandler: _viewPortHandler)
    _rightAxisTransformer = Transformer(viewPortHandler: _viewPortHandler)
}
@liuxuan30
Copy link
Member

you are using barChartView instead of combined chart view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants