Comments (8)
width可以自己在外面包裹一下来定制,例如:
<div className="chart_wrapper">
<ReactEcharts
option={this.getOtion()}
height={300} />
</div>
然后设置css:
.chart_wrapper {
width: 60%;
}
from echarts-for-react.
个人觉得应该直接对外暴露className, style属性,不用height.
from echarts-for-react.
@codering 是的,开始也这么考虑的,开放style和class,不用height~
准备下个版本这么做。欢迎pr^_^~
from echarts-for-react.
@hihl @codering v1.1.1 增加className, style,去掉height属性,使用v1.1.0版本将默认height=300px.
from echarts-for-react.
@hustcc 建议修改一下README
from echarts-for-react.
@byenow 需要修改什么?
from echarts-for-react.
http://7xrn7f.com1.z0.glb.clouddn.com/16-7-18/42485883.jpg
from echarts-for-react.
@byenow 感谢提醒,包括demo代码中也有很多的height属性~~~
已经修改~
from echarts-for-react.
Related Issues (20)
- Project status HOT 3
- Not support @typescript-eslint/parser 6.x
- 主题theme似乎不生效?
- react 5.1 增加了resize动画的功能,echarts-for-react v3.0.2 应该如何调用? HOT 1
- Typing does not support charts v5.4.3
- How to override the readonly style for position relative? HOT 2
- I can not append Data while Zooming
- Table Component
- 动态切换主题
- How to connect several charts on chart load? HOT 2
- How to update datasets on zoom event? HOT 2
- [bug] : Inconsistent Zoom Functionality with ECharts: Seeking Guidance on Mouse Scroll and Button Control Integration
- Tree branch once opened does not retract back on closing it HOT 1
- How to rewrite this example with echarts-for-react
- add type to EChartsOption
- Update Required type Opts ( and add support for SSR) HOT 2
- Unable to show date labels inside cells
- There is an error when I install it by pnpm. HOT 1
- feature request: can you add english language to the docs? its really helpfull
- 'HH:mm' 的时间无法被echarts-for-react识别但是可以被echarts识别
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-for-react.