Questions tagged as 'google-charts'

1
answer

Change chart size for google charts at print time with @media print

I placed a chart with Google Charts on my page and to print it I want to reduce its size as a matter of print layout. The div that receives the graph is: <div id="GraficoNotas" style="width: 900px; height: 400px;"> I created a css for...
asked by 19.04.2017 / 16:44
0
answers

Upload Mysql Google Chart data

Could anyone help me? I can not load the data from Mysql in Google Chart ... if I use this same code, but in the "Pie" chart, it works, but in the non-line ... it draws the chart but not with data ... <!DOCTYPE html> <html> <he...
asked by 22.03.2017 / 02:28
0
answers

Google Charts - Center value on the 'Donut Chart' chart

I have a problem with google charts more specifically in the Donut Chart graph, the value is only centered when it is at 100%, when this is below the graph is' deformed, see image below. $(document).ready(function() { // Draw...
asked by 08.03.2017 / 16:08
0
answers

Google Script variable for HTMLService template

I have a published Google script . I would like to be able to select a display option between two alternatives based on the choice of password. I tried if else statement , switch , without success. See link and code for the two Go...
asked by 16.01.2017 / 20:09
0
answers

Error with popular Google Chart

The following error appears   Invalid data table format: column # 0 must be of type 'string'. At this point I have the return in json this way: [{"Field":"OrderTask","Old":"1","New":"2","Modified":"2016-12-08 11:16:27"}, {"Field":"Statu...
asked by 09.12.2016 / 19:35
1
answer

Generate different colors Google Chart

I am having doubts about how to generate the colors directly in the config when executing the code and where to add the colors to be generated, if in this case I should generate another graphical array? array('colors' => $obj->color)...
asked by 30.11.2016 / 21:04
1
answer

Cities with the same name using GeoCharts

I'm doing a project, using GeoCharts, how I'm working all the municipalities all over Brazil, there are some cities with the same name, when I show these cities, they appear in the wrong state, has anyone ever had this problem? In the following...
asked by 21.10.2016 / 02:11
1
answer

Graph with Google Charts [closed]

How can I fill out this graph with MySQL data? <?php $sql = 'SELECT * FROM historicos'; $resultado = mysqli_query($conn, $sql); ?> <script type="text/javascript"> google.charts.load('current', {'packages':['corechart']}); goog...
asked by 06.09.2016 / 16:55
1
answer

Error in the google-charts console?

The graphics are drawn correctly in the html, but this error remains in the console.    VM6537: 108 Uncaught Error: Container is not defined /*Graficos*/ google.charts.load('current', {packages: ['corechart']}); google.charts.setOnLoadCall...
asked by 01.08.2016 / 17:05
1
answer

Problem trying to use a chart and table with Google packages

I'm trying to use Google packages to put together a page, and I'm not able to put a chart and a table on the same page This is the code for the table <div id="table_div"></div> <script type="text/javascript" src="https://www....
asked by 30.07.2016 / 20:45