winston / google_visualr

A Ruby Gem for the Google Visualization API. Write Ruby code. Generate Javascript. Display a Google Chart.

Home Page:http://googlevisualr.heroku.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Material design charts are broken for some chart types

bherbst opened this issue · comments

GoogleVisualr currently makes some incorrect assumptions about naming for the Google Chart API counterparts for various charts when using the {material: true} option.

For example, it assumes that the material counterpart to google.visualization.LineChart is google.charts.Line`.

This is correct for line and bar charts, but incorrect for area, map, and pie charts. There is no google.charts.Area, so if you pass in {material: true} the graph doesn't render and you get a JavaScript error.

Misread Google's documentation. Those types don't yet support the material flag anyway.