Skip to content

how to set min max in pie rosetype:area? #8787

@rxng

Description

@rxng

One-line summary [问题简述]

No option to set min/max in pie. I have tried setting min/max using xAxis, yAxis, radiusAxis, etc

Expected behaviour [期望结果]

Max should be 100%, not the highest value in data

ECharts option [ECharts配置项]

  option = {
        color: vcolors,
        tooltip : {
            trigger: 'item',
            formatter: function(params) {
              if(params['value']!=0)
                return params['name']+"<br/>"+params['value']+"%";
            }
        },

        series: [{
            type: 'pie',
            data: valuesdata,
            roseType: 'area',
            itemStyle: {
                normal: {
                    border: false
                }
            },
            labelLine: {
                normal: {
                    show: false
                }
            },
            label: {
                normal: {
                    show: false
                }
            }
        }, {
            type: 'pie',
            data: labelData,
            radius: ['80%', '100%'],
            zlevel: -2,
            itemStyle: {
                normal: {
                    color: '#e9e9e9',
                    borderColor: '#fff',
                    fontSize: 10,
                }
            },
            label: {
                normal: {
                    color: '#495057',
                    position: 'inside',
                    fontSize: 11,
                }
            }
        }],
    };

Other comments [其他信息]

image copied on 2018-07-31 at 21 10 37 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions