Your code seems to be working fine for me here: https://jsfiddle.net/dlaliberte/6gL48fcL/ Does it work for you there? Maybe your browser or plugins are causing some interference.
On Sun, Oct 1, 2017 at 2:24 PM, Tomáš Krsek <[email protected]> wrote: > Daniel, please, i have little problem with charts, when i first retrieves > page with chart, it show : (You called the draw ()method with the wrong > type of data rather than a DataTable or DataView), when I do refresh of > this page it show charts correctly. > > Please where cab be the mistake - the code is > Thank you! > > <script type="text/javascript" > > src="https://www.gstatic.com/charts/loader.js"></script> > > <script type='text/javascript'> > google.charts.load('current', { > 'packages': ['corechart'] > }); > google.charts.setOnLoadCallback(drawChart); > > function drawChart() { > var wrapper = new google.visualization.ChartWrapper( > {"containerId":"visualizationF27B","dataTable":{"cols":[{" > id":"","label":"","pattern":"","type":"string","p":{}},{"id":"","label":"vymoženo > CZK","pattern":"","type":"number","p":{}},{"id":"","label":"zbývá vymoci > CZK","pattern":"","type":"number"}],"rows":[{"c":[{"v":"červ > enec","f":null},{"v":15,"f":null},{"v":44,"f":null}]}],"p" > :null},"options":{"isStacked":true,"animation":{"duration": > 2500,"startup":true},"bar":{"groupWidth": "25%"},"booleanRole":"certaint > y","hAxis":{"useFormatFromData":true,"viewWindow":{"max": > null,"min":null},"minValue":null,"maxValue":null," > logScale":false,"gridlines":{"count":"3"}},"vAxes":[{"useFor > matFromData":true,"minValue":null,"maxValue":null," > viewWindow":null,"viewWindowMode":null},{"useFormatFromData" > :true}],"legend":"bottom","series":{"1":{"color":"# > b7b7b7"}},"title":"Celkový","fontName":"Georgia"},"state":{ > },"isDefaultVisualization":true,"chartType":"BarChart"} > ); > wrapper.draw(); > }; > </script> > <div style='border: 0px darkgray solid;width:500px;'> > <div id='visualizationF27B' style='width:500px; height:200px;'></div> > </div> > > -- > 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 google-visualization-api@ > 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/09ee6b40-8769-46df-a20b- > 4f3fd606ffae%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/09ee6b40-8769-46df-a20b-4f3fd606ffae%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> [email protected] <[email protected]> 5CC, Cambridge MA -- 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 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/CAOtcSJOnW846fuLndZfb1a6VsBAgMOyrjHux%2BNN1DVtfoH88SQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
