CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • How to enable charts on custom reports
Pages: [1]

Author Topic: How to enable charts on custom reports  (Read 1715 times)

zutroyquixote

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Joomla 1.5.23
  • MySQL version: 5.2.3
  • PHP version: 5.2.16
How to enable charts on custom reports
November 07, 2010, 09:52:25 am
I have been building a report for showing the total revenue and number of registrants YTD grouped by event type.  Because it is such a high level report it would be ideal to present in a pie chart. 

Looking at the wiki, forums and following the Event/Income report as example it is still not clear how to enable charting on a report.  I was able to easily remove the "add to group" action list just by setting $_add2groupSupported = false; so at first I was expecting something similar for charts.

Does it have to do with how the query is structured?  Is it only supported on certain record or column types?  Is there an include that is required? 

Guidance will be much appreciated - cheers!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to enable charts on custom reports
November 07, 2010, 12:13:30 pm

Check:

CRM/Report/Form/Contribute/Summary.php, function buildChart

that should give you a good example

would be great if you can update the report documentation to include instructions on how to build a chart once you figure it out

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

zutroyquixote

  • I’m new here
  • *
  • Posts: 28
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Joomla 1.5.23
  • MySQL version: 5.2.3
  • PHP version: 5.2.16
Re: How to enable charts on custom reports
November 08, 2010, 05:50:59 am
Thanks Lobo,

I will take a look there and hopefully get a useful set of instructions on the wiki for others.

Cheers,

Ben

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • How to enable charts on custom reports

This forum was archived on 2017-11-26.