printf( '<script type="text/javascript" src="extlib/Chart.js"></script>' ); printf( '<script type="text/javascript" src="extlib/jquery-min.js"></script>' ); printf( '<canvas id="mycanvas" width="256" height="256"></canvas>' ); printf( '<script type="text/javascript">' ); var ctx = $("#mycanvas").get(0).getContext("2d"); var piedata = [ { value:30, color:"green", label:"sta1", labelColor : 'white' }, { value:60, color:"red", label:"sta1", labelColor : 'white' }, { value:50, color:"blue" } ] new Chart(ctx).Pie(piedata); printf( '</script>' );
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)