Re: [visualization-api] Google ChartWrapper doesn't work with line charts

15 views
Skip to first unread message

Victor Oyemi

unread,
Apr 9, 2018, 8:59:00 AM4/9/18
to google-visua...@googlegroups.com
Hello Sir,

Please can one advice to call it up as it breaks out when trading tunes up,


Kindly pm for access to repo at github page.

Thanks.

On Mon, Apr 9, 2018, 1:48 PM Nimesh <nimesh...@gmail.com> wrote:

I am following this example from Google Chart documentation.


In the project all the existing graphs are plotted using ChartWrapper, so by following example I created this chart, now all I needed to do was replace the line where new Histogram instance is created with ChartWrapper.


i.e. Replace below code with:

let chart = new google.visualization.Histogram( document.getElementById("example") ); chart.draw(data, options);



Following code:

let wrapper = new google.visualization.ChartWrapper({ chartType: "Histogram", dataTable: data, options: options, containerId: "example_chartwrapper" }); wrapper.draw();

But it doesn't work and I am getting following error:


Invalid column index 1. Should be an integer in the range [0-0].


I have created two Code pen examples replicating this issue:

--
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/8d9670e4-d059-44e7-899d-4305d8ab5769%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel LaLiberte

unread,
Apr 9, 2018, 12:33:08 PM4/9/18
to Google Visualization API
Looks like a bug that occurred starting with version 42.  If you replace your 'current' version with '41', it appears to work.   It is also working with the 'upcoming' version now, though I can't be sure it will work correctly due to some other issues there.

Thanks for reporting this.  I'll try to make it work correctly for the 'upcoming' version.


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


--

Victor Oyemi

unread,
Apr 9, 2018, 8:11:17 PM4/9/18
to google-visua...@googlegroups.com
Sir,

Thanks for the feedback. Can you advice on sample clue to deploy a.d test 41.
Any work through will be appreciated of a collaborative so u can have a test on the environment.

Pm your github ID so we can collaborate. 

Appreciate your feedback

Daniel LaLiberte

unread,
Apr 9, 2018, 8:47:59 PM4/9/18
to Google Visualization API
I'm not sure what you are saying now about testing with version 41.    The 'current' version is actually 45.2, and the next version will be '46'.  If you want to keep testing with 'upcoming' that would be great, but some time in the future, when I am pushing out yet another release, it will become unstable again until the release is ready.

My github id is dlaliberte.


For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages