折线图 scale 设置max之后,图表显示异常 #4945
Answered
by
hustcc
Dawnwangzi
asked this question in
Q&A
Replies: 3 comments
-
@pearmini 请问这个问题有解决办法吗 |
Beta Was this translation helpful? Give feedback.
0 replies
-
const chart = new Chart({
container: 'container',
autoFit: true,
height: 500,
limitInPlot: true, // 👈🏻 这里
});
chart.scale({
ts: {
tickCount: 10,
type: 'timeCat',
},
value: {
nice: false,
type: 'log', // 👈🏻 这里
max: 2000,
// min: 1500
}
});
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hustcc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
codesandbox链接
https://codesandbox.io/s/000pzp?file=/index.ts
是什么原因导致设置max 有一定概率 图上什么都不显示?
在max下的数据其实有很多,但是就是不显示,只有hover上去才闪出来一个点
Beta Was this translation helpful? Give feedback.
All reactions