示例#1
0
  border: 1.5px solid #aaaaaa;
  padding: 1px 3px;
  background-color: #eeccdd;
}
</style>
<?php 
$data1 = array(array(11, 123, 1236, "Acura"), array(45, 92, 1067, "Alfa Romeo"));
$pc = new C_PhpChartX(array($data1), 'basic_chart');
$pc->set_title(array('text' => 'Basic Chart'));
$pc->add_plugins(array('cursor'));
/*$pc->set_series_default(array(
	'renderer'=>'plugin::BubbleRenderer',
	'rendererOptions'=>array('bubbleGradients'=>true)));
*/
$pc->add_series(array('label' => 'Sales'));
$pc->set_legend(array('show' => true, 'placement' => 'outsideGrid'));
$pc->set_cursor(array("show" => true, 'zoom' => true));
$pc->draw();
/*
$data1 = array(14, 32, 41, 44, 40, 47, 53, 67);
$pc = new C_PhpChartX(array($data1),'basic_chart_2');
$pc->set_title(array('text'=>'Basic Chart'));
$pc->set_animate(true);
$pc->add_plugins(array('pointLabels', 'cursor'));
$pc->set_series_default(array('showMarker'=>true));
$pc->set_cursor(array("show"=>true,'zoom'=>true));
$pc->draw();
$data1 = array(14, 32, 41, 44, 40);
$pc = new C_PhpChartX(array($data1),'basic_chart_3');
$pc->set_title(array('text'=>'Basic Chart'));
$pc->set_animate(true);
示例#2
0
?>
<!DOCTYPE HTML>
<html>
    <head>
		<title>phpChart - Multiple Lines</title>
    </head>
    <body>
        <div><span> </span><span id="info1b"></span></div>


<?php 
$l1 = array(18, 36, 14, 11);
$l2 = array(array(2, 14), array(7, 2), array(8, 5));
$l3 = array(4, 7, 9, 2, 11, 5, 9, 13, 8, 7);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Chart 1 Example
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$pc = new C_PhpChartX(array($l1, $l2, $l3), 'chart1');
$pc->jqplot_show_plugins(true);
$pc->set_legend(array('show' => true));
$pc->set_animate(true);
$pc->add_series(array('showLabel' => true));
$pc->add_series(array('showLabel' => true));
$pc->add_series(array('showLabel' => false));
$pc->draw(600, 300);
?>

    </body>
</html>
示例#3
0
    <head>
	<title>phpChart - Min Max Lines</title>
    </head>
    <body>
        <div><span> </span><span id="info1b"></span></div>


<?php 
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Chart 1 Example
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$line1 = array(array(1, 1), array(4, 2), array(9, 3), array(16, 4));
$line2 = array(array(25, 1), array(12.5, 2), array(6.25, 3), array(3.125, 4));
$min = array(array(2, 0.6), array(2, 4.4));
$max = array(array(15, 0.6), array(15, 4.4));
$pc = new C_PhpChartX(array($line1, $line2, $min, $max), 'chart1');
$pc->set_title(array('text' => 'Horizontally Oriented Bar Chart'));
$pc->set_animate(true);
$pc->add_series(array('label' => 'Cats', 'renderer' => 'plugin::BarRenderer', 'rendererOptions' => array('barDirection' => 'horizontal', 'barPadding' => 6, 'barMargin' => 15), 'shadowAngle' => 135));
$pc->add_series(array('label' => 'Dogs', 'renderer' => 'plugin::BarRenderer', 'rendererOptions' => array('barDirection' => 'horizontal', 'barPadding' => 6, 'barMargin' => 15), 'shadowAngle' => 135));
$pc->add_series(array('showMarker' => false, 'label' => 'min'));
$pc->add_series(array('showMarker' => false, 'label' => 'max'));
$pc->set_legend(array('show' => true, 'location' => 'ne'));
$pc->set_axes(array('xaxis' => array('min' => 0), 'yaxis' => array('renderer' => 'plugin::CategoryAxisRenderer', 'ticks' => array('Once', 'Twice', 'Three Times', 'More'))));
$pc->draw(800, 300);
?>

    </body>
</html>
$pc->set_series_default(array('renderer' => 'plugin::BarRenderer', 'shadowAngle' => '135', 'rendererOptions' => array('highlightMouseDown' => true, 'barDirection' => 'horizontal'), 'pointLabels' => array('show' => true, 'formatString' => '%d')));
$pc->set_legend(array('show' => true, 'location' => 'e', 'placement' => 'outside'));
$pc->set_axes(array('yaxis' => array('renderer' => 'plugin::CategoryAxisRenderer')));
$pc->draw(600, 400);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Bar 5 Example
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$pc = new C_PhpChartX(array(array(array(2, 1), array(null, 2), array(7, 3), array(10, 4))), 'chart5');
$pc->add_plugins(array('highlighter'));
$pc->set_animate(true);
$pc->set_series_default(array('renderer' => 'plugin::BarRenderer', 'shadowAngle' => 135, 'rendererOptions' => array('highlightMouseDown' => true, 'barDirection' => 'horizontal'), 'pointLabels' => array('show' => true, 'formatString' => '%d')));
$pc->add_series(array('rendererOptions' => array('highlightMouseDown' => true, 'barDirection' => 'horizontal')));
$pc->set_capture_right_click(true);
$pc->set_legend(array('show' => true, 'location' => 'e', 'placement' => 'outside'));
$pc->set_yaxes(array('yaxis' => array('renderer' => 'plugin::CategoryAxisRenderer')));
$pc->draw(600, 400);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Pie 6 Example
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$pc = new C_PhpChartX(array(array(1, 2, 3, 4)), 'chart6');
$pc->add_plugins(array('highlighter', 'pointLabels'));
$pc->set_animate(true);
$pc->set_series_default(array('renderer' => 'plugin::PieRenderer'));
$pc->draw(600, 400);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Bar 7 Example
示例#5
0
$s1 = array(1, 6, 9, 8);
$s2 = array(4, 3, 1, 2);
$s3 = array(6, 2, 4, 1);
$s4 = array(1, 2, 3, 4);
$s5 = array(4, 3, 2, 1);
$s6 = array(8, 2, 6, 3);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Chart 1 Example
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$pc = new C_PhpChartX(array($s1, $s2, $s3, $s4, $s5, $s6), 'chart1');
$pc->set_animate(true);
$pc->set_stack_series(true);
$pc->set_series_default(array('fill' => true, 'showMarker' => false));
$pc->set_legend(array('renderer' => 'plugin::EnhancedLegendRenderer', 'show' => true, 'labels' => array('Fog', 'Rain', 'Frost', 'Sleet', 'Hail', 'Snow'), 'rendererOptions' => array('numberColumns' => 3)));
$pc->set_axes(array('xaxis' => array('pad' => 0), 'yaxis' => array('min' => 0, 'max' => 35)));
$pc->draw(500, 300);
/*    
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    //Chart 2 Example
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    
    $pc = new C_PhpChartX(array($s1,$s2,$s3,$s4,$s5,$s6),'chart2');
    $pc->add_plugins(array('enhancedLegendRenderer','barRenderer','categoryAxisRenderer'),true);
    
	$pc->set_animate(true);
	$pc->set_stack_series(true);
    $pc->set_series_default(array('renderer'=>'plugin::BarRenderer'));
示例#6
0
/*      width: 15px;*/
	  }
	</style>

    </head>
    <body>
        <div><span> </span><span id="info1b"></span></div>

