<?php

// setup environment
defined('_JEXEC') or die('Restricted access');
$basepath = JPATH_SITE;

$flashchart_root = "/plugins/content/flashchart";
$lib_path = $basepath . $flashchart_root . "/lib/";

$lib = $lib_path . "flashChartUtil.php";
require_once ($lib);

// create new chart object (use default properties)
$chart = new flashChart("chart01", null, "450", "250");

// add javascripts and stylesheet for modal chart
$html = $chart->getJavascripts();
$urlpath = $chart->getChartProperty('url_path');
$html .= "<link href='$urlpath/css/bootstrap-modal.css' rel='stylesheet' type='text/css' />";

// set selected chart properties
$chart->setChartProperty("title", "Chart via testApp0.php");
$chart->setChartProperty("data", "50,60,70,80,90,60|109,120,100,130,140,100");

// render (imbed) chart into html
$html .= $chart->createChartasModal("testApp0 <b>(Modal Chart)</b>");

//send genned html
echo $html;

?>