Most voted "google-charts" questions
The Google Chart API is an online tool developed by Google that makes it possible to create dynamic charts through web pages in minutes, its operation is quite simple, it just makes an HTTP request by sending parameters and returns an image in PNG format with the requested chart.
Learn more…133 questions
Sort by count of
-
1
votes1
answer34
viewsGoogle Charts with code on body to request
Guys someone has already used goolecharts ? I can only make the plot if it is in the head, how do I make his code stay in the body ? 'Cause I want to plot via a request
-
1
votes0
answers58
viewsPlace graphic trend line
I have a Graphic in my project and I needed to put a trend line, but I have no idea where the code goes for this or how to do it: (function () {…
-
1
votes0
answers212
viewsFill a Chart chart with excel data
I’m creating a Dashboard based on an excel spreadsheet, I was able to create the charts using Chart.js but I don’t know a way to get the data to be taken from the spreadsheet, anyone know a way to…
-
1
votes0
answers61
viewsAlways show chart caption
I wish all subtitles were already open the same where it’s red…
-
1
votes0
answers489
viewsReal-time xy graph in the inventor app using Chart.js
I’m new to java development, but I’d like to know how I can use Chart.js graphics to generate a real-time scatter xy chart with sensor data. The goal is to plot at x the applied potential (V), and…
-
1
votes1
answer346
viewsFormat x-axis values - Google Charts
I need to format the x-axis values in the chart I’m making. I couldn’t find anything in Google to solve my problem: as you can see in the image, the value is so R $ 1000000, I would like to leave it…
google-chartsasked 6 years, 7 months ago Otavio Souza Rocha 545 -
1
votes0
answers17
viewsHow to modify the data of a Column Chart by clicking on a section of a Pie Chart? (Google Chart)
The question is this: I want to create a Column Chart (or modify the data of an existing Column Chart) by clicking on a Pie Chart. I tried to modify the Column Chart by clicking on the Pie Chart but…
-
1
votes0
answers30
viewsProblems with googlecharts
Good afternoon, I have following problem, when I start my site it appears the nice chart but when I click to go to page it from the problem and does not show it. The site is programmed in ajax, so I…
-
1
votes0
answers242
viewsFill in Chart (Chart) with vector data
I’m new here and this is my first question, I’m starting in PHP and wanted to know how to fill a CHART with variables received by an array. My code sample is as follows:: <?php $datacomp =…
-
1
votes3
answers4250
viewsHow popular google line chart Charts with JSON
I am trying to popular a line google-Harts chart, it will be quite simple just the client name on the x axis and the amount of open calls on the y axis, I am returning the following JSON array…
-
1
votes1
answer403
viewsError to popular google chart Charts
I’m facing the following mistake: VM3611:231 Uncaught Error: Unknown header type: 6 Code: google.charts.load('current', {'packages': ['corechart']}); google.charts.setOnLoadCallback(drawChart);…
-
1
votes1
answer667
viewsHow to land % to integer on google Harts
I got this Chart: In the visible part this percentage, as I do to change the percentage by the whole quantity: Example: As shown in the attached image instead of showing 14.3% show 1. Follows my…
-
1
votes1
answer1815
viewsHow to add vertical line in column type chart
I am using the column chart of the Google Chart API. I would like to insert a vertical line in a given position dynamically. I have an array that indicates value => quantity. In a fictional…
-
1
votes1
answer1133
viewsChange position of Annotation in google Chart
The idea is to make the text of the line type Annotation stand over the column. I tried to create another Annotation for the same column, but did not succeed. JS: google.charts.load("current", {…
google-chartsasked 7 years, 8 months ago Cobra 1,159 -
1
votes0
answers775
viewsUpload Mysql Google Chart data
Can someone help me? I can’t load the Mysql data in Google Chart...if I use this same code, but in the graphic "Pie", it works, but in line it doesn’t... it draws the chart but not with data...…
-
1
votes1
answer509
viewsGet JSON return without "result" in Ajax or return without "result" in Delphi
I am generating a JSON in Delphi with mORMot and I need to pick it up on a page to generate some graphics with Google Chart, however the Delphi return me the JSON within a result. I just mount the…
-
1
votes2
answers606
viewsHow to decrease google letters
Hello, I would like to know how to customize the letters of Google Charts, I have a generated chart, however the names are big, so they do not appear all, someone knows a way to decrease the letters…
-
1
votes0
answers463
viewsHow to break the caption line on Google Charts
In the Image 1 (below), shows a template of how I want the caption to look. In the Image 2 (below), shows how it is coming out (in case, no line break). Question How do I break the caption’s line on…
-
1
votes1
answer878
viewsHow to generate two Google Charts on the same page?
I know that the code below generates 1 graph inside the page but I need to generate several graphs and I do not know the logic used to achieve, dynamically, the goal. Can you help me please?…
-
1
votes1
answer1024
viewsChange bar color Chart Bar Google
I would like the help of you to change the color of the bars, I could not even putting as parameter the Colors it does not change. I’m using the Google Charts Api. Thanks for the help. <script…
google-chartsasked 7 years, 1 month ago Jacob de Oliveira 301 -
1
votes3
answers1342
viewsDoubt with Google Charts API
I have a bar graph on my system using the google Charts API. It is already working, but I have the following problem. I present in the graphs the amounts received and monthly expenses from January…
google-chartsasked 7 years, 1 month ago Gustavo Vazzoler 11 -
1
votes1
answer3488
viewsHow to chart with Google Charts and PHP
I need to make a chart where it shows total entries and exits in pizza, I tried something like: <?php //Estrutura básica do gráfico $grafico = array( 'dados' => array( 'cols' => array( ),…
-
1
votes1
answer884
viewsGoogle Charts with SQL Server
Hello, I’m trying to develop some graphics in a web application Asp.net MVC 5, regarding the development of the report, quiet, leaving with fixed information. But, how can I integrate the graph with…
-
1
votes1
answer102
viewsGoogle’s Pie Chart is deformed when called by Javascript function
Hey there, guys. I’m having trouble making a chart that is "display:None" in "display: block" through Javascript. The problem is that when I make the graph visible it gets smaller than expected. The…
-
1
votes0
answers30
viewsGoogle Chart - Treemap does not appear
Hello, I’m trying to plot a treemap with data from a BD (mysql), however, nothing appears. I have tried several alternatives and unsuccessfully. I have been able to plot several graphs, except…
-
1
votes1
answer74
viewsSet colors in Google Geochart Laravel?
I’m trying to define the colors of the Brazilian states, which are coming from mysql via json the information, but I’m not having resulted in the return of colors. Ex.: São Paulo in color Blue -…
-
1
votes1
answer714
viewsFormat decimal numbers in Google Chart
I am using Google Chart to bring decimal values from PHP. The structure is as follows: PHP <?php $visualizarChartPagos = $metodos->visualizarPagosChart(date("Y")); $valor =…
-
1
votes0
answers212
viewsGoogle Charts Annotation outside the column
When creating the chart, with Annotations for the column, on account of 'Stem', even defining its color as 'Transparent', it remains there, occupying space, how to put an annotation inside the…
-
1
votes0
answers28
viewsGoogle Charts displaying data in wrong order
I am trying to do a Dashboard in a test application that in case would be the amount of each item in each month, with this I do some queries in the backend and pass such information to the front,…
-
1
votes0
answers20
viewsHow to identify the states of a google map Maps of Brazil to be able to change the background color individually?
<div class="col-md-7 col-sm-12"> <div id="geochart-colors"> </div> </div> <div class="col-md-5 col-sm-12"> <div…
-
0
votes1
answer63
viewsResults above 10 data to display in charts by google Charts
Hello, I would like to know if you can insert some chart by google Charts with data over 10 data, because I’m trying here and I can not, only displays 10 data above this generates an error. Someone…
-
0
votes1
answer243
viewsHow to use Google Chart radar?
I have a chart and would like to make it look like in the image. (two or more lines) I already have the following code: http://jsfiddle.net/05g2nw0r/…
-
0
votes2
answers152
viewsChartkick Problem in a Rails Application
I’m trying to implement the Gem Chartkick in a Rails application, but I’m having a small problem. My application has a relationship between two models: class Animal < ActiveRecord::Base…
-
0
votes0
answers100
viewsGchart with Django
Hi I am developing a Django application that creates graphics. And I have implemented a line chart using Gcharts insert link description here but it only has one line, and in the example I’ve seen…
-
0
votes1
answer2180
viewsChange the colors of google Charts
I’m using google Harts generating 4 pizzas. How do I change the colors that appear ? Follows my code: <?php include("conn_user.php"); include("conn_sys.php"); if (!isset($_SESSION))…
-
0
votes1
answer53
viewsGoogle charts returning null in mysql query and loop
If I perform the query in the database it returns values, already in Charts it is returning null, what I am doing wrong ? <?php require("conexao.php"); //chama o arquivo de conexão ao BD…
-
0
votes1
answer3140
viewsCopy and paste into different sheets in Google Sheets
I’m trying to copy a value from one table and send it to another using the Google Sheets script, but I get the following error Target range and source range must be on the same spreadsheet function…
-
0
votes1
answer131
viewsCities with the same name using Geocharts
I’m doing a project, using Geocharts, as I’m working all the municipalities throughout Brazil, there are some cities with the same name, when I show these cities, they appear in the wrong state, has…
-
0
votes1
answer820
viewsChange chart size of google Harts at print time with @media print
I put a chart mounted with Google Charts on my page and to print it I want to reduce its size, for a matter of printing layout. The div that receives the chart is: <div id="GraficoNotas"…
-
0
votes1
answer1058
viewsGoogle Chart - Bar Chart change background (Background)
I have the Code: <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> google.charts.load('current',…
-
0
votes0
answers65
viewshow to set the maximum value a column can have with Google Charts
I have a comparative graph between the student’s grade and the class average, but I wanted the Y-axis value to always be 100 and the minimum 0.
google-chartsasked 7 years, 5 months ago Rodrigo Soares 11 -
0
votes1
answer389
viewsChange title color in google graphics
I’m making a chart using google Harts and want to change the title color. My chart settings are through a json file: 'config' => array( 'title' => 'Despesas', 'width' => 400, 'height' =>…
-
0
votes1
answer43
viewsReplace datatable Labels in a Chart
I’m populating a Area Chart from the datatable returned by Analytics API, but column Labels are populated with metric names ga:sessions, ga:pageviews,ga:goalsCompletionsAll, ga:bounces, etc.... The…
-
0
votes1
answer57
viewsHow to place a value of a var inside an array item?
I’m touching the Google Charts, but I came across a situation, and I was wondering if you could do something like in the example: var numero = 45; var data = google.visualization.arrayToDataTable([…
-
0
votes1
answer635
viewsJavascript: Add object within an object array
I have: var options = { title: 'Titulo', width: largura, height: altura, vAxis: { title:"Porcentagem % em vendas", format: 'decimal' }, hAxis: { title: "Seleção de clientes - Comutativa", } }…
-
0
votes2
answers166
viewsHow to edit this chart to work with more lines
I’m using the Google API to generate charts : google.charts.load('current', {packages: ['corechart', 'line']}); google.charts.setOnLoadCallback(drawBarColors); function drawBarColors() { var data =…
-
0
votes1
answer50
viewsHow could I optimize this PHP JS code?
I have this code in PHP and JS that searches in BD the visits that the site X received in the current month and plays on a chart of Google Charts. Despite being functional and serving me well until…
-
0
votes1
answer331
viewsUpdating data from charts already instantiated
I’m using the Google Charts and I am needing to update a map that is already instantiated as a valid map, I actually want to update the data from inside a map. Today I’m doing it this way: var…
-
0
votes1
answer181
viewsProblem when trying to use a chart and table with Google packages
I’m trying to use Google’s packages to build a page, and I’m not getting a chart and a table on the same page This is the code for the table <div id="table_div"></div> <script…
-
0
votes1
answer52
viewsError in the google-Charts console?
The graphics are drawn correctly in html, but this error is in the console. VM6537:108 Uncaught Error: Container is not defined /*Graficos*/ google.charts.load('current', {packages: ['corechart']});…