<?php 
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Chart 1 Example
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$InPr = array(array(0.0, 85.0), array(10.0, 87.40000000000001), array(20.0, 90.0), array(30.0, 91.3), array(40.0, 93.5), array(50.0, 94.09999999999999), array(60.0, 95.40000000000001), array(70.0, 95.8), array(80.0, 96.09999999999999), array(90.0, 97.59999999999999), array(100.0, 97.40000000000001), array(110.0, 97.7), array(120.0, 97.90000000000001), array(130.0, 98.3), array(140.0, 97.90000000000001), array(150.0, 98.40000000000001), array(160.0, 99.8), array(170.0, 100.5), array(180.0, 100.4), array(190.0, 100.3), array(200.0, 102.9), array(210.0, 104.1), array(220.0, 104.4), array(230.0, 103.9), array(240.0, 104.4), array(250.0, 104.0), array(260.0, 103.9), array(270.0, 103.5), array(280.0, 105.4), array(290.0, 105.7), array(300.0, 105.7), array(310.0, 105.3), array(320.0, 105.0), array(330.0, 105.1), array(340.0, 105.0), array(350.0, 105.1), array(360.0, 104.7), array(370.0, 104.4), array(380.0, 104.3), array(390.0, 105.7), array(400.0, 106.4), array(410.0, 105.7), array(420.0, 105.4), array(430.0, 105.7), array(440.0, 105.7), array(450.0, 105.9), array(460.0, 105.3), array(470.0, 105.7), array(480.0, 105.8), array(490.0, 105.4), array(500.0, 105.4), array(510.0, 105.4), array(520.0, 105.6), array(530.0, 104.9), array(540.0, 104.8), array(550.0, 105.2), array(560.0, 105.2), array(570.0, 105.1), array(580.0, 104.8), array(590.0, 104.6), array(600.0, 104.3), array(610.0, 104.2), array(620.0, 104.1), array(630.0, 104.7), array(640.0, 104.6), array(650.0, 104.7), array(660.0, 104.6), array(670.0, 104.4), array(680.0, 106.8), array(690.0, 106.6), array(700.0, 106.3), array(710.0, 107.1), array(720.0, 106.2), array(730.0, 106.1), array(740.0, 106.7), array(750.0, 106.5), array(760.0, 106.8), array(770.0, 106.7), array(780.0, 106.6), array(790.0, 106.7), array(800.0, 106.8), array(810.0, 106.4), array(820.0, 106.7), array(830.0, 106.5), array(840.0, 106.9), array(850.0, 106.7), array(860.0, 106.7), array(870.0, 106.8), array(880.0, 107.1), array(890.0, 106.6), array(900.0, 106.8), array(910.0, 106.9), array(920.0, 106.8), array(930.0, 107.3), array(940.0, 106.9), array(950.0, 106.5), array(960.0, 107.2), array(970.0, 107.0), array(980.0, 106.9), array(990.0, 107.2), array(1000.0, 107.7), array(1010.0, 107.6), array(1020.0, 107.1), array(1030.0, 107.6), array(1040.0, 107.2), array(1050.0, 107.2), array(1060.0, 107.5), array(1070.0, 107.7), array(1080.0, 107.3), array(1090.0, 107.0), array(1100.0, 107.7), array(1110.0, 107.0), array(1120.0, 107.8), array(1130.0, 107.8), array(1140.0, 107.7), array(1150.0, 107.4), array(1160.0, 107.8), array(1170.0, 107.8), array(1180.0, 107.6), array(1190.0, 107.7), array(1200.0, 107.4), array(1210.0, 108.0), array(1220.0, 372.6), array(1230.0, 90.40000000000001), array(1240.0, 125.0), array(1250.0, 110.4), array(1260.0, 108.5), array(1270.0, 109.7), array(1280.0, 108.9), array(1290.0, 109.6), array(1300.0, 110.2), array(1310.0, 110.0), array(1320.0, 110.7), array(1330.0, 110.3), array(1340.0, 110.6), array(1350.0, 110.5), array(1360.0, 110.8), array(1370.0, 110.6), array(1380.0, 111.0), array(1390.0, 113.0), array(1400.0, 112.1), array(1410.0, 112.3), array(1420.0, 112.3), array(1430.0, 137.6), array(1440.0, 179.0), array(1450.0, 216.9), array(1460.0, 399.2), array(1470.0, 433.6), array(1480.0, 203.5), array(1490.0, 223.3), array(1500.0, 229.8), array(1510.0, 416.9), array(1520.0, 198.8), array(1530.0, 208.7), array(1540.0, 172.0), array(1550.0, 145.7), array(1560.0, 119.2), array(1570.0, 104.8), array(1580.0, 100.1), array(1590.0, 97.7), array(1600.0, 97.2), array(1610.0, 98.8), array(1620.0, 98.09999999999999), array(1630.0, 98.09999999999999), array(1640.0, 98.8), array(1650.0, 98.7), array(1660.0, 98.5), array(1670.0, 98.8), array(1680.0, 98.2), array(1690.0, 98.2), array(1700.0, 97.7), array(1710.0, 98.09999999999999), array(1720.0, 97.09999999999999), array(1730.0, 97.59999999999999), array(1740.0, 97.7), array(1750.0, 97.40000000000001), array(1760.0, 97.59999999999999), array(1770.0, 98.0), array(1780.0, 97.59999999999999), array(1790.0, 97.7), array(1800.0, 97.8), array(1810.0, 97.59999999999999), array(1820.0, 97.90000000000001), array(1830.0, 97.90000000000001), array(1840.0, 97.8), array(1850.0, 97.7), array(1860.0, 97.7), array(1870.0, 97.7), array(1880.0, 97.40000000000001), array(1890.0, 97.3), array(1900.0, 97.2), array(1910.0, 96.90000000000001), array(1920.0, 97.2), array(1930.0, 97.40000000000001), array(1940.0, 97.7), array(1950.0, 97.09999999999999), array(1960.0, 97.09999999999999), array(1970.0, 96.59999999999999), array(1980.0, 96.7), array(1990.0, 96.5), array(2000.0, 97.2), array(2010.0, 96.59999999999999), array(2020.0, 96.40000000000001), array(2030.0, 96.7), array(2040.0, 96.8), array(2050.0, 96.59999999999999), array(2060.0, 96.59999999999999), array(2070.0, 96.5), array(2080.0, 96.59999999999999), array(2090.0, 96.40000000000001), array(2100.0, 96.59999999999999), array(2110.0, 96.5), array(2120.0, 96.2), array(2130.0, 96.2), array(2140.0, 96.5), array(2150.0, 96.0), array(2160.0, 96.2), array(2170.0, 96.3), array(2180.0, 96.40000000000001), array(2190.0, 97.0), array(2200.0, 96.8), array(2210.0, 96.5), array(2220.0, 96.59999999999999), array(2230.0, 96.09999999999999), array(2240.0, 96.09999999999999), array(2250.0, 96.59999999999999), array(2260.0, 96.5), array(2270.0, 96.59999999999999), array(2280.0, 96.40000000000001), array(2290.0, 96.5), array(2300.0, 96.59999999999999), array(2310.0, 96.90000000000001), array(2320.0, 96.8), array(2330.0, 96.90000000000001), array(2340.0, 97.2), array(2350.0, 96.59999999999999), array(2360.0, 97.3), array(2370.0, 97.40000000000001), array(2380.0, 97.09999999999999), array(2390.0, 97.09999999999999), array(2400.0, 96.8), array(2410.0, 97.0), array(2420.0, 97.09999999999999), array(2430.0, 97.09999999999999), array(2440.0, 97.0), array(2450.0, 97.09999999999999), array(2460.0, 97.09999999999999), array(2470.0, 97.5), array(2480.0, 96.90000000000001), array(2490.0, 96.8), array(2500.0, 96.8), array(2510.0, 97.0), array(2520.0, 96.7), array(2530.0, 97.0), array(2540.0, 97.09999999999999), array(2550.0, 97.2), array(2560.0, 97.09999999999999), array(2570.0, 97.09999999999999), array(2580.0, 97.09999999999999), array(2590.0, 96.8), array(2600.0, 97.2), array(2610.0, 97.09999999999999), array(2620.0, 97.3), array(2630.0, 97.09999999999999), array(2640.0, 97.09999999999999), array(2650.0, 97.09999999999999), array(2660.0, 97.0), array(2670.0, 96.8), array(2680.0, 97.3), array(2690.0, 97.40000000000001), array(2700.0, 97.3), array(2710.0, 97.2), array(2720.0, 97.09999999999999), array(2730.0, 97.2), array(2740.0, 97.09999999999999), array(2750.0, 97.09999999999999), array(2760.0, 97.09999999999999), array(2770.0, 96.8), array(2780.0, 96.40000000000001), array(2790.0, 96.59999999999999), array(2800.0, 96.59999999999999));
$OutPr = array(array(0.0, 1788.1), array(10.0, 1803.3), array(20.0, 1807.3), array(30.0, 1813.5), array(40.0, 1822.0), array(50.0, 1820.3), array(60.0, 1823.7), array(70.0, 1823.7), array(80.0, 1825.3), array(90.0, 1831.0), array(100.0, 1832.1), array(110.0, 1834.4), array(120.0, 1834.4), array(130.0, 1831.5), array(140.0, 1832.7), array(150.0, 1834.4), array(160.0, 1831.5), array(170.0, 1832.1), array(180.0, 1830.4), array(190.0, 1831.0), array(200.0, 1830.4), array(210.0, 1829.3), array(220.0, 1829.9), array(230.0, 1828.2), array(240.0, 1831.0), array(250.0, 1828.7), array(260.0, 1827.0), array(270.0, 1829.3), array(280.0, 1826.5), array(290.0, 1824.8), array(300.0, 1824.2), array(310.0, 1823.7), array(320.0, 1823.7), array(330.0, 1823.7), array(340.0, 1825.3), array(350.0, 1822.0), array(360.0, 1820.3), array(370.0, 1818.0), array(380.0, 1819.1), array(390.0, 1816.3), array(400.0, 1820.8), array(410.0, 1820.8), array(420.0, 1819.7), array(430.0, 1820.3), array(440.0, 1819.7), array(450.0, 1819.1), array(460.0, 1819.1), array(470.0, 1821.4), array(480.0, 1821.4), array(490.0, 1818.0), array(500.0, 1816.9), array(510.0, 1819.1), array(520.0, 1818.6), array(530.0, 1816.9), array(540.0, 1816.9), array(550.0, 1815.2), array(560.0, 1814.1), array(570.0, 1814.6), array(580.0, 1811.2), array(590.0, 1814.1), array(600.0, 1813.5), array(610.0, 1812.4), array(620.0, 1809.0), array(630.0, 1813.5), array(640.0, 1811.8), array(650.0, 1815.8), array(660.0, 1816.3), array(670.0, 1815.2), array(680.0, 1815.2), array(690.0, 1815.8), array(700.0, 1816.3), array(710.0, 1818.6), array(720.0, 1816.9), array(730.0, 1814.6), array(740.0, 1816.3), array(750.0, 1814.1), array(760.0, 1812.9), array(770.0, 1812.9), array(780.0, 1811.2), array(790.0, 1812.4), array(800.0, 1815.2), array(810.0, 1812.4), array(820.0, 1813.5), array(830.0, 1811.8), array(840.0, 1811.2), array(850.0, 1812.9), array(860.0, 1809.0), array(870.0, 1811.2), array(880.0, 1816.9), array(890.0, 1815.2), array(900.0, 1813.5), array(910.0, 1812.9), array(920.0, 1815.8), array(930.0, 1819.1), array(940.0, 1818.0), array(950.0, 1816.3), array(960.0, 1818.0), array(970.0, 1815.2), array(980.0, 1818.6), array(990.0, 1815.2), array(1000.0, 1822.5), array(1010.0, 1822.5), array(1020.0, 1816.9), array(1030.0, 1816.3), array(1040.0, 1817.4), array(1050.0, 1816.9), array(1060.0, 1811.8), array(1070.0, 1818.6), array(1080.0, 1818.6), array(1090.0, 1815.2), array(1100.0, 1816.9), array(1110.0, 1815.8), array(1120.0, 1815.8), array(1130.0, 1816.9), array(1140.0, 1815.2), array(1150.0, 1815.2), array(1160.0, 1818.0), array(1170.0, 1817.4), array(1180.0, 1818.0), array(1190.0, 1819.1), array(1200.0, 1817.4), array(1210.0, 1822.5), array(1220.0, 1313.9), array(1230.0, 1694.5), array(1240.0, 1891.3), array(1250.0, 1813.5), array(1260.0, 1827.0), array(1270.0, 1831.5), array(1280.0, 1827.6), array(1290.0, 1832.1), array(1300.0, 1831.5), array(1310.0, 1829.9), array(1320.0, 1834.4), array(1330.0, 1831.0), array(1340.0, 1827.6), array(1350.0, 1829.3), array(1360.0, 1832.1), array(1370.0, 1834.9), array(1380.0, 1834.9), array(1390.0, 1839.4), array(1400.0, 1830.4), array(1410.0, 1832.7), array(1420.0, 1833.8), array(1430.0, 1847.9), array(1440.0, 1770.6), array(1450.0, 1668.0), array(1460.0, 1279.5), array(1470.0, 1138.5), array(1480.0, 1724.4), array(1490.0, 1571.0), array(1500.0, 1740.8), array(1510.0, 1326.8), array(1520.0, 1661.2), array(1530.0, 1859.2), array(1540.0, 1851.8), array(1550.0, 1885.7), array(1560.0, 1876.1), array(1570.0, 1860.3), array(1580.0, 1870.5), array(1590.0, 1851.8), array(1600.0, 1853.5), array(1610.0, 1863.7), array(1620.0, 1854.1), array(1630.0, 1855.8), array(1640.0, 1858.6), array(1650.0, 1857.5), array(1660.0, 1858.6), array(1670.0, 1841.7), array(1680.0, 1824.2), array(1690.0, 1817.4), array(1700.0, 1813.5), array(1710.0, 1814.6), array(1720.0, 1809.0), array(1730.0, 1806.2), array(1740.0, 1803.9), array(1750.0, 1804.5), array(1760.0, 1798.8), array(1770.0, 1793.8), array(1780.0, 1792.1), array(1790.0, 1793.2), array(1800.0, 1792.6), array(1810.0, 1787.0), array(1820.0, 1787.0), array(1830.0, 1786.4), array(1840.0, 1788.1), array(1850.0, 1784.7), array(1860.0, 1781.4), array(1870.0, 1780.2), array(1880.0, 1777.4), array(1890.0, 1775.7), array(1900.0, 1775.2), array(1910.0, 1775.2), array(1920.0, 1776.8), array(1930.0, 1778.0), array(1940.0, 1775.7), array(1950.0, 1769.5), array(1960.0, 1769.5), array(1970.0, 1768.4), array(1980.0, 1771.2), array(1990.0, 1770.1), array(2000.0, 1769.5), array(2010.0, 1767.8), array(2020.0, 1764.4), array(2030.0, 1764.4), array(2040.0, 1765.0), array(2050.0, 1762.7), array(2060.0, 1765.6), array(2070.0, 1763.9), array(2080.0, 1762.2), array(2090.0, 1759.9), array(2100.0, 1759.9), array(2110.0, 1762.2), array(2120.0, 1762.7), array(2130.0, 1762.2), array(2140.0, 1762.7), array(2150.0, 1759.4), array(2160.0, 1761.1), array(2170.0, 1761.6), array(2180.0, 1763.3), array(2190.0, 1765.0), array(2200.0, 1768.4), array(2210.0, 1763.3), array(2220.0, 1762.7), array(2230.0, 1759.9), array(2240.0, 1762.7), array(2250.0, 1764.4), array(2260.0, 1765.6), array(2270.0, 1766.7), array(2280.0, 1763.3), array(2290.0, 1763.3), array(2300.0, 1763.9), array(2310.0, 1762.7), array(2320.0, 1762.7), array(2330.0, 1767.3), array(2340.0, 1767.8), array(2350.0, 1765.6), array(2360.0, 1766.1), array(2370.0, 1766.7), array(2380.0, 1766.7), array(2390.0, 1765.0), array(2400.0, 1765.0), array(2410.0, 1765.0), array(2420.0, 1765.0), array(2430.0, 1765.6), array(2440.0, 1765.6), array(2450.0, 1763.3), array(2460.0, 1767.8), array(2470.0, 1767.8), array(2480.0, 1765.0), array(2490.0, 1761.6), array(2500.0, 1761.6), array(2510.0, 1762.7), array(2520.0, 1763.3), array(2530.0, 1763.3), array(2540.0, 1763.9), array(2550.0, 1765.0), array(2560.0, 1766.1), array(2570.0, 1765.6), array(2580.0, 1766.7), array(2590.0, 1765.6), array(2600.0, 1768.4), array(2610.0, 1766.7), array(2620.0, 1764.4), array(2630.0, 1764.4), array(2640.0, 1766.1), array(2650.0, 1766.1), array(2660.0, 1766.1), array(2670.0, 1763.9), array(2680.0, 1765.6), array(2690.0, 1765.6), array(2700.0, 1765.6), array(2710.0, 1765.0), array(2720.0, 1765.6), array(2730.0, 1766.1), array(2740.0, 1767.3), array(2750.0, 1766.7), array(2760.0, 1762.2), array(2770.0, 1754.9), array(2780.0, 1750.9), array(2790.0, 1750.3), array(2800.0, 1748.1));
$ERPM = array(array(0.0, 1503.0), array(10.0, 3006.0), array(20.0, 3005.0), array(30.0, 1505.0), array(40.0, 1505.0), array(50.0, 3015.0), array(60.0, 1503.0), array(70.0, 3006.0), array(80.0, 3006.0), array(90.0, 1503.0), array(100.0, 1503.0), array(110.0, 1503.0), array(120.0, 1500.0), array(130.0, 1503.0), array(140.0, 752.0), array(150.0, 1503.0), array(160.0, 1503.0), array(170.0, 1503.0), array(180.0, 1505.0), array(190.0, 1503.0), array(200.0, 1503.0), array(210.0, 3006.0), array(220.0, 1503.0), array(230.0, 1503.0), array(240.0, 1502.0), array(250.0, 1503.0), array(260.0, 3005.0), array(270.0, 1500.0), array(280.0, 1502.0), array(290.0, 1502.0), array(300.0, 1502.0), array(310.0, 752.0), array(320.0, 1502.0), array(330.0, 1502.0), array(340.0, 1504.0), array(350.0, 1502.0), array(360.0, 1502.0), array(370.0, 1501.0), array(380.0, 1502.0), array(390.0, 501.0), array(400.0, 1501.0), array(410.0, 501.0), array(420.0, 751.0), array(430.0, 751.0), array(440.0, 1503.0), array(450.0, 750.0), array(460.0, 1501.0), array(470.0, 1503.0), array(480.0, 501.0), array(490.0, 1501.0), array(500.0, 1501.0), array(510.0, 501.0), array(520.0, 1501.0), array(530.0, 751.0), array(540.0, 1501.0), array(550.0, 1501.0), array(560.0, 1501.0), array(570.0, 1501.0), array(580.0, 1504.0), array(590.0, 1504.0), array(600.0, 1502.0), array(610.0, 751.0), array(620.0, 1501.0), array(630.0, 1501.0), array(640.0, 1501.0), array(650.0, 1501.0), array(660.0, 1504.0), array(670.0, 1502.0), array(680.0, 751.0), array(690.0, 751.0), array(700.0, 1501.0), array(710.0, 751.0), array(720.0, 1501.0), array(730.0, 1502.0), array(740.0, 1502.0), array(750.0, 751.0), array(760.0, 376.0), array(770.0, 1502.0), array(780.0, 1501.0), array(790.0, 1502.0), array(800.0, 1499.0), array(810.0, 1499.0), array(820.0, 750.0), array(830.0, 1499.0), array(840.0, 501.0), array(850.0, 300.0), array(860.0, 1504.0), array(870.0, 751.0), array(880.0, 1502.0), array(890.0, 1502.0), array(900.0, 1502.0), array(910.0, 751.0), array(920.0, 501.0), array(930.0, 1502.0), array(940.0, 751.0), array(950.0, 1502.0), array(960.0, 501.0), array(970.0, 1504.0), array(980.0, 751.0), array(990.0, 1502.0), array(1000.0, 751.0), array(1010.0, 1502.0), array(1020.0, 500.0), array(1030.0, 751.0), array(1040.0, 1502.0), array(1050.0, 751.0), array(1060.0, 1502.0), array(1070.0, 1502.0), array(1080.0, 751.0), array(1090.0, 751.0), array(1100.0, 1502.0), array(1110.0, 750.0), array(1120.0, 1502.0), array(1130.0, 375.0), array(1140.0, 1502.0), array(1150.0, 300.0), array(1160.0, 375.0), array(1170.0, 1499.0), array(1180.0, 300.0), array(1190.0, 375.0), array(1200.0, 1502.0), array(1210.0, 373.0), array(1220.0, 368.0), array(1230.0, 502.0), array(1240.0, 495.0), array(1250.0, 1475.0), array(1260.0, 1468.0), array(1270.0, 732.0), array(1280.0, 1461.0), array(1290.0, 1458.0), array(1300.0, 1456.0), array(1310.0, 1456.0), array(1320.0, 1451.0), array(1330.0, 1453.0), array(1340.0, 1453.0), array(1350.0, 726.0), array(1360.0, 1451.0), array(1370.0, 1451.0), array(1380.0, 1451.0), array(1390.0, 1451.0), array(1400.0, 1449.0), array(1410.0, 1449.0), array(1420.0, 1449.0), array(1430.0, 1944.0), array(1440.0, 1197.0), array(1450.0, 786.0), array(1460.0, 0.0), array(1470.0, 0.0), array(1480.0, 1079.0), array(1490.0, 1070.0), array(1500.0, 1085.0), array(1510.0, 923.0), array(1520.0, 1121.0), array(1530.0, 1293.0), array(1540.0, 1762.0), array(1550.0, 367.0), array(1560.0, 352.0), array(1570.0, 186.0), array(1580.0, 892.0), array(1590.0, 892.0), array(1600.0, 892.0), array(1610.0, 892.0), array(1620.0, 892.0), array(1630.0, 892.0), array(1640.0, 892.0), array(1650.0, 892.0), array(1660.0, 892.0), array(1670.0, 892.0), array(1680.0, 0.0), array(1690.0, 0.0), array(1700.0, 0.0), array(1710.0, 0.0), array(1720.0, 0.0), array(1730.0, 0.0), array(1740.0, 0.0), array(1750.0, 0.0), array(1760.0, 0.0), array(1770.0, 0.0), array(1780.0, 0.0), array(1790.0, 0.0), array(1800.0, 0.0), array(1810.0, 0.0), array(1820.0, 0.0), array(1830.0, 0.0), array(1840.0, 0.0), array(1850.0, 0.0), array(1860.0, 0.0), array(1870.0, 0.0), array(1880.0, 0.0), array(1890.0, 0.0), array(1900.0, 0.0), array(1910.0, 0.0), array(1920.0, 0.0), array(1930.0, 0.0), array(1940.0, 0.0), array(1950.0, 0.0), array(1960.0, 0.0), array(1970.0, 0.0), array(1980.0, 0.0), array(1990.0, 0.0), array(2000.0, 0.0), array(2010.0, 0.0), array(2020.0, 0.0), array(2030.0, 0.0), array(2040.0, 0.0), array(2050.0, 0.0), array(2060.0, 0.0), array(2070.0, 0.0), array(2080.0, 0.0), array(2090.0, 0.0), array(2100.0, 0.0), array(2110.0, 0.0), array(2120.0, 0.0), array(2130.0, 0.0), array(2140.0, 0.0), array(2150.0, 0.0), array(2160.0, 0.0), array(2170.0, 0.0), array(2180.0, 0.0), array(2190.0, 0.0), array(2200.0, 0.0), array(2210.0, 0.0), array(2220.0, 0.0), array(2230.0, 0.0), array(2240.0, 0.0), array(2250.0, 0.0), array(2260.0, 0.0), array(2270.0, 0.0), array(2280.0, 0.0), array(2290.0, 0.0), array(2300.0, 0.0), array(2310.0, 0.0), array(2320.0, 0.0), array(2330.0, 0.0), array(2340.0, 0.0), array(2350.0, 0.0), array(2360.0, 0.0), array(2370.0, 0.0), array(2380.0, 0.0), array(2390.0, 0.0), array(2400.0, 0.0), array(2410.0, 0.0), array(2420.0, 0.0), array(2430.0, 0.0), array(2440.0, 0.0), array(2450.0, 0.0), array(2460.0, 0.0), array(2470.0, 0.0), array(2480.0, 0.0), array(2490.0, 0.0), array(2500.0, 0.0), array(2510.0, 0.0), array(2520.0, 0.0), array(2530.0, 0.0), array(2540.0, 0.0), array(2550.0, 0.0), array(2560.0, 0.0), array(2570.0, 0.0), array(2580.0, 0.0), array(2590.0, 0.0), array(2600.0, 0.0), array(2610.0, 0.0), array(2620.0, 0.0), array(2630.0, 0.0), array(2640.0, 0.0), array(2650.0, 0.0), array(2660.0, 0.0), array(2670.0, 0.0), array(2680.0, 0.0), array(2690.0, 0.0), array(2700.0, 0.0), array(2710.0, 0.0), array(2720.0, 0.0), array(2730.0, 0.0), array(2740.0, 0.0), array(2750.0, 0.0), array(2760.0, 0.0), array(2770.0, 0.0), array(2780.0, 0.0), array(2790.0, 0.0), array(2800.0, 0.0));
$pc = new C_PhpChartX(array($InPr, $OutPr, $ERPM), 'chart1');
$pc->add_plugins(array('cursor'));
$pc->set_series_default(array('neighborThreshold' => 0, 'showMarker' => false));
$pc->add_series(array('label' => 'P In'));
$pc->add_series(array('label' => 'P Out', 'yaxis' => 'y2axis'));
$pc->add_series(array('label' => 'RPM', 'yaxis' => 'y3axis'));
$pc->set_cursor(array('showVerticalLine' => true, 'showTooltip' => true, 'followMouse' => true, 'showTooltipDataPosition' => true, 'zoom' => true, 'intersectionThreshold' => 6, 'tooltipFormatString' => '%s x:%s, y:%s'));
$pc->set_legend(array('location' => 'nw', 'xoffset' => 310, 'yoffset' => 100));
$pc->set_axes_default(array('tickOptions' => array('formatString' => '%i'), 'autoscale' => false, 'useSeriesColor' => true));
$pc->draw(600, 320);
?>

    </body>
