You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so I started using Charts and I like it overall, but there are some strange things regarding the API (not to speak that it is not 98% compatible with the Android API).
The first thing I wanted to do is to set the whole X axis to the bottom of my line chart.
Documentation says to use the getXAxis method, which does not exist.
Instead you have to do
self.lineChartView.xAxis.labelPosition = .bottom
which is kind of confusing and irritating, as it suggests to be a property for positioning the labels aka. the text representing the axis' values relative to the axis line (above the line, beneath the line, etc), not the axis itself. But it works and the X axis is now at the bottom.
Another inconsistency is the positioning of the chart descriptive text. Why to only use CGPoints here, instead or even better in addition to an easy enumerator like with the axis?
Best wishes,
Martin
The text was updated successfully, but these errors were encountered:
Hi,
so I started using Charts and I like it overall, but there are some strange things regarding the API (not to speak that it is not 98% compatible with the Android API).
The first thing I wanted to do is to set the whole X axis to the bottom of my line chart.
Documentation says to use the getXAxis method, which does not exist.
Instead you have to do
self.lineChartView.xAxis.labelPosition = .bottom
which is kind of confusing and irritating, as it suggests to be a property for positioning the labels aka. the text representing the axis' values relative to the axis line (above the line, beneath the line, etc), not the axis itself. But it works and the X axis is now at the bottom.
Another inconsistency is the positioning of the chart descriptive text. Why to only use CGPoints here, instead or even better in addition to an easy enumerator like with the axis?
Best wishes,
Martin
The text was updated successfully, but these errors were encountered: