User avatar
hailwood
Posts: 20
Joined: Mon Feb 08, 2010 7:07 am

Highcharts Documentation?

Hi there,

Currently all the documentation I can find for Highcharts is the option reference.

Is there any other documentation for these?

I am looking mainly for documentation for the Ajax side of things.

If there is not,
What are the chances of setting up a Wiki for highcharts so we as the users can document it for you?

Regards,
Hailwood
Occupation: Web Developer
www.webspirited.com & www.thirdscreeninteractive.com
HTML, CSS, JS, PHP
torstein.honsi
Site Admin
Posts: 9215
Joined: Thu Nov 09, 2006 11:22 am
Location: Vik i Sogn, Norway

Re: Highcharts Documentation?

Hi hailwood,

You have the How To, which will be extended with more explanation and examples. One of the things we intend to write about specifically is Ajax and preprocessing the configuration object. But the general truth is that this is not really Highcharts code. When preprocessing the config you use jQuery's Ajax methods and standard JavaScript. Check out the jQuery docs.
Torstein Hønsi
CTO, Founder
Highsoft
User avatar
hailwood
Posts: 20
Joined: Mon Feb 08, 2010 7:07 am

Re: Highcharts Documentation?

cheers,

One other query I have is,
Are their any plans on making a PHP class for highcharts?

would be nice to be able to go

Code: Select all

$HC = new HighCharts();
//set chart options
$HC->setOption({title = 'My chart, appendto = 'container'});
...etc

//add new series to chart
$HC->addSeries('series1');
$HC->seriesTitle('series 1 title');

$HC->addSeries('series2');
$HC->seriesTitle('series 2 title');

$HC->addSeries('series3');
$HC->seriesTitle('series 1 title');

//set active series
$HC->series('series2');

for($i=0; $i<= 10; $i++)
    $HC->addDataPoint($i);

cheers,

One other query I have is,
Are their any plans on making a PHP class for highcharts? 

would be nice to be able to go
[code]
$HC = new HighCharts();
//set chart options
$HC->setOption({title = 'My chart, appendto = 'container'});
...etc

//add new series to chart
$HC->addSeries('series1');
$HC->seriesTitle('series 1 title');

$HC->addSeries('series2');
$HC->seriesTitle('series 2 title');

$HC->addSeries('series3');
$HC->seriesTitle('series 1 title');

//set active series
$HC->series('series2');

for($i=0; $i<= 10; $i++)
    $HC->addDataPoint($i);

//set active series
$HC->series('series1');

for($i=0; $i<= 10; $i++)
    $HC->addDataPoint($i);

//set active series
$HC->series('series3');

for($i=0; $i<= 10; $i++)
    $HC->addDataPoint($i);
...
blah blah blah

and eventually

$HC->Render();
if there are no plans for this,
would you object to me making one?
Occupation: Web Developer
www.webspirited.com & www.thirdscreeninteractive.com
HTML, CSS, JS, PHP
torstein.honsi
Site Admin
Posts: 9215
Joined: Thu Nov 09, 2006 11:22 am
Location: Vik i Sogn, Norway

Re: Highcharts Documentation?

There is an initiative at http://bitbucket.org/roberto.aloi/highc ... /wiki/Home. Instead of methods like you suggest (addSeries, addTitle etc.), the author is building a configuration with exactly the same syntax as the Highcharts options. Personally I applaud this, as it makes the Highcharts API reference reusable for PHP implementers, and perhaps more importantly will automatically grow to include new options as they are added to the JavaScript.

It would be highly appreciated if you want to participate in this project.
Torstein Hønsi
CTO, Founder
Highsoft

Return to “Highcharts Usage”