</html>
		<button onclick="plot1.moveSeriesToFront(0);">Lions</button> 
		<button onclick="plot1.moveSeriesToFront(1);">Tigers</button> 
		<button onclick="plot1.moveSeriesToFront(2);">Bears</button> 
    
		<button onclick="plot1.restorePreviousSeriesOrder();">Last Order</button> 
		<button onclick="plot1.restoreOriginalSeriesOrder();">Original Order</button>
<?php 
$l1 = array(3, 4, 1, 4, 2);
$l2 = array(2, 5, 1, 4, 2);
$l3 = array(1, 6, 1, 4, 2);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Chart 1 Example
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$pc = new C_PhpChartX(array($l1, $l2, $l3), 'plot1');
$pc->add_plugins(array('highlighter', 'enhancedLegendRenderer'), true);
$pc->set_legend(array('show' => true, 'renderer' => 'plugin::EnhancedLegendRenderer'));
$pc->set_animate(true);
$pc->set_series_default(array('lineWidth' => 4));
$pc->add_series(array('label' => 'lions'));
$pc->add_series(array('label' => 'tigers'));
$pc->add_series(array('label' => 'bears'));
$pc->set_series_color(array('#cc6666', '#66cc66', '#6666cc'));
$pc->set_highlighter(array('bringSeriesToFront' => true));
$pc->draw(600, 400);
?>

    </body>
