LoginSignup
0
0

More than 5 years have passed since last update.

[baidu echarts] pieチャート(円グラフ)のラベル位置を中に移動 (label position)

Posted at

デフォルトでは、pieチャート(円グラフ)のラベル位置が円の外に浮いている。
それを円の上に置くには、 lablel プロパティを下記のように設定すればOKです。

    series: [
        {
            name:'访问来源',
            type:'pie',
            selectedMode: 'single',
            radius: [0, '30%'],

            label: {
                normal: {
                    position: 'inner'
                }
            },

          ...

ECharts Gallery.png

参考

http://gallery.echartsjs.com/editor.html?c=xBJXvvbALe
http://aifan.jp

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0