Dot – PHP Charts & Graphs https://phpchart.com Making charts in PHP is simple again. Wed, 19 Jul 2023 03:17:19 +0000 en-US hourly 1 https://wordpress.org/?v=5.8.13 Dots Only Chart with Trend Line https://phpchart.com/examples/dots-only-chart/ https://phpchart.com/examples/dots-only-chart/#respond Fri, 20 Jun 2014 18:10:16 +0000 http://phpchart.org/?p=1107 You can also render chart with dots or points only without line in between by setting “showGridLine” to false. You can further remove the grid and borders using set_grid() method. Add plugin “trendline” to show the linear approximation. 12345678910111213$pc = new C_PhpChartX(array(array(11, 9, 5, 12, 14)),'basic_chart'); $pc->add_plugins(array('trendline')); $pc->set_defaults(array('seriesDefaults'=>array('showLine'=>false))); // remove background, border and grid. $pc->set_axes(array( […]

The post Dots Only Chart with Trend Line appeared first on PHP Charts & Graphs.

]]>
phpCharr dot chart

You can also render chart with dots or points only without line in between by setting “showGridLine” to false. You can further remove the grid and borders using set_grid() method. Add plugin “trendline” to show the linear approximation.

1
2
3
4
5
6
7
8
9
10
11
12
13
$pc = new C_PhpChartX(array(array(11, 9, 5, 12, 14)),'basic_chart');
$pc->add_plugins(array('trendline'));
$pc->set_defaults(array('seriesDefaults'=>array('showLine'=>false)));
// remove background, border and grid.
$pc->set_axes(array(
    'xaxis'=>array('tickOptions'=>array('showGridline'=>false)),
    'yaxis'=>array('tickOptions'=>array('showGridline'=>false))));
$pc->set_grid(array(
    'background'=>'white',
    'borderWidth'=>0,
    'borderColor'=>'#000000',
    'shadow'=>false));
$pc->draw();

Live demo

The post Dots Only Chart with Trend Line appeared first on PHP Charts & Graphs.

]]>
https://phpchart.com/examples/dots-only-chart/feed/ 0