Insert Links into Google Charts api data?

后端 未结 6 1185
日久生厌
日久生厌 2020-12-10 13:08

I have been playing around with Google charts quite a bit over in the google charts play ground here:

Link

The code I have been playing with is this:

6条回答
  •  一生所求
    2020-12-10 13:47

    Manzoid's answer is good, but "some assembly is still required" as it just displays an alert box rather than following the link. Here is a more complete answer BUT it makes the bars clickable rather than the labels. I create a DataTable that includes the links then create a DataView from that to select the columns I want to display. Then when the select event occurs, I just retrieve the link from the original DataTable.

    
      
        
        
      
      
        

提交回复
热议问题