簡體   English   中英

缺少 Google 餅圖的標簽

[英]label for Google pie chart is missing

谷歌餅圖

我正在使用 Google 餅圖來顯示信息,但缺少一個標簽,增加高度也不起作用。

這是我的代碼

var view = new google.visualization.DataView(data);

      view.setColumns([0, 1,
                       { calc: "stringify",
                         sourceColumn: 1,
                         type: "string",
                         role: "annotation" },

                       2]);

      var options = 
      {
        title: "",
    pieSliceText: "none",
    colors: ['#6f9643','#dcc591','#9487bf','#6f9693','#9d5434','#bfe1e0',
                '#a8c08e','#a89fca','#efbfbf','#9fc4d6','#eaaa7a','#dcc591'],
        bar: {groupWidth: "80%"},
        legend: {   
        position: "labeled", 
        textStyle:{bold:true, fontSize: 11}
        },
        height: 500,
        width: 900,
        chartArea:{width:'85%',height:'80%'},
    backgroundColor: { fill:'transparent' },
        is3D:true
      };    

提前致謝!

刪除這個

pieSliceText: "none"

查看餅圖切片中的標簽

更多信息訪問

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM