question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[feature] Support barBorderRadius on the polar bar chart

See original GitHub issue

One-line summary [问题简述]

想给环形图进度条两端设置圆角,但是好像只有柱状图有barBorderRadius属性。

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:
  • Browser version [浏览器类型和版本]:
  • OS Version [操作系统类型和版本]:

Expected behaviour [期望结果]

image

ECharts option [ECharts配置项]

option = {

}

Other comments [其他信息]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:32 (6 by maintainers)

github_iconTop GitHub Comments

16reactions
Oviliacommented, Sep 17, 2018

#9085 相似,都需要扇形图支持圆角。既然要求都人多,这个需求就高优支持一下。

5reactions
grapetreecommented, Jan 2, 2020

option = {

    title:{
        text:'hhh'
    },
    angleAxis: {
        max: 10,
        axisLine:{
            show:false
        },
        axisLabel:{
            show:false
        },
        splitLine:{
            show:false
        },
        axisTick:{
            show:false
        }
    },
    radiusAxis: {
        type: 'category',
        axisLine:{
            show:false
        }
    },
    polar: {
    },
    series: [{
        type: 'bar',
        data: [, , , 10],
        coordinateSystem: 'polar',
        roundCap: true,
        silent:true,
        legendHoverLink: false,
        name: 'A',
        stack: 'a'
    }, {
        type: 'bar',
        data: [, , , 6],
        roundCap: true,
        silent:true,
        legendHoverLink: false,
        coordinateSystem: 'polar',
        name: 'B',
        stack: 'a'
    }],
    legend: {
        show: true,
        data: ['A', 'B']
    }
};

可以试下,最新echarts-4.5.0版本以上新增roundCap属性

Read more comments on GitHub >

github_iconTop Results From Across the Web

[feature] Support barBorderRadius on the polar bar chart
One-line summary [问题简述]. 想给环形图进度条两端设置圆角,但是好像只有柱状图有barBorderRadius属性。 Version & Environment [版本及环境].
Read more >
Polar charts in Python - Plotly
A polar chart represents data along radial and angular axes. With Plotly Express, it is possible to represent polar data as scatter markers...
Read more >
Changelog - Apache ECharts
Support to blur other graphic elements when highlighting specified data through mouseover or hover linking. See examples bar-label-rotation, bar-polar-stack ...
Read more >
Circular Barplot - Python Graph Gallery
Matplotlib allows to build circular barplots thanks to the polar Layout option of the subplot() function. Examples below should guide you from the...
Read more >
Make bar rounded echarts - Stack Overflow
Is there a way to make bar rounded on top in echarts? ... found option roundCap for polar but unable to find anything...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found