</html>
示例#8
0
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>phpChart - Basic Chart with Legend</title>
</head>
<body>
	
<?php 
$s1 = array(11, 9, 5, 12, 14);
$s2 = array(6, 8, 7, 13, 9);
$pc = new C_PhpChartX(array($s1, $s2), 'basic_chart');
$pc->set_animate(true);
$pc->set_title(array('text' => 'Basic Chart'));
$pc->set_series_default(array('renderer' => 'plugin::BarRenderer', 'rendererOptions' => array('sliceMargin' => 2, 'innerDiameter' => 110, 'startAngle' => -90, 'highlightMouseDown' => true), 'shadow' => true));
$pc->add_plugins(array('highlighter', 'canvasTextRenderer'));
//set phpChart grid properties
$pc->set_grid(array('background' => 'lightyellow', 'borderWidth' => 0, 'borderColor' => '#000000', 'shadow' => true, 'shadowWidth' => 10, 'shadowOffset' => 3, 'shadowDepth' => 3, 'shadowColor' => 'rgba(230, 230, 230, 0.07)'));
//set axes
$pc->set_axes(array('xaxis' => array('rendnerer' => 'plugin::CategoryAxisRenderer'), 'yaxis' => array('padMax' => 2.0)));
//set axes
$pc->set_xaxes(array('xaxis' => array('borderWidth' => 2, 'borderColor' => '#999999', 'tickOptions' => array('showGridline' => false))));
$pc->set_yaxes(array('yaxis' => array('borderWidth' => 0, 'borderColor' => '#ffffff', 'autoscale' => true, 'min' => '0', 'max' => 20, 'numberTicks' => 21, 'labelRenderer' => 'plugin::CanvasAxisLabelRenderer', 'label' => 'Energy Use')));
//set legend properties
$pc->set_legend(array('renderer' => 'plugin::EnhancedLegendRenderer', 'show' => true, 'location' => 'e', 'placement' => 'outside', 'yoffset' => 30, 'rendererOptions' => array('numberRows' => 2), 'labels' => array('Oil', 'Renewables')));
$pc->draw();
?>


