Skip to content
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

🤔 [QUESTION] 在绘制折线图时,x轴是时间序列,如何限定区间范围 #3799

Open
zmoth opened this issue Jul 16, 2024 · 0 comments
Labels
Question Further information is requested

Comments

@zmoth
Copy link

zmoth commented Jul 16, 2024

🐛 Question description [Please make everyone to understand it]

image

如图所示,我希望只显示 9:30 ~ 11:30 和 13:00 ~ 15:00 两段区间的数据。头尾的限制已经使用min和max限制,中间如何隐藏?

 meta: {
  time: {
    type: 'timeCat',
    mask: 'HH:mm',
  },
},
xAxis: {
  nice: false,
  type: 'time',
  min: startDate.getTime(), // 9:30
  max: endDate.getTime(), // 15:00
},

💻 Link to minimal reproduction

Please provide a link by forking these links g2plot or GitHub repo. What is a minimal reproduction, and why is it required?

🏞 Expected result

🚑 Any additional [like screenshots]

  • G2Plot Version: 2.4.31
  • Platform: 所有平台
@zmoth zmoth added the Question Further information is requested label Jul 16, 2024
@zmoth zmoth changed the title 在绘制折线图时,x轴是时间序列,如何限定区间范围🤔 [QUESTION] 🤔 [QUESTION] 在绘制折线图时,x轴是时间序列,如何限定区间范围 Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant