The issue you're seeing at this point isn't related to the style column. The issue is that you are mixing your data column types. You have 3 series in your data: Land, Index, and Stand, the types of which are string, number, and string, respectively. As you can see they are not all "the same data type", which is why you're getting that error. To be honest, I'm not really sure what you're trying to do, since some of your data columns look like domain columns, but it's unclear how you want them to be presented.
You need to structure your columns such that your domain column is the first one, and the data follows it, and ColumnChart doesn't support having a string data column. Here is a jsfiddle showing two possible ways to organize your data: http://jsfiddle.net/1hoqLs3v/ The first example uses the Land column as the domain, and the second example uses the Stand column as the domain. The first one makes more sense to me, but I'm also not really sure what you're trying to show here. On Wed, Mar 11, 2015 at 12:12 PM Manuel <[email protected]> wrote: > Hi Sergey, > > thank you for your real quick answer :-) > I changed my JSON and validated it (I should have done that before sorry > for that). > > Now it looks like: > { "cols":[ {"id":"","label":"Rang","type":"number"}, {"id":"","label": > "Land","type":"string"}, {"id":"","label":"Index","type":"number"}, {"id": > "","label":"Stand","type":"string"}, {"type":"string","role":"style"}], > "rows": [{"c":[ {"v":1,"f":null}, {"v":"Japan","f":null}, {"v":-49.25,"f": > null}, {"v":"Q3 | 2013","f":null},{"v":"#777777","f":null}]},{"c":[ {"v":2 > ,"f":null}, {"v":"Ungarn","f":null}, {"v":-19.8,"f":null}, {"v":"Q4 | > 2013","f":null},{"v":"#777777","f":null}]},{"c":[ {"v":3,"f":null}, {"v": > "Deutschland","f":null}, {"v":-13.75,"f":null}, {"v":"Q4 | 2013","f":null > },{"v":"#777777","f":null}]},{"c":[ {"v":4,"f":null}, {"v":"Irland","f": > null}, {"v":-12.63,"f":null}, {"v":"Q1 | 2014","f":null},{"v":"#777777", > "f":null}]},{"c":[ {"v":5,"f":null}, {"v":"Portugal","f":null}, {"v":- > 11.93,"f":null}, {"v":"Q1 | 2014","f":null},{"v":"#777777","f":null}]},{ > "c":[ {"v":6,"f":null}, {"v":"Slowenien","f":null}, {"v":-11.64,"f":null}, > {"v":"Q1 | 2014","f":null},{"v":"#777777","f":null}]},{"c":[ {"v":7,"f": > null}, {"v":"Griechenland","f":null}, {"v":-10.12,"f":null}, {"v":"Q4 | > 2013","f":null},{"v":"#777777","f":null}]},{"c":[ {"v":8,"f":null}, {"v": > "Island","f":null}, {"v":-5.63,"f":null}, {"v":"Q1 | 2014","f":null},{"v": > "#777777","f":null}]},{"c":[ {"v":9,"f":null}, {"v":"Estland","f":null}, { > "v":-5.24,"f":null}, {"v":"Q4 | 2013","f":null},{"v":"#777777","f":null > }]},{"c":[ {"v":10,"f":null}, {"v":"Tschechische Republik","f":null}, {"v" > :-5.17,"f":null}, {"v":"Q4 | 2013","f":null},{"v":"#777777","f":null}]},{ > "c":[ {"v":11,"f":null}, {"v":"USA","f":null}, {"v":1.92,"f":null}, {"v":"Q4 > | 2013","f":null},{"v":"#08088A","f":null}]},{"c":[ {"v":12,"f":null}, { > "v":"Korea","f":null}, {"v":2.52,"f":null}, {"v":"Q1 | 2014","f":null},{ > "v":"#777777","f":null}]},{"c":[ {"v":13,"f":null}, {"v":"Italien","f": > null}, {"v":3.5,"f":null}, {"v":"Q4 | 2013","f":null},{"v":"#777777","f": > null}]},{"c":[ {"v":14,"f":null}, {"v":"Niederlande","f":null}, {"v":4.7, > "f":null}, {"v":"Q1 | 2014","f":null},{"v":"#777777","f":null}]},{"c":[ { > "v":15,"f":null}, {"v":"Dänemark","f":null}, {"v":6.54,"f":null}, {"v":"Q4 > | 2013","f":null},{"v":"#777777","f":null}]},{"c":[ {"v":16,"f":null}, { > "v":"Mexiko","f":null}, {"v":6.88,"f":null}, {"v":"Q1 | 2014","f":null},{ > "v":"#777777","f":null}]},{"c":[ {"v":17,"f":null}, {"v":"Türkei","f":null > }, {"v":9.32,"f":null}, {"v":"Q4 | 2013","f":null},{"v":"#777777","f":null > }]},{"c":[ {"v":18,"f":null}, {"v":"Spanien","f":null}, {"v":10.62,"f": > null}, {"v":"Q4 | 2013","f":null},{"v":"#777777","f":null}]},{"c":[ {"v": > 19,"f":null}, {"v":"Israel","f":null}, {"v":10.67,"f":null}, {"v":"Q4 | > 2013","f":null},{"v":"#777777","f":null}]},{"c":[ {"v":20,"f":null}, {"v": > "Schweiz","f":null}, {"v":11.45,"f":null}, {"v":"Q1 | 2014","f":null},{"v" > :"#777777","f":null}]},{"c":[ {"v":21,"f":null}, {"v":"Slowakei","f":null > }, {"v":14.1,"f":null}, {"v":"Q1 | 2014","f":null},{"v":"#777777","f":null > }]},{"c":[ {"v":22,"f":null}, {"v":"Österreich","f":null}, {"v":15.36,"f": > null}, {"v":"Q1 | 2014","f":null},{"v":"#777777","f":null}]},{"c":[ {"v": > 23,"f":null}, {"v":"Finnland","f":null}, {"v":17.95,"f":null}, {"v":"Q1 | > 2014","f":null},{"v":"#777777","f":null}]},{"c":[ {"v":24,"f":null}, {"v": > "Luxemburg","f":null}, {"v":18.51,"f":null}, {"v":"Q1 | 2014","f":null},{ > "v":"#777777","f":null}]},{"c":[ {"v":25,"f":null}, {"v":"Frankreich","f": > null}, {"v":28.16,"f":null}, {"v":"Q4 | 2013","f":null},{"v":"#777777","f" > :null}]},{"c":[ {"v":26,"f":null}, {"v":"Grossbritanien","f":null}, {"v": > 30.44,"f":null}, {"v":"Q4 | 2013","f":null},{"v":"#777777","f":null}]},{ > "c":[ {"v":27,"f":null}, {"v":"Neuseeland","f":null}, {"v":31.41,"f":null > }, {"v":"Q4 | 2013","f":null},{"v":"#777777","f":null}]},{"c":[ {"v":28, > "f":null}, {"v":"Schweden","f":null}, {"v":32.05,"f":null}, {"v":"Q1 | > 2014","f":null},{"v":"#777777","f":null}]},{"c":[ {"v":29,"f":null}, {"v": > "Australien","f":null}, {"v":36.02,"f":null}, {"v":"Q1 | 2014","f":null},{ > "v":"#777777","f":null}]},{"c":[ {"v":30,"f":null}, {"v":"Belgien","f": > null}, {"v":38.07,"f":null}, {"v":"Q4 | 2013","f":null},{"v":"#777777","f" > :null}]},{"c":[ {"v":31,"f":null}, {"v":"Kanada","f":null}, {"v":42.07 > -- 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.