</body>
</html>
示例#9
0
		<title>phpChart - Pie Chart</title>
	</head>
    <body>
        <div><span> </span><span id="info1b"></span></div>


<?php 
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Pie 1 Example
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$pc = new C_PhpChartX(array(array(array('a', 25), array('b', 14), array('c', 7))), 'pie1');
$pc->set_grid_padding(array('top' => 0, 'bottom' => 38, 'left' => 0, 'right' => 0));
$pc->set_series_default(array('renderer' => 'plugin::PieRenderer', 'trendline' => array('show' => false), 'rendererOptions' => array('padding' => 8, 'showDataLabels' => true)));
$pc->set_legend(array('show' => true, 'placement' => 'outside', 'rendererOptions' => array('numberRows' => 1), 'location' => 's', 'marginTop' => '15px'));
$pc->draw(400, 400);
/*
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    //Pie 2 Example
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    $pc = new C_PhpChartX(array(array(array('a',25),array('b',14),array('c',7))),'pie2');

    $pc->set_series_default(array(
			'renderer'=>'plugin::PieRenderer',
			'trendline'=>array('show'=>true)));

    $pc->set_legend(array('show'=>true));
示例#10
0
<?php

require_once "../conf.php";
?>
<!DOCTYPE HTML>
<html>
    <head>
		<title>phpChart - Pie Chart</title>
    </head>
    <body>
        <div><span> </span><span id="info1b"></span></div>


<?php 
$s1 = array(array('Sony', 7), array('Samsumg', 13.3), array('LG', 14.7), array('Vizio', 5.2), array('Insignia', 1.2));
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Chart 1 Example
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$pc = new C_PhpChartX(array($s1), 'chart1');
$pc->set_grid(array('drawBorder' => false, 'drawGridlines' => false, 'background' => '#ffffff', 'shadow' => false));
$pc->set_axes_default(array());
$pc->set_series_default(array('renderer' => 'plugin::PieRenderer', 'rendererOptions' => array('showDataLabels' => true)));
$pc->set_legend(array('show' => true, 'rendererOptions' => array('numberRows' => 1), 'location' => 's'));
$pc->draw(400, 400);
?>

    </body>
</html>
示例#11
0
$line0a = array(array(-8.69, -5), array(465.234, 48));
$line0 = array(-4, -7, 9, 16, 3, 5, -2, 1, -6, -3, -2, 8);
$line1 = array(4, -7, 9, 16);
$line2 = array(3, -3, 6.25, 3.125);
$line3 = array(8, -5, 6, 22);
$line4 = array(12, 5, 8, 15);
$line5 = array(4, 3, 9, 16);
$line6 = array(3, 7, 6.25, 3.125);
$line7 = array(8, 5, 6, 22);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Chart 1 Example
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$pc = new C_PhpChartX(array($line0), 'chart1');
$pc->set_legend(array('show' => false, 'location' => 'nw'));
$pc->set_series_default(array('fill' => true, 'fillToZero' => true, 'showMarker' => false));
$pc->add_series(array('label' => 'Traps Division'));
$pc->set_axes(array('xaxis' => array('renderer' => 'plugin::CategoryAxisRenderer', 'ticks' => array(1900, 1910, 1920, 1930, 1940, 1950, 1960, 1970, 1980, 1990, 2000, 2010), 'tickOptions' => array('showGridline' => false, 'formatString' => '%d')), 'yaxis' => array('autoscale' => true)));
$pc->draw(420, 320);
/*
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    //Chart 1b Example
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    
    $pc = new C_PhpChartX(array($line0a),'chart1b');

    $pc->set_legend(array('show'=>false,'location'=>'nw'));
    $pc->set_series_default(array('fill'=>true,'fillToZero'=>true,'showMarker'=>false));
示例#12
0
$s1 = array(1, 6, 9, 8);
$s2 = array(4, 3, 1, 2);
$s3 = array(6, 2, 4, 1);
$s4 = array(1, 2, 3, 4);
$s5 = array(4, 3, 2, 1);
$s6 = array(8, 2, 6, 3);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Chart 1 Example
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$pc = new C_PhpChartX(array($s1, $s2, $s3, $s4, $s5, $s6), 'chart1');
$pc->set_stack_series(true);
$pc->set_series_default(array('fill' => true, 'showMarker' => false));
$pc->set_animate(true);
$pc->set_legend(array('renderer' => 'plugin::EnhancedLegendRenderer', 'show' => true, 'showLabels' => true, 'labels' => array('Fog', 'Rain', 'Frost', 'Sleet', 'Hail', 'Snow'), 'rendererOptions' => array('numberRows' => 1), 'placement' => 'outsideGrid', 'location' => 's'));
$pc->set_axes(array('xaxis' => array('pad' => 0), 'yaxis' => array('min' => 0, 'max' => 35)));
$pc->draw(500, 300);
/*    
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    //Chart 2 Example
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    
    $pc = new C_PhpChartX(array($s1,$s2,$s3,$s4,$s5,$s6),'chart2');
    
	$pc->set_animate(true);
	$pc->set_stack_series(true);
    $pc->set_title(array('text'=>'Precipitation Potential'));
    $pc->set_series_default(array('renderer'=>'plugin::BarRenderer'));
示例#13
0
    <body>
        <div><span> </span><span id="info1b"></span></div>


<?php 
$line1 = array(array(4, 'Nissan'), array(6, 'Porche'), array(2, 'Acura'), array(5, 'Aston Martin'), array(6, 'Rolls Royce'));
$line2 = array(5, -5, 5, -5, 5, -5, 5, -5, 5, -5, 5, -5, 5, -5, 5, -5, 5, -5, 5, -5, 5, -5, 5, -5, 5, -5, 5, -5, 5, -5, 5, -5);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Chart 1 Example
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$pc = new C_PhpChartX(array($line1), 'chart1');
$pc->set_title(array('text' => 'Default Colors'));
$pc->set_series_default(array('renderer' => 'plugin::BarRenderer', 'rendererOptions' => array('barWidth' => 25, 'barPadding' => -25, 'barMargin' => 25, 'barDirection' => 'horizontal', 'varyBarColor' => true), 'shadow' => false));
$pc->set_legend(array('show' => false));
$pc->set_axes(array('xaxis' => array('min' => 0, 'tickOptions' => array('formatString' => '%.0f', 'showGridLine' => false)), 'yaxis' => array('renderer' => 'plugin::CategoryAxisRenderer', 'show' => true, 'tickOptions' => array('show' => true, 'showLabel' => true), 'showTicks' => true)));
$pc->set_animate(true);
$pc->draw(600, 300);
/*    
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    //Chart 2 Example
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    $pc = new C_PhpChartX(array($line1),'chart2');

    $pc->set_title(array('text'=>'Custom Colors'));
    $pc->set_series_default(array(
			'renderer'=>'plugin::BarRenderer',
			'rendererOptions'=>array(
            }
        </style>
    </head>
    <body>
        <div><span> </span><span id="info1b"></span></div>

<?php 
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Line 1 Example
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$line1 = array(array('1/1/2006', 5), array('2/1/2006', 1), array('3/1/2006', 3), array('4/1/2006', 7));
$line2 = array(array('1/1/2006', 2), array('2/1/2006', 6), array('3/1/2006', 4), array('4/1/2006', 3));
$pc = new C_PhpChartX(array($line1, $line2), 'chart1');
$pc->set_legend(array('show' => true, 'location' => 'nw', 'yoffset' => 6));
$pc->set_axes(array('xaxis' => array('renderer' => 'plugin::DateAxisRenderer', 'tickOptions' => array('formatString' => '%m.%y'), 'ticks' => array('12/1/2005', '1/1/2006', '2/1/2006', '3/1/2006', '4/1/2006', '5/1/2006'))));
$pc->draw(400, 300);
/*
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    //Line 2 Example
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    $line1 = array(5, 1, 3, 7);
    $line2 = array(2, 6, 4, 3);

    $pc = new C_PhpChartX(array($line1,$line2),'chart2');

    $pc->set_legend(array('show'=>true,'location'=>'nw','yoffset'=>6));
    $pc->set_axes(array(