Giter Club home page Giter Club logo

Comments (6)

hustcc avatar hustcc commented on September 19, 2024

可以大概贴一下你的代码吗?

from echarts-for-react.

RelaxLiu avatar RelaxLiu commented on September 19, 2024
  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.

hustcc avatar hustcc commented on September 19, 2024

目测有可能是 echarts 版本的原因。

echarts-for-react 使用的是 "echarts": "^3.1.1".

from echarts-for-react.

RelaxLiu avatar RelaxLiu commented on September 19, 2024

@hustcc 我这边的版本是3.3.2,我在琢磨琢磨,麻烦啦!!!

from echarts-for-react.

hustcc avatar hustcc commented on September 19, 2024

嗯,我这边也是时候升级一下了。

from echarts-for-react.

RelaxLiu avatar RelaxLiu commented on September 19, 2024

@hustcc 感谢,我努力成长,你们这样的大神是我的榜样!!!!

from echarts-for-react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.