Line charts : only 2 vertical lines are showing up.

30 views
Skip to first unread message

Shubham Goyal

unread,
Sep 20, 2017, 3:59:21 AM9/20/17
to Google Visualization API
Hi,

I've been trying to create a line chart (date vs number) but only 2 vertical gridlines are showing up. Can anyone suggest a solution please?

Thanks,

Daniel LaLiberte

unread,
Sep 20, 2017, 8:29:08 AM9/20/17
to Google Visualization API
Can you provide a few more details?  Since you mention gridlines, I am more concerned because I just announced the release of a new version (as 'current') in which there were many changes to the gridline generation.


Now in 24 countries

Download Zomato: iOS · Android · Windows

This email is intended only for the person or the entity to whom it is addressed. If you are not the intended recipient, please delete this email and contact the sender.

--
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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/3b86ebeb-9b1d-4429-a650-17c9f16754c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Chris Wheeler

unread,
Sep 20, 2017, 11:39:00 AM9/20/17
to Google Visualization API
I too am having issues with gridlines since the update to v46.

I have a chart on a blue background and it now has white vertical gridlines, which should be transparent. My code for chart options is as follows:

var options = {
chartArea: { 
width: '100%', 
height: '100%', 
backgroundColor: 'transparent'
},
backgroundColor: 'transparent',
hAxis: { 
title: '',
textPosition: 'none',
textStyle: { 
color: '#ffffff' 
},
gridlines: {
        color: 'transparent'
       }
},
vAxis: { 
title: '', 
textStyle: { 
color: '#ffffff' 
},
baselineColor: 'transparent',
textPosition: 'none', 
gridlines: {
        color: 'transparent'
       } 
},
legend: { position: 'none' }
};

Loading v45.2 makes the lines transparent, whereas v46 makes them white. This is only for the vertical lines (hAxis -> color -> 'transparent');

Thanks,

- Chris

On Wednesday, 20 September 2017 13:29:08 UTC+1, Daniel LaLiberte wrote:
Can you provide a few more details?  Since you mention gridlines, I am more concerned because I just announced the release of a new version (as 'current') in which there were many changes to the gridline generation.
On Wed, Sep 20, 2017 at 3:59 AM, 'Shubham Goyal' via Google Visualization API <google-visua...@googlegroups.com> wrote:
Hi,

I've been trying to create a line chart (date vs number) but only 2 vertical gridlines are showing up. Can anyone suggest a solution please?

Thanks,


Now in 24 countries

Download Zomato: iOS · Android · Windows

This email is intended only for the person or the entity to whom it is addressed. If you are not the intended recipient, please delete this email and contact the sender.

--
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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.



--

Daniel LaLiberte

unread,
Sep 20, 2017, 11:55:00 AM9/20/17
to Google Visualization API
Hi Chris,

The colors of the gridlines is a very different issue compared to the values of the gridlines, so thanks for pointing out this issue.  This might be related to earlier changes in how options are processed rather than how gridlines are generated.

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsubscr...@googlegroups.com.



--

--
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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages