ReferenceError: labelFormatter is not defined

1,019 views
Skip to first unread message

Shriman Nijagun Kumbar

unread,
Sep 26, 2013, 5:32:37 AM9/26/13
to flot-...@googlegroups.com
I want to use pie chart
I am getting this error ReferenceError: labelFormatter is not defined as i included jquery.js,jquery.flot.pie.js and jquery.flot.js
 <script src="/resources/js/1.8.3/jquery.flot.js"></script>
<script src="/resources/js/1.8.3/jquery.flot.pie.js"></script>
<script    src="/resources/js/flot-pie/myPiehart.js" type="text/javascript"></script>



dnschnur

unread,
Sep 28, 2013, 4:03:45 PM9/28/13
to flot-...@googlegroups.com
What version of Flot are you using?  Is myPiehart.js the official jquery.flot.pie.js plugin?  What are your options?

Dulce Ordaz

unread,
Feb 18, 2014, 11:31:32 AM2/18/14
to flot-...@googlegroups.com
You need to declare the function
     
 function labelFormatter(label, series) {
        return "<div style='font-size:8pt; text-align:center; padding:2px; color:white;'>" + label + "<br/>" + Math.round(series.percent) + "%</div>";
Reply all
Reply to author
Forward
0 new messages