You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/04/19 12:21:59 UTC

[GitHub] [incubator-echarts] a521king opened a new issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

a521king opened a new issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置
URL: https://github.com/apache/incubator-echarts/issues/12456
 
 
   ### What problem does this feature solve?
   功能:起初是想绘制一个飞行航路高度剖面图,横坐标是不等间距的航路点标签(根据航路点间的距离绘制不等间距的刻度),纵坐标是高度。
   实现原理:设定X轴刻度xAxis. interval=1,通过xAxis.axisLabel. formatter隐藏某些标签
   问题1:坐标轴在 grid 区域中的分隔线无法只显示横坐标标签所在的刻度位置
   问题2:希望纵坐标的0刻度线在横坐标的上方
   
   ### What does the proposed API look like?
   希望能有一个根据横坐标动态数据绘制刻度标签的API
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-616120648
 
 
   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] a521king commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
a521king commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-618269711


   你是说 xAxis.splitLine. interval 的 回调函数吗 (index:number, value: string) => boolean ?这个不是只对类目轴有用吗


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] wf123537200 commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
wf123537200 commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-619490684


   如果紧急需要的话,可以先直接拿那段代码用


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] wf123537200 commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
wf123537200 commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-618204227


   恕我愚钝,确认下,第一个问题:是想要红框位置没有分割线?
   ![image](https://user-images.githubusercontent.com/5130528/80066057-d0d87e80-856d-11ea-8a9e-4b3223edab2d.png)
   第二个问题,诉求是啥,为啥要偏离那么多,我感觉偏离两个px把 0 的标线露出来就行 :P
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] wf123537200 commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
wf123537200 commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-618281930


   我觉得没错,我理解你的意思是要把x轴的grid也稀疏分布?
   这个我还真没找到好办法,可以@下大佬看看?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] a521king commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
a521king commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-618261097


   都是根据数据来动态展示的


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] wf123537200 commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
wf123537200 commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-618264486


   解决了上面那个问题以后,用函数处理[interval](https://echarts.apache.org/zh/option.html#xAxis.splitLine.interval)
   就可以搞定吧?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] a521king commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
a521king commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-619489935


   下载此处的代码示例https://github.com/wf123537200/incubator-echarts/tree/2c35a29e1de87d2d1f0a19cd01f790f8c6a9c06d  ,查看test / axis-interval-splitLine.html
   
   ,发现效果没有变化,showAsAxis: true,没有起到作用?? 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] a521king commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
a521king commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-618271319


   我显示标签还是用的 axisLabel.formatter 而不是interval ,是我用错了?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] wf123537200 commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
wf123537200 commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-619490428


   要进入开发模式,npm run watch,编译出dist目录下的echart.js,只改动了源码,没有提交echart.js,另外是在 feat-12456 分支下


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] a521king commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
a521king commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-618282162


   好的,谢谢


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] a521king commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
a521king commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-618185880


   第一个问题,如果设置xAxis.splitLine 为true,坐标轴在 grid 区域中的分隔线会铺满整个grid。我想实现只在横坐标轴有标签的位置显示分隔线
   
   第二个问题,加offset意思是对的,但是样式不好看啊,横坐标和纵坐标轴不连在一起了
   
   新的demo:   https://gallery.echartsjs.com/editor.html?c=x4dpi8YWK2&v=3


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] wf123537200 commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
wf123537200 commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-618233879


   明白了,这个问题不在于说没有展示对,应该是配置问题,导致x轴少了
   ![image](https://user-images.githubusercontent.com/5130528/80071872-f36f9500-8577-11ea-8297-7dd67e212e4b.png)
   这样试试
   ![image](https://user-images.githubusercontent.com/5130528/80071897-02564780-8578-11ea-854b-b2decf74c7bf.png)
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-616394123


   @a521king Please provide a demo for the issue either with https://jsfiddle.net/ovilia/n6xc4df3/ or https://gallery.echartsjs.com/editor.html.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] a521king commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
a521king commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-618210014


   ![image](https://user-images.githubusercontent.com/48672417/80067206-ffefef80-856f-11ea-9871-548866add31c.jpg)
   实现上述设计。电脑上不能发图片,刚发现手机可以。
   回答第一个问题:是的,只在数据点的位置显示分隔线


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] a521king commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
a521king commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-619490563


   ok,非常感谢!


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] a521king commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
a521king commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-619499030


   好的


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] a521king commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
a521king commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-617022702


   demo:   https://gallery.echartsjs.com/editor.html?c=x4dpi8YWK2&v=1 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] a521king commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
a521king commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-618260682


   你说的这个问题不是我上面提问的,不过我都没发现还有这个问题。
   其实我最终目的就是想实现上面那个设计图。
   ![image](https://user-images.githubusercontent.com/48672417/80077194-be674080-857f-11ea-8f1c-5a724b10a756.jpg)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [incubator-echarts] wf123537200 commented on issue #12456: xAxis. splitLine Cannot display only at the scale location where the label is located实现坐标轴在 grid 区域中的分隔线只显示在标签的位置

Posted by GitBox <gi...@apache.org>.
wf123537200 commented on issue #12456:
URL: https://github.com/apache/incubator-echarts/issues/12456#issuecomment-618124639


   问题1没太看明白,要干啥,
   问题2:是不是可以通过设置,把x轴向下偏一点
   ![image](https://user-images.githubusercontent.com/5130528/80049349-33695480-8545-11ea-9afa-9f7c73d472c1.png)
   来实现
   ![image](https://user-images.githubusercontent.com/5130528/80049364-3d8b5300-8545-11ea-9080-78c27ee1f6b4.png)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org