I have a spider-graph and it works perfectly with static data, not so great when I try import data from PHP.
what I got:
var d = [
[
{axis:"red",value:0.5},
{axis:"blue",value:0.56},
{axis:"yellow",value:0.42},
]
There is a similar question here, but it doesn't work when I try to import data the following way:
var d = [
[
{axis:"red",value:<?php echo json_encode($php_variable1); ?>},
{axis:"blue",value:<?php echo json_encode($php_variable2); ?>},
{axis:"yellow",value:<?php echo json_encode($php_variable); ?>},
]
Obviously, I'm not a professional. Any suggestions for the amateur?