You nailed it on all fronts!

Got 'er going correctly now!!!!

Definite need for clearer language in the documentation.

To me at least, the explanation seems counter intuitive, but once explained makes sense.

Thanks again for helping me get over the hump.
  [:-)}


On 12/15/2014 10:19 AM, 'Daniel LaLiberte' via Google Visualization API wrote:
Ken,

You may have gotten the wrong idea about the 'height' vs 'chartArea.height' The 'chartArea' is the part inside the axes, where the drawing of the data is displayed. The overall chart contains the chartArea, surrounded by the top, bottom, left, and right areas. The 'height' is for the total chart size, including the chartArea.height. So the 'height' should generally be larger than the 'chartArea.height', not smaller. (I see now that your suggested comment got it backwards.) Same for 'width' and 'chartArea.width'.

Another thing that might be going on is if the html element you put the chart in has a height, that could override whatever you specify for the chart itself. Also, your second chart might be positioned such that it covers up the bottom of the first chart. Your chartTemps.html doesn't seem to have the content I would need to tell what is going on, but maybe you can figure it out from here.


On Mon, Dec 15, 2014 at 9:59 AM, Ken Burkhalter <[email protected] <mailto:[email protected]>> wrote:

    Daniel-

    Apparently I spoke too soon.  I seems I've taken one step forward
    and two steps back.

    Using your suggested code, I eliminated the unwanted vertical
    spacing but then later noticed that my chart A-axis labels dropped
    the last label.  The axis should have been labeled from 0-24, but
    was then just 0-23.

    So I thought that perhaps I needed to also add "width" control
    like your "height" suggestions.

    As soon as I did that, I then lost all of the x-axis labels and
    tick marks.  The chart was cropped right thru the minimum x-axis
    tick line, slicing off the bottom half of the lower y-axis label
    as well as all of the x-axis labels. (Note red outlined area on
    image below)...
    
<https://lh3.googleusercontent.com/-XBTHOmJDTUk/VI7znpYaIEI/AAAAAAAACgw/TrUAJ7tz3EY/s1600/chrt.jpg>

    No matter what I have tried with the Var options settings, I can't
    fix this issue.  If I make the "height" considerably smaller than
    the "chartArea.height" the chart resizes appropriately but is
    still cropped.  I've tried different browsers, and three different
    computers, and restarted my web server in case this was a caching
    issue somewhere but to no avail.  There is nothing I can do that
    will restore an uncropped chart now. I even removed all style
parameters from the html chart_div entry in the page body code. Nothing seems to make a difference! The chart remains cropped at
    the bottom no matter what.  I also can find no chart config
    options that I might have inadvertently changed or dropped.

    There seems to be "memory" somewhere but I'll be danged if I can
    find it.

    I have attached my html page code as well as the csv file that
    drives the chart creation, and the img file just below the google
    chart, if case it helps you discover what the heck is going on.

    If you can advise the cure for this AND the lost last x-axis tick
    mark label (24) I would sure be a happy camper!  :-)

    This seems like voo-doo dust has gotten into the works somehow.
      [:-)}

-- You received this message because you are subscribed to the Google
    Groups "Google Visualization API" group.
    To unsubscribe from this group and stop receiving emails from it,
    send an email to
    [email protected]
    <mailto:[email protected]>.
    To post to this group, send email to
    [email protected]
    <mailto:[email protected]>.
    Visit this group at
    http://groups.google.com/group/google-visualization-api.
    For more options, visit https://groups.google.com/d/optout.



--
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058
[email protected] <mailto:[email protected]> 5CC, Cambridge MA
[email protected] <mailto:[email protected]> 9 Juniper Ridge Road, Acton MA
--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/7sD67KFpUhk/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>. Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

--
-ken burkhalter

--
You received this message because you are subscribed to the Google Groups "Google 
Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to