-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Line chart xAxis cut left or right in iphone 5 #2758
Comments
what is |
Hi seenoevo, |
first viewLineChart.xAxis.labelCount = 3
viewLineChart.xAxis.forceLabelsEnabled = true you should not use like this after This makes your x axis labels like Just add some break points to see if your first value is rendered. Ideally you should check |
Hello, I have tried to find the solution to my problem, but I have not found anything related. I hope you can help me.
My problem is that, sometimes, the line graph is cut by the beginning or the end, and I do not understand why.
I have tried to set the zoom, the maximum and minimum values, I have the granularity the number of fields, etc ...
This is my config:
`viewLineChart.dragEnabled = true
viewLineChart.dragDecelerationFrictionCoef = 0.95
viewLineChart.highlightPerDragEnabled = true
viewLineChart.legend.enabled = false
viewLineChart.rightAxis.enabled = false
viewLineChart.delegate = self
viewLineChart.drawGridBackgroundEnabled = false
viewLineChart.xAxis.valueFormatter = HourFormatter()
viewLineChart.xAxis.setLabelCount(3, force: true)
viewLineChart.xAxis.axisMaximum = with.getDataSetByIndex(0).xMax
viewLineChart.xAxis.axisMinimum = with.getDataSetByIndex(0).xMin
func formatDataSet(dataSet: LineChartDataSet) -> LineChartData{
dataSet.axisDependency = YAxis.AxisDependency.left
The text was updated successfully, but these errors were encountered: