Comments (6)
可以大概贴一下你的代码吗?
from echarts-for-react.
series: [
{
name:'睡眠时长',
type:'pie',
// 为true或者为false结果一样,数据为零时饼图不消失
stillShowZeroSum: false,
radius: ['60%', '70%'],
avoidLabelOverlap: false,
label: {
normal: {
show: false,
position: 'center'
},
emphasis: {
show: true,
textStyle: {
fontSize: '30',
fontWeight: 'bold'
}
}
},
labelLine: {
normal: {
show: false
}
},
data:[
{
value:$this.state.SleepLong._12_24,
name:'> 12'
},
{
value:$this.state.SleepLong._10_12,
name:'10-12'
},
{
value:$this.state.SleepLong._8_10,
name:'8-10'
},
{
value:$this.state.SleepLong._6_8,
name:'6-8'
},
{
value:$this.state.SleepLong._0_6,
name:'< 6'
}
]
}
]
我在segmentfault上也提问了
https://segmentfault.com/q/1010000008457261
from echarts-for-react.
目测有可能是 echarts 版本的原因。
echarts-for-react
使用的是 "echarts": "^3.1.1".
from echarts-for-react.
@hustcc 我这边的版本是3.3.2,我在琢磨琢磨,麻烦啦!!!
from echarts-for-react.
嗯,我这边也是时候升级一下了。
from echarts-for-react.
@hustcc 感谢,我努力成长,你们这样的大神是我的榜样!!!!
from echarts-for-react.
Related Issues (20)
- DOMException: Failed to execute 'drawImage' 'CanvasRenderingContext2D: The 1mage argument is canvas element with a width or height of 0.
- percentage `name (undefined%)` when series data is empty `series.data:[ ]` HOT 1
- Allow setting `id` and `data-testid` HOT 1
- Feature Request: RTL support
- Project status HOT 3
- Not support @typescript-eslint/parser 6.x
- 主题theme似乎不生效? HOT 1
- 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
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.