<?php

include_once "environment.php";

// rgraph chart
$template = "default.php";
$width = "500";
$height = "150";
$draw_option = "grow();";
$data = array( 60 );

$chart = new rgraph_chart("cvs", $data, "HBar");
$options = new rgraph_options("default.ini");
$options->set_option("title", "Progressive Chart using the 3D HBar chart");
$options->set_option("colors", array("Gradient(#fcc:red:red)"));
$options->set_option("variant", "3d");
$options->set_option("scaleZerostart", true);
$options->set_option("noaxes", true);
$options->set_option("xaxisLabels", array("% Complete"));
$options->set_option("xaxisScaleMax", 100);
$options->set_option("marginBottom", 70);
$options->set_option("unitsPost", "%");

$chart->set_options($options);
$rgraph_json = $chart->toString();

$chart_script = "";
$event_script = "";

include_once ($templates . $template);
?>