How to add PHP array to JS array in Highcharts

前端 未结 5 589
耶瑟儿~
耶瑟儿~ 2020-12-20 09:22

All I want is to be able to add this simple PHP array to display in the X axis. It\'s not wanting to display my content at all and I\'m not understanding why.



        
5条回答
  •  借酒劲吻你
    2020-12-20 09:54

    An JSON Object is not the same as an js array. You would need to parse the code first. JSON.parse() or eval() might help parsing.

    js_array = JSON.parse(''); 
    

    as @user1477388 commented correctly

提交回复
热议问题