Questions tagged as 'chart.js'

1
answer

In chart.js print graphics in a csv or Excel

Hello colleagues, I am trying to print my graphic in an excel (xlsx or csv) the problem is that I have only found that only the data of the table is printed but not the graph as such. So I would like to know if there is any way or I have to use...
asked by 11.07.2018 / 18:52
1
answer

google chart PHP and Mysql

Good morning, I am making an application in PHP and Mysql to manage the reports attended in a customer service office of a water and sanitation services company. At the moment I am trying to generate graphical statistical reports u...
asked by 24.11.2017 / 16:32
1
answer

How to convert or create a string to elements in js

I probably did not present the question well I'm a rookie in json code and I need to create a canvas graphic with javascript. The queries in php and mysql are made correctly and I convert the results in an array and this in json code to work...
asked by 19.09.2017 / 06:55
1
answer

Error using Javascript variable in Chart.js

In Laravel, I have a function defined on the blade to capture the selected text in a drop-down list: <script type="text/javascript"> function sacar_nombre(){ var combo = document.getElementById('titulo'); var titulo = combo.options[c...
asked by 10.09.2017 / 12:09
1
answer

How to add an average line to a graph in chartjs?

Here is an example of a graphic I made: var data_labels = ['Tue Jul 04 2017 00:00:00 GMT-0400 (Hora estándar oeste, Sudamérica)', 'Wed Jul 05 2017 00:00:00 GMT-0400 (Hora estándar oeste, Sudamérica)', 'Thu Jul 06 2017 00:00:00 GMT-0400 (...
asked by 26.07.2017 / 18:39
1
answer

Fill ChartJS with PHP

I want to fill a graph with an array that I generate in PHP with a query in MYSQL but I do not know how to use it in the JS of the graph. This PHP is where I generate the array: $nmes = $mes; $sumpt = 0; $nestedData=array(); $sqlven =...
asked by 12.12.2018 / 20:41
1
answer

graphics in html php

I have this graph that shows a bar only. How can I put another two bars on the side of this and that it changes its colors depending on whether the data is less than 50 is red and greater than 50 is blue? var ctx = document.getElementByI...
asked by 20.11.2018 / 16:28
0
answers

graph chart.js

I have this graph, how can I make it change its colors depending on whether the data is less than 50 is red and greater than 50 is blue? var ctx = document.getElementById('chart'); var myChart = new Chart(ctx, { type: 'bar', data: {...
asked by 20.11.2018 / 19:30
0
answers

How to invert the scale to the Radar chart, from angular-chart.js?

I have the following graph made with angular-chart.js What I want to do is invert the numbering that appears there, and start from Outside 0 - towards Inside 70 , I've tried with the option reverse that appears in the documentati...
asked by 11.11.2018 / 20:00
0
answers

Problems plotting Chart.js in Laravel 5

I need to use chart.js in laravel 5, I never really work with that library, even though I do not see that it is very complicated. I found the material of fxcosta / laravel-chartjs but even that does not work for me, I get the following error in...
asked by 23.10.2018 / 06:26