Personal tools
You are here: Home News Integrating charts into Plomino

Integrating charts into Plomino

Add dynamic charts into your forms

Integrating charts into Plomino

Google chart in Plomino form

A new feature hase been just added in Plomino, it is a quick and easy way to integrate charts into Plomino forms. It uses Google charts and it works just fine.

If you want to try it:

  • get the latest Plomino version from svn ( https://plomino.svn.sourceforge.net/svnroot/plomino/branches/plone3/CMFPlomino/ )
  • restart zope and reinstall Plomino
  • then you should see a new field type named Google chart
  • create a "computed for display" field using this type, and enter the following formula:
cost=75
margin=25
return {'chd': 't:'+str(cost)+','+str(margin), 'chs': '250x100', 'cht':
'p3', 'chl': 'Cost|Margin'}

 

and it will produce a pie chart (see attached screenshot). Of course the rendered values can be computed using any document field value, so it basically enable you to create very easily dynamic chart based on your Plomino data

.

 

That's just an example, there are a lot of different available chart types with a lot of options, you will find here all the documentation about Google Chart

.

Document Actions