Comments (3)
完整代码看看?echarts.init()的实例resize,实例自己所属的控件才会有效
from echarts.
var lineChart = echarts.init(doc.getElementById('main-chart'));
lineChart.setOption({
dataZoom: {
show: true,
realtime: true,
y: 36,
height: 16,
backgroundColor: 'rgba(221,160,221,0.5)',
dataBackgroundColor: 'rgba(138,43,226,0.5)',
fillerColor: 'rgba(38,143,26,0.6)',
handleColor: 'rgba(128,43,16,0.8)',
start: 0,
end: 60
},
// ... others option
});
window.onresize = function() {
lineChart.resize();
};
from echarts.
谢谢!bug and fixed~
from echarts.
Related Issues (20)
- [Bug] 点击拿到地图中markpoint具体的参数 HOT 5
- [Bug] I set the text to be vertically centered, but the effect is not significant [graph,edgeLabel,verticalAlign: 'middle'] HOT 2
- [Bug] Line/area series step on data with nulls produces unexpected results HOT 1
- [Feature] Optional immutableMode to bypass expensive cloning and improve performance HOT 2
- [Feature] 能否增加一个X轴分组分层级的功能 HOT 2
- [Bug] In a Mixed Line and Bar chart, when the line chart is gradient color, clicking on the area covered by the line graph has no effect.
- [Bug] Candlestick border mode issue HOT 2
- 哪里能找到echarts.graphic.LinearGradient 的接口文档介绍 HOT 4
- [Bug] X-axis label formatter doesn't support callback even it should according to the type HOT 1
- [Bug] Wrong label placement of the pictorial bar elements when symbolRepeat and symbolClip is used HOT 1
- [Bug] The label of the pie chart will have ghosting when the position is' center ' HOT 1
- magicType.type:['stack','tiled'],初始化时切换stack与tiled的按钮状态未同步 HOT 1
- [Bug] 多个series会造成缩略轴显示异常(Multiple series can cause abnormal display of dataZoom) HOT 3
- [Bug] Pie Chart slices data labels percentage decimal values are different when compared with pie chart in Excel for Same Data HOT 2
- [Bug] aria: { show: true} generates invalid ARIA attribute on div HOT 2
- [Feature] Allow callback functions to access the scale extents HOT 1
- [Feature] pie want to draggable HOT 2
- [Bug] itemStyle.color配置成回调函数时,lineStyle.color无效 HOT 8
- [Bug] 多图表联动,如果x轴不完全一样,tooltip异常 HOT 1
- [Feature] echarts5的x轴type:time,能同时支持echarts 4.9.0的x轴type:time效果么? HOT 4
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.