chart_size accepts maximum 400,200

vacilando - June 4, 2008 - 07:44
Project:Chart API
Version:5.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:tjholowaychuk
Status:active
Description

Hi again - it seems that chart_size accepts maximum 400,200.

I saw http://code.google.com/apis/chart/#chart_size that tells about size limits, but even if I set the permitted 800,375 or 600,500, or in fact anything beyond 400,200, the chart size becomes 300x150 pixels.

Is that normal or am I doing something wrong?

My test code's snippet:

$chart = array(
      '#chart_id' => 'test_chart',
      '#title' => chart_title(t('Test'), 'cc0000', 15),
      '#type' => CHART_TYPE_LINE,
      '#size' => chart_size(800, 375),
    );

Also, what are your further plans about developing Chart API for Drupal 5? (I cannot yet upgrade to Drupal 6, and I assume many people are in the same situation.)

Thanks!

#1

tjholowaychuk - June 4, 2008 - 14:21

I am not certain is Google has changed this lately, but they did have a limit on the total number of pixels rendered, which is scaled down by this module so that devs dont just end up seeing some blank screen thinking what did i do! I have not bothered to begin porting my modules yet but hopefully soon when I have time, as for D5 thats a possibility, I have not personally come across any other need for the chart module yet but if anyone has additional suggestions im sure myself or the community could whip up some code

#2

vacilando - June 4, 2008 - 18:33

The URL I posted above (for some reason it does not show properly, so here it is again: http://code.google.com/apis/chart/#chart_size) mentions that pixel limit, but 400,200 is way below that.

Have you ever done any tests that rendered images larger than that? Are you able to generate a large image now? If you answer 'yes' and then 'no', then Google has lowered the limit. If you answer 'no' and 'no', well, then perhaps there's a reason to mark this as a possible bug :-)

#3

tjholowaychuk - June 4, 2008 - 19:01
Category:support request» bug report
Assigned to:Anonymous» tjholowaychuk

I am sure I did at the time, they may have changed the size I cannot remember, I will flag it as a bug for now ( probably is ).

#4

Bobuido - November 30, 2009 - 20:17

Subscribing

 
 

Drupal is a registered trademark of Dries Buytaert.