Can someone outline the steps to adding highcharts to Wordpress.
For example, I've added in the code to my header:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
But this provides a server error.
Is there a step-by-step anyone can provide including a basic chart so I can see it working. Thanks.
Pressed post on wrong tab! Ignore previous incomplete answer. This is fuller. Nick.
Hi - I had the same problem as Wordpress strips out a lot of HTML tags. You need to do a few things mentioned below. Hope it helps you. Nick.
1) You need to bypass Wordpress stripping out your code so install the plugin "Allow Javascript in Posts and Pages" checkout hitreach.co.uk for the plugin.
2) Tell your page about the highcharts library - I actually put it in my header.php because I use charts frequently. You may prefer to put it in the post itself.
For the header.php approach - put a link to the highcharts library before the closing head tag. I put both the jquery link and highstock.js link there. I had to put the js libraries on my server of course. I put the links in like this
Notice I had to have the highstock.js file on my server - the second link shows where I put it.
3) Create a new post and in there you'll need to wrap the js code with these new tags:
The [js] tags effectively replace the script tags in regular html.
Here's the full post...