axes – PHP Charts & Graphs https://phpchart.com Making charts in PHP is simple again. Tue, 13 Dec 2011 01:13:31 +0000 en-US hourly 1 https://wordpress.org/?v=5.8.13 Set Axes Properties https://phpchart.com/examples/set-axes-xaxes-yaxes-properties/ https://phpchart.com/examples/set-axes-xaxes-yaxes-properties/#respond Sat, 26 Nov 2011 06:37:09 +0000 http://phpchart.net/?p=320 Use set_axes() method to set axes properites. You can have 2 x xaxes, and update to 9 yaxes. 123456789101112131415161718192021222324252627282930$pc = new C_PhpChartX(array(array(11, 9, 5, 12, 14)),'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')); //set phpChart grid properties $pc->set_grid(array(     'background'=>'lightyellow',     'borderWidth'=>0,   […]

The post Set Axes Properties appeared first on PHP Charts & Graphs.

]]>
Use set_axes() method to set axes properites. You can have 2 x xaxes, and update to 9 yaxes.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$pc = new C_PhpChartX(array(array(11, 9, 5, 12, 14)),'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'));

//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)));

$pc->draw();

Live demo

Complete Grid reference: http://www.jqplot.com/docs/files/jqplot-core-js.html#Axis

The post Set Axes Properties appeared first on PHP Charts & Graphs.

]]>
https://phpchart.com/examples/set-axes-xaxes-yaxes-properties/feed/ 0