echarts餅圖中間添加文字


加到option配置里
title: {
                        text: "2673682",
                        left: "center",
                        top: "50%",
                        textStyle: {
                            textAlign: "center",
                            fill: "#333",
                            fontSize: 12,
                            fontWeight: 400,
                        }
                    },
      graphic: {
                        type: "text",
                        left: "center",
                        top: "40%",
                        style: {
                            text: "資產總數",
                            textAlign: "center",
                            fill: "#333",
                            fontSize: 14,
                        }
                    },

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM