jquery - flot chart actual data with percentage -


I am new to floating charts and javascript / jquery so I do not have much information about how things work How can I show my label in a format like "Data: Percent"?

I got a percent code from SO:

  pie: {show: true, label: {Show: true, // Added custom format here ... formatter: Function (label, point) {return (point.percent.toFixed (2) + '%'); }}}  

and data code from SO:

  label: {show: true, radius: 2/3, formatter: function (label, series) ) {Return '& lt; Div style = "font-size: 8pt; text-align: center; padding: 2px; color: white;" & Gt; ' + Label + '& lt; Br / & gt; + Series.data [0] [1] + '& lt; / Div & gt; '; }, Threshold: 0.1}   

Resolve the problem yourself: < Pre> formatter: function (label, series) {return "

"; }

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -