Hi, I'm not clear on what you're doing or what you're seeing. If you could please give an example of sum_x that yields bad results for you, that would be great. Or if you could make a jsfiddle that shows the bug that would be even better.
- Sergey On Tue, Apr 15, 2014 at 2:03 AM, Mitrabhanu Panda <[email protected]> wrote: > Hi, I am a newbie and trying to get a table of data displayed from > javascript array converted to datatable using arraytodatatable. My problem > is the column names (headers) are all getting stacked in the first column > one below the other instead of coming on individual columns. Here are part > of my code relevant to this. Please help. > sum_x is array of data. columns stores the columns names. > > var temp_x = []; > temp_x.push(new Array(columns[x_axis],Summarizer+" of "+columns[y_axis])); > for(var i=0;i<sum_x.length;i++) { > temp_x.push(sum_x[i]); > } > drawChart(temp_x); > > function drawChart(x) { > var data = google.visualization.arrayToDataTable(x, false); > var table = new > google.visualization.Table(document.getElementById('table_div')); > table.draw(data, {showRowNumber: false}); > } > > -- > 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 [email protected]. > To post to this group, send email to > [email protected]. > Visit this group at > http://groups.google.com/group/google-visualization-api. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
