Comments (5)
已经写了适应代码啊~~鼠标动动试试?变换过窗口大小吗?
from echarts.
截个图吧:
Reproduce steps:
- 打开tooltip的try it页
- 等待图表渲染
- 缩小一点窗口
- 鼠标移到axis上出现tooltip
点击下面的“Refresh”按钮重渲染无效,刷新页面后可恢复定位,似乎与外部那个容器留给chart的边界有关,这个是否有已知的处理方法?外部的#main
元素看起来是自适应的,缩小窗口的过程中图表也确实会相应变小,只是tooltip有问题
from echarts.
恩,就猜到你缩小的窗口~
ECharts没有绑定resize事件,显示区域大小发生改变内部并不知道~
但预留了resize方法,由使用方根据需求自己绑定关心的resize事件,调用一下resize甚至直接绑实例这个方法都行~
之所以没有自动绑定,是因为确实有些场景是希望无视显示区域变化的,特别是页面高度变化出现垂直滚动条的时候,留给用户自己绑定也足够灵活,你觉得呢?
from echarts.
嗯,我理解这个设计,就是想知道一下问题的解决方法,从外部来处理是很合理的,所以这个resize方法就叫resize
还是啥,文档中搜不到来着……
from echarts.
example中窗口大小发生变化后在控制台执行一下 myChart.resize() 试试~
文档已经更新,谢谢Lili~
from echarts.
Related Issues (20)
- [Feature] 如何实现折线图按x轴进行分区展示的效果 HOT 2
- [Bug] MarkPoint out of the chart window HOT 7
- [Bug] Gradient color rendered as black in VisualMap
- [Feature] Sankey diagram, left and right nodes, not centered vertically HOT 1
- [Bug] Heatmap in some Size show a blank space at left top HOT 2
- [Bug] Circular reference in series.data causes stack overflow thus chart fails to show
- [Bug] [Bug] 使用scatter3D 点位无法点击 HOT 2
- [Bug] ScatterGL draw items outside the grid
- [Feature] can we draw an area based on the points of a serie type "lines" HOT 1
- [Bug] a second undefined canvas is drawn when drawing lines HOT 1
- removeData HOT 2
- [Bug] surface responsiveness on parent resize (horizontally)
- [Feature] Add tables about stacking bars HOT 3
- [Bug] Sankey图的series.edgeLabel.distance配置项设置关系边文本标签距离图形元素的距离无效 HOT 2
- [Bug] symbol无法全部显示问题 HOT 4
- [Bug] 1111333
- [Feature] 添加自定义组件中,基于富文本格式的文字超长截断和换行功能 HOT 6
- When the yAxis value of the markline exceeds the yAxis range, the markline will not be displayed
- [Bug] 绘制3万个左右散点的图形时,鼠标悬浮在部分散点上时鼠标的样式未变化,部分是正常变化的;同时点击散点无法触发点击事件 HOT 4
- [Feature] legend.formatter函数,接收的参数可不可以像tooltip.formatter一样 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from echarts.