I am retrieved value from the database,i want to put my retrieved data in the JavaScript,i am storing my retrieved value like this $data1 =25
, in my JavaScript code instead of data: 50
i want to put the retrieved $data1 =25,can anyone guide to do it ,thanks.
my java script code
(function ($) {
"use strict";
$(document).ready(function () {
if ($.fn.plot) {
var dataPie = [{
label: "Samsung",
data: 50
}
}
});
});