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

Cannot assign a value of type 'ChartLimitLabelPosition' to a value of type 'ChartLimitLine.ChartLimitLabelPosition' #131

Closed
robomotic opened this issue Jun 7, 2015 · 2 comments

Comments

@robomotic
Copy link

Yo guys,
excellent work this project is!
I was converting the demos from ObjC to Swift one by one but I have incurred in two compilation issues.
Example 1:

        // x-axis limit line
        var llXAxis = ChartLimitLine(limit:10.0,label:"Index 10")
        llXAxis.lineWidth = 4.0;
        llXAxis.lineDashLengths = [(10.0), (10.0), (0.0)]
        llXAxis.labelPosition = ChartLimitLabelPosition.Right
        llXAxis.valueFont = UIFont.systemFontOfSize(10.0)

That gives me the error:
Cannot assign a value of type 'ChartLimitLabelPosition' to a value of type 'ChartLimitLine.ChartLimitLabelPosition'

Another issue is this one:

self.chartView!.legend.form = ChartLegendForm.Line

Cannot assign a value of type 'ChartLegendForm' to a value of type 'ChartLegend.ChartLegendForm'

Any help is welcome.
I can also publish the Swift code at the end once I manage to compile it!

@danielgindi
Copy link
Collaborator

self.chartView!.legend.form = .Line. It's Swift.

@robomotic
Copy link
Author

Wow thanx, my fault Swift syntax is still weird to me!

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