Issue with Histogram Legend

8 views
Skip to first unread message

david.d...@nexstepbiomarkers.com

unread,
Sep 9, 2015, 2:16:17 AM9/9/15
to Google Visualization API
Hi All,

First off, I am quite the newbie to google visualization, so please excuse the density of this post. 

I am generating a histogram from an array of raw data:
var arr = [];
                arr.push(['Item1', 'Item2', ... ]);
                arr.push([ -3000, null, ...  ]);
                arr.push([ 5000, null, ... ]);
                ... etc.

var data = google.visualization.arrayToDataTable(arr);
var options = {
                    title: 'My Time Histogram'
                    };

var chart = new google.visualization.Histogram(document.getElementById('chart_div'));
chart.draw(data, options);


My issue is that when the legend is generated, the text "(count)" is appended to every entry. Is there a way to prevent this?

One caveat is that I cannot do the standard:
var data = new google.visualization.DataTable();
data.addColumn  ([  array Here   ])


Thanks for any help.
-david

 
Reply all
Reply to author
Forward
0 new messages