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);
this "graph", so, how can array, tell i'm holding pointer/mouse on piece of doughnut , show value?
Comments
Post a Comment