Author Topic: Easy Chart Builder: Upping the group limit from 12?  (Read 4357 times)

sitwi

  • Tadpole
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Easy Chart Builder: Upping the group limit from 12?
« on: August 03, 2011, 08:06:08 AM »
I understand this won't be to everyone's tastes, so is there any chance you could provide the code changes so that I could increase the group limit on my own installation, please?

I really need about 25 groups!   :o

Thanks again.
« Last Edit: August 03, 2011, 11:37:58 AM by sitwi »

doug@dyerware.com

  • Administrator
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: +15/-0
    • View Profile
    • Email
Re: Easy Chart Builder: Upping the group limit from 12?
« Reply #1 on: August 04, 2011, 12:09:42 AM »
the limit in groups is related to how long of a chart request that can be made to google (the charts are rendered by google).

How many points are you talking about total?  I can up the limit but it may not help

sitwi

  • Tadpole
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Easy Chart Builder: Upping the group limit from 12?
« Reply #2 on: August 05, 2011, 09:11:20 AM »
I'm looking for 25 for a one-off chart, but I understand why that might not be feasible.

doug@dyerware.com

  • Administrator
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: +15/-0
    • View Profile
    • Email
Re: Easy Chart Builder: Upping the group limit from 12?
« Reply #3 on: August 05, 2011, 12:26:57 PM »
Well looking at the code it is a trivial change so if you want to try it I would be happy to help get it going.  The javascript portion was made completely flexible.  The only thing holding you back is the list of short code arguments which are in easy-chart-builder.php in a method called 'process_shortcode'.  Go to line 285 or so.

Locate this statement:
Code: [Select]
'group12values' => '',

Just copy and paste that line and continue the numeric count:
Code: [Select]
'group12values' => '',
'group13values' => '',
'group14values' => '',
'group15values' => '',
...

You will have to do the same for the markers (group12markers ...).  they are just below these.

Then I think you are done!  If your chart fits let me know and Ill see about making the change official.