Substitute PHP $variable for Java constant . . .

3 views
Skip to first unread message

Parker Shannon

unread,
Nov 2, 2019, 6:20:13 AM11/2/19
to Google Visualization API
How do I substitute the values of PHP $variables variables for the constants in the Google Pie Chart code?

        // Create the data table.
       
var data = new google.visualization.DataTable();
        data
.addColumn('string', 'Topping');
        data
.addColumn('number', 'Slices');
        data
.addRows([
         
['Mushrooms', 3],
         
['Onions', 1],
         
['Olives', 1],
         
['Zucchini', 1],
         
['Pepperoni', 2]
       
]);

Thanks . . .
Reply all
Reply to author
Forward
0 new messages