小编Pau*_*dam的帖子

从Google图表中删除填充或边距

// Load the Visualization API and the piechart package.
google.load('visualization', '1.0', {'packages':['corechart']});

// Set a callback to run when the Google Visualization API is loaded.
google.setOnLoadCallback(drawChart);

// Callback that creates and populates a data table,
// instantiates the pie chart, passes in the data and
// draws it.
function drawChart() {

  // Create the data table.
  var data = new google.visualization.DataTable();
  data.addColumn('string', 'Topping');
  data.addColumn('number', 'Slices');

  var myData = {
    'Mushrooms': 3,
    'Onions': 1,
    'Olives': 1,
    'Zucchini': 1,
    'Pepperoni': 2
  }; …
Run Code Online (Sandbox Code Playgroud)

html javascript charts google-visualization

146
推荐指数
6
解决办法
11万
查看次数

标签 统计

charts ×1

google-visualization ×1

html ×1

javascript ×1