Missing bars from chart

23 views
Skip to first unread message

Troy Forsyth

unread,
Mar 10, 2016, 1:57:46 PM3/10/16
to Google Visualization API
I've got my data coming in, formatted properly, and am showing the x & y axis. for some reason though, the actual bars are not rendering.

When I use the google example: 

                var data = google.visualization.arrayToDataTable([
               ['Element', 'Density', { role: 'style' }, { role: 'annotation' }],
               ['Copper', 8.94, '#b87333', 'Cu'],
               ['Silver', 10.49, 'silver', 'Ag'],
               ['Gold', 19.30, 'gold', 'Au'],
               ['Platinum', 21.45, 'color: #e5e4e2', 'Pt']
                ]);

I get the attached image:


Please help!

Untitled.png

Daniel LaLiberte

unread,
Mar 10, 2016, 2:36:21 PM3/10/16
to Google Visualization API
Hi Troy,

The other thing that can affect your charts is your options.  Could you share those as well?

It's also possible that some CSS on your page is affecting the SVG, but less likely.

--
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-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@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/ab9bd6be-832a-4e41-a24f-83d04f6283c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Troy Forsyth

unread,
Mar 10, 2016, 3:55:04 PM3/10/16
to Google Visualization API
I removed all options from the form. The pie chart on the view works fine. It's just the bar chart.

I have a popover trigger event launching the drawChart.

Also, it works fine and dandy in chrome, but edge gets the results you see.


On Thursday, March 10, 2016 at 2:36:21 PM UTC-5, Daniel LaLiberte wrote:
Hi Troy,

The other thing that can affect your charts is your options.  Could you share those as well?

It's also possible that some CSS on your page is affecting the SVG, but less likely.
On Thu, Mar 10, 2016 at 1:57 PM, Troy Forsyth <fors...@gmail.com> wrote:
I've got my data coming in, formatted properly, and am showing the x & y axis. for some reason though, the actual bars are not rendering.

When I use the google example: 

                var data = google.visualization.arrayToDataTable([
               ['Element', 'Density', { role: 'style' }, { role: 'annotation' }],
               ['Copper', 8.94, '#b87333', 'Cu'],
               ['Silver', 10.49, 'silver', 'Ag'],
               ['Gold', 19.30, 'gold', 'Au'],
               ['Platinum', 21.45, 'color: #e5e4e2', 'Pt']
                ]);

I get the attached image:


Please help!

--
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.



--
Reply all
Reply to author
Forward
0 new messages