hello Appery team,
I ́m using this example to graph a pie using jqplot:
(if I use numbers for aa, bb, cc the graph is draw. but if I use the variables names, it fails.
I have take a look into stackoverflow questions, and also here in the question about ride trip, but I couldn ́t get it work.
var aa = localStorage.getItem("aa");
var bb = localStorage.getItem("bb");
var cc = localStorage.getItem("cc");
$(document).ready(function(){
var data = [
['sales', aa],['service', bb], ['maintenance', cc]
];
var plot1 = jQuery.jqplot ('chart1', [data],
{
seriesDefaults: {
// Make this a pie chart.
renderer: jQuery.jqplot.PieRenderer,
rendererOptions: {
// Put data labels on the pie slices.
// By default, labels show the percentage of the slice.
showDataLabels: true
}
},
legend: { show:true, location: 'e' }
}
);
});
the problem is that I get the aa,bb,cc, and d values from REST.
No errors in console.
could you help me with this? Thanks