-
-
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
avoidFirstLastClippingEnabled Still be clipped in CombinedChartView #876
Comments
I am sure that the last xVal was putted in the last xVals: for (var i : Int = 0; i < entryCount; i++) {
let item = entries![i]
let minute = String(item[0].stringValue)
let minuteArr = minute.componentsSeparatedByString(":")
var xVal = minuteArr[0]+":"+minuteArr[1]
if xVal == "13:00" && (type == "sh" || type == "sz") {
xVal = "11:30/13:00"
}
xVals.append(xVal)
if i == entryCount-1 {
print(xVals[i]) // here print 15:00 but the last entry still invisible
} |
have you checked your xAxis.axisLabelModulus? Whether to render the text is in x axis renderer's you will see how avoidFirstLastClippingEnabled is used: for i in self.minX.stride(to: min(self.maxX + 1, xAxis.values.count), by: xAxis.axisLabelModulus)
{
if (xAxis.isAvoidFirstLastClippingEnabled)
{
if (i == xAxis.values.count - 1 && xAxis.values.count > 1)
{
}
else if (i == 0)
{
}
}
} So in your case, the last value never satisfy the condition. e.g last |
@liuxuan30 Let me have a check, thank you and have a nice vestval! |
Hi, I'm also not able to show the last label on the xAxis. Example:
Here's a set of different attempts:
(I'm using I followed Stackoverflow and apparently the Android version have the same issue. Thank you! |
@saxxi try v3 first. and don't reply a closed issue.. hard to track |
I still have this issue, any solution guys? |
I 've tried _chartView.xAxis.avoidFirstLastClippingEnabled = true, not use
I seem that the last point was not shown still
The text was updated successfully, but these errors were encountered: