title – PHP Charts & Graphs https://phpchart.com Making charts in PHP is simple again. Tue, 13 Dec 2011 01:19:31 +0000 en-US hourly 1 https://wordpress.org/?v=5.8.13 Add Chart Title https://phpchart.com/examples/add-chart-title/ Sun, 13 Nov 2011 21:26:53 +0000 http://phpchart.net/?p=230 You can add a title by calling set_title() method. It will be displayed on the top of the chart. Notice that the parameter is an array. For demo purpose, The HTML code is excluded from the source. 123$pc = new C_PhpChartX(array(array(11, 9, 5, 12, 14)),'basic_chart'); $pc->set_title(array('text'=>'Basic Chart'));$pc->draw(); Live demo

The post Add Chart Title appeared first on PHP Charts & Graphs.

]]>
You can add a title by calling set_title() method. It will be displayed on the top of the chart. Notice that the parameter is an array. For demo purpose, The HTML code is excluded from the source.

1
2
3
$pc = new C_PhpChartX(array(array(11, 9, 5, 12, 14)),'basic_chart');
$pc->set_title(array('text'=>'Basic Chart'));
$pc->draw();

Live demo

The post Add Chart Title appeared first on PHP Charts & Graphs.

]]>