If you don't need all columns to draw your chart (or you can combine the string columns into a single column of data), you can use a DataView <https://google-developers.appspot.com/chart/interactive/docs/reference#DataView> to restrict the columns you use, and/or use calculated columns that generate data based on the data in your DataTable. Here's an example:
// assumes your DataTable is in a variable called "data" var view = new google.visualization.DataView(data); // use User name (column 0), Priority count (column 1), and Time spent (column 2) view.setColumns([0, 2, 3]); You would then use the DataView when drawing your chart instead of your DataTable. On Thursday, October 30, 2014 4:33:01 AM UTC-4, Shekar Tippur wrote: > > Hello, > > I have a DataTable of the below form > > User_name (String), Priority (string), Priority count (number), Time_Spent > (number) > > Since there are 2 string columns, I get the error - All series of the > given axis must be of the same type. > > How do I get over this issue. > > I might have to create columns for priority and populate the data of the > form > > User_name, High, Medium, low, Time spent > > How do I take the existing data table and transform to a new data table > form? > > - Shekar > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to google-visualization-api@googlegroups.com. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.