Charts - Line Charts Menu - Line Solid Dot

Add different data to the graph.

See line dot for details.

Documentation of the solid dot class.

This goes into the <head> of the page:

<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF(
"open-flash-chart.swf", "my_chart", "550", "200",
"9.0.0", "expressInstall.swf",
{"data-file":"gallery/line-solid-dot.php"} );
</script>
This writes the chart into a div with id="my_chart", right click and view source to see it in action, [the tutorials have more details]

gallery/line-solid-dot.php
<?php

include '../php-ofc-library/open-flash-chart.php';

$data = array();

for( 
$i=0$i<6.2$i+=0.2 )
{
  
$data[] = (sin($i) * 1.9) + 4;
}

$title = new titledate("D M d Y") );

// ------- LINE 2 -----
$d = new solid_dot();
$d->size(3)->halo_size(1)->colour('#3D5C56');

$line = new line();
$line->set_default_dot_style($d);
$line->set_values$data );
$line->set_width);
$line->set_colour'#3D5C56' );


$y = new y_axis();
$y->set_range08);


$chart = new open_flash_chart();
$chart->set_title$title );
$chart->add_element$line );
$chart->set_y_axis$y );

echo 
$chart->toPrettyString();
To see the data produced : gallery/line-solid-dot.php, then 'view source'.
Support This Project

Open Flash Chart logo by numb.me.uk. | Syntax highlights are by GeSHi