how to hide column in google charts table

前端 未结 5 745
梦如初夏
梦如初夏 2021-02-05 12:18

I\'ve got a Google Charts Table that displays a couple of columns and rows. Say for instance we have 4 columns(A,B,C,D respectively). How would I be able to still load column C\

5条回答
  •  眼角桃花
    2021-02-05 13:05

    var view = new google.visualization.DataView(dataTable); //datatable contains col and rows
    view.setColumns([0,1,3,4]); //only show these column
    chart.draw(view, options); //pass the view to draw chat
    

提交回复
热议问题