javascript - How to show the value when mouseOver from an array? -


i'm using library charts.js, i've got graph looks doughnut. question is, how can specific value show when i'm hovering on object?

the code below:

var doughnutdata = [         {             value : 30,             color :"#f7464a"         },         {             value : 50,             color : "#46bfbd"         },         {             value : 100,             color : "#dd3234"         },         {             value : 40,             color : "#949fb1"         },         {             value : 120,             color : "#4d5360"         }     ];      doughnutdata.tostring();  var mydoughnut = new chart(document.getelementbyid("canvas").getcontext("2d")).doughnut(doughnutdata); 

enter image description here

this "graph", so, how can array, tell i'm holding pointer/mouse on piece of doughnut , show value?


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -