How to center chart title position dynamically inside pie chart in highcharts

前端 未结 2 705
南方客
南方客 2021-01-01 06:05

I\'m doing a responsive pie chart which holds title in centered position inside it.I\'ve used,

title: {
            text: \"\",
            margin: 0,
               


        
2条回答
  •  长情又很酷
    2021-01-01 06:12

    We can customize any properties of title using chart.setTitle() as shown below.I've added a title and set useHTML property to true.

    chart: {
                events: {
                        load: function () {
                            this.setTitle({text: 'Title',useHTML:true});
                        } 
                }
        }
    

提交回复
热议问题