plugin – PHP Charts & Graphs https://phpchart.com Making charts in PHP is simple again. Wed, 08 Apr 2015 08:31:36 +0000 en-US hourly 1 https://wordpress.org/?v=5.8.13 Add Non-renderer Plugins https://phpchart.com/examples/add-non-renderer-plugins/ https://phpchart.com/examples/add-non-renderer-plugins/#respond Fri, 25 Nov 2011 05:33:02 +0000 http://phpchart.net/?p=275 For non-renderer plugins such as highlighter, cursor, etc, they must be added maunally using add_plugins() method whenever needed. Those type of plugins do not actually do any rendering but adding additional features such as mouse over highlight, zoom in/out and mouse cursor. 123456$pc = new C_PhpChartX(array(array(11, 9, 5, 12, 14)),'basic_chart'); $pc->set_animate(true); $pc->set_title(array('text'=>'Basic Chart with Bar […]

The post Add Non-renderer Plugins appeared first on PHP Charts & Graphs.

]]>
For non-renderer plugins such as highlighter, cursor, etc, they must be added maunally using add_plugins() method whenever needed. Those type of plugins do not actually do any rendering but adding additional features such as mouse over highlight, zoom in/out and mouse cursor.

1
2
3
4
5
6
$pc = new C_PhpChartX(array(array(11, 9, 5, 12, 14)),'basic_chart');
$pc->set_animate(true);
$pc->set_title(array('text'=>'Basic Chart with Bar Renderer'));
$pc->set_series_default(array('renderer'=>'plugin::BarRenderer'));
$pc->add_plugins(array('highlighter', 'cursor'));
$pc->draw();

List of non-renderer plugins:

  • CanvasTextRenderer
  • Highlighter
  • CanvasOverlayciParser
  • Cursor
  • Dragable
  • PointLabels
  • Trendline

Note that CanvasTextRenderer is a non-renderer plugin even it is suffixed with “renderer”. This is not an error. This is because it’s not a renderer by itself. It creates a HTML5 canvas in which other renderer plugins can be used such as CanvasAxisLabelRenderer and CanvasAxisTickRenderer.

Live demo

The post Add Non-renderer Plugins appeared first on PHP Charts & Graphs.

]]>
https://phpchart.com/examples/add-non-renderer-plugins/feed/ 0
Change Renderer Type (paid versions) * https://phpchart.com/examples/change-renderer-type/ https://phpchart.com/examples/change-renderer-type/#respond Fri, 25 Nov 2011 02:54:37 +0000 http://phpchart.net/?p=267 Note: * Renderers other than the default Line type is only available in paid versions. By default the renderer is line type. You can change to other renderer type by simply using a renderer plugin such as Bar Renderer. Must prefix with plugin:: before renderer name. phpChart automatically includes required jqplot plugins files for you. […]

The post Change Renderer Type (paid versions) * appeared first on PHP Charts & Graphs.

]]>
Note:
* Renderers other than the default Line type is only available in paid versions.

By default the renderer is line type. You can change to other renderer type by simply using a renderer plugin such as Bar Renderer. Must prefix with plugin:: before renderer name. phpChart automatically includes required jqplot plugins files for you.

Different renderer can be applied to different part of chart such as series, legend, grid, and axes. In this example, the Bar Renderer is used when displaying data series.

Series default are the default options that will be applied to all series such as type of renderer, renderer options, label, color, shadow etc. e.g.

1
2
3
4
5
$pc = new C_PhpChartX(array(array(11, 9, 5, 12, 14)),'basic_chart');
$pc->set_animate(true);
$pc->set_title(array('text'=>'Basic Chart with Bar Renderer'));
$pc->set_series_default(array('renderer'=>'plugin::BarRenderer'));
$pc->draw();

Live demo

 
 

List of available renderer plugins for different chart types (case-sensitive):

  • BarRenderer
  • BezierCurveRenderer
  • BlockRenderer
  • BubbleRenderer
  • CanvasAxisLabelRenderer
  • CanvasAxisTickRenderer
  • CategoryAxisRenderer
  • DateAxisRenderer
  • DonutRenderer
  • EnhancedLegendRenderer
  • FunnelRenderer
  • LogAxisRenderer
  • MekkoAxisRenderer
  • MekkoRenderer
  • MeterGaugeRenderer
  • OHLCRenderer
  • PyramidAxisRenderer
  • PieRenderer

The post Change Renderer Type (paid versions) * appeared first on PHP Charts & Graphs.

]]>
https://phpchart.com/examples/change-renderer-type/feed/ 0