<?php require 'chart.php'; require 'data.php'; $chart = new chart(300, 200, "example3-1"); $chart->plot($data, false, "white"); $chart->set_grid_color("black"); $chart->set_background_color("blue", "ForestGreen"); $chart->set_title("Title, background and border"); $chart->stroke(); ?>
<?php require 'chart.php'; require 'data.php'; $chart = new chart(300, 200, "example20"); $chart->set_grid_color("black", false); $chart->plot($data, false, "blue", "gradient", "black", 7); $chart->plot($data, false, "red", "gradient", "black", 0); $chart->stroke(); ?>
<?php require 'chart.php'; require 'data.php'; $chart = new chart(300, 200, "example21"); $chart->set_grid_color("pink", false); $chart->plot($data, false, "blue", "gradient", "green", 7); $chart->plot($data, false, "red", "gradient", "yellow", 0); $chart->stroke(); ?>