Inner Background Colour settings

Allows users to set an inner background with a single colour

JSON

{
  "elements": [
    {
      "type": "line",
      "values": [
        7,
        6,
        5,
        4,
        3,
        2,
        1
      ],
      "dot-style": {
        "type": "dot",
        "colour": "#0000ff"
      },
      "text": "Germany"
    }
  ],
  "title": {
    "text": "Test Graph"
  },
  "legend": {
    "visible": true
  },
  "inner_bg_colour": "#FFFFFF"
}

PHP

$chart = new open_flash_chart();
 
$data_1 = array(7,6,5,4,3,2,1);
 
 
 
$title = new title( "Test Graph"  );
 
$line_1_default_dot = new dot();
$line_1_default_dot->colour('#0000ff');
 
$line_1 = new line();
$line_1->set_default_dot_style($line_1_default_dot);
$line_1->set_values( $data_1 );
$line_1->set_text( "Germany" );
 
$chart = new open_flash_chart();
$chart->set_title( $title );
$chart->add_element( $line_1 );
 
$legend = new legend();
$legend->set_visible(true);
$chart->set_legend( $legend );
 
$chart->set_inner_bg_colour( '#FFFFFF' );
 
echo $chart->toPrettyString();
 
ofc2/features/background/inner/colour.txt · Last modified: 2011/06/05 02:08 by etw
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki