Location: PHPKode > projects > TVEz - Media Library > tvez-0.2.1/html/shared/Graph/examples/pie_chart3d.php
<?php

	include("../PieChart3d.php");

	$plot = new PieChart3d(400,250,"Example 3D Pie Chart");
#	$plot = new PieChart3d(400,250);

	$plot->set_data( array (
		"one" => 35,
		"two" => 12,
		"three" => 59,
		"four"	=> 29,
		"five" => 20,
		"six" => 290
	) );
	$plot->add_data( array (
		"seven" => 99,
		"eight" => 72,
	) );
	$plot->add_data_value("nine",201);

	$plot->set_theme("pastel");		// pastel or default
	$plot->sort(false);
	$plot->show_pieborder(false);
	$plot->show_sliceborder(false);
	$plot->legend_show(true);
	$plot->set_legend_font(1);
	$plot->set_label_font(1);
	$plot->show_labels(true);
	$plot->set_label_type('percent');		// value or percent
	$plot->set_label_position('inside');	// Inside or outside
	$plot->set_legend_position("right"); 	// left or right
	$plot->set_legend_alignment("middle");	// top, middle, bottom
	$plot->set_legend_value("value");		// value, percent, or false
	$plot->set_legend_value("value");		// value, percent, or false
#	$plot->set_legend_border_color("red");
#	$plot->legend_show_shadow(false);
#	$plot->set_legend_shadow_color("blue");
#	$plot->set_legend_shadow_width(7);
	$plot->set_legend_margin(7);
#	$plot->set_legend_padding(7);
	$plot->set_eccentricity(0.7);
	$plot->set_title_margin(7);

	$plot->draw();
Return current item: TVEz - Media Library