-
Notifications
You must be signed in to change notification settings - Fork 110
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
Y轴数据为0时,滑动手势导致marker只能显示上半部分 #166
Comments
这个十有八九是 Highcharts 自身的 bug, 估计解决不了 |
试试 Highcharts.chart('container', {
chart: {
marginLeft: 120
},
title: {
text: 'Axes offset by 10px'
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
offset: 10,
lineWidth: 2
},
series: [{
type: 'spline',
data: [29.9, 71.5, 0, 0, 0, 450.0, 135.6, 148.5, 216.4, 0, 0, 0]
}]
}); |
以上 JS 配置对应的 Kotlin 代码如下: fun configureXAxisOffsetForAAOptions(): AAOptions {
return AAOptions()
.chart(AAChart()
.marginLeft(120f))
.title(AATitle()
.text("Axes offset by 10px"))
.xAxis(AAXAxis()
.categories(arrayOf(
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"))
.offset(10f)
.lineWidth(2f))
.series(arrayOf(
AASeriesElement()
.type(AAChartType.Spline)
.data(arrayOf(
29.9, 71.5, 0, 0, 0, 450.0, 135.6, 148.5, 216.4, 0, 0, 0))))
} |
感谢回复,我目前使用的版本(AAChartCore-Kotlin-7.2.0)没有 |
这个应该是我属性写错了, 后面改一下 |
好的,我看到PR被合并了,你测下没问题能不能抽时间发个小版本,多谢。另外这个issue你可以择机关闭 😄 |
加好 tag 了, 新的 tag 值为 dependencies {
implementation 'com.github.AAChartModel:AAChartCore-Kotlin:7.2.1'
} |
更新7.2.1之后, 但是发现了一个新问题, |
device-2023-03-21-170403.mp4
初始化显示没问题,触发滑动之后只能显示一半(上半部分)。
最初是在配置可滚动图表发现的问题,测试后发现与是否可滚动无关。
Demo中的model数据如下:
请问有办法改成正常显示吗?
The text was updated successfully, but these errors were encountered: