Questions tagged as 'chartjs'

0
answers

Angular 6 using ChartJs creating dynamic charts how to reference the canvas?

I need to create a chart for each product, and I do not know how many products have in the array in advance. So, in the template I'm dynamically creating the canvas like this: <div *ngFor="let item of Grafico; let i = index"> <canva...
asked by 08.11.2018 / 15:48
1
answer

Error creating graph with API data - Axios / Vue

Hello, I'm building a graph that collects meteorological data from the city of Curitiba through an API retrieve, but nothing is collected and so the graph is not created, I'm using vue / axes for this system. > I would like a light on this pro...
asked by 27.11.2018 / 17:25
0
answers

How do you readjust the label of a chart js chart?

How do I adjust the font size of the label or place a line break? The text is not fully fit, so 1080 monitor fits, but 720 happens that. Mycode:<script>varmyChartcaixa=newChart(document.getElementById("caixa-chart"), { type: 'p...
asked by 06.11.2018 / 13:02
0
answers

How to pass data to View generate a chart with Chart.js

I need to generate a line chart with chart.js. How can I pass data to my View? I'm trying as below, but the graph does not appear. Controller public IActionResult Index() { var qryGlobal = _diagnosticRepository.GetAll()...
asked by 27.10.2018 / 19:59
0
answers

Page shows other content (ChartJS) when orientation changes

I'm having problems on a page. I have a select that when selected loads a corresponding chart (ChartJS). It turns out that if I access the page of a cell phone select an option, select another option and change the screen orientation, it will sh...
asked by 15.10.2018 / 19:41
1
answer

How to display chart values on chartJS without mouseover?

var chartData = { labels: [<?php echo html_entity_decode($nomes) ?>], datasets: [{ label: 'Desempenho global (Todas limpezas efetuadas em <?php echo $anoAvaliado ?>)', data: [<?php foreach($limpezasAnuais as...
asked by 02.10.2018 / 22:24
0
answers

Error without explanation, Uncaught SyntaxError: Unexpected end of JSON input

I'm doing a chart and I'm using Chart.js, PHP and jQuery. I was able to run with the correct information, but after a while it stops working and displays the following error: Uncaught SyntaxError: Unexpected end of JSON input at JSON.par...
asked by 27.09.2018 / 14:47
0
answers

Display two custom graphics (image in the pointers) on the same page as Chart.js

I made an application that displays a chart (Line) from the Chart.js library. According to the value of the "date" attribute, the pointer may vary: below 25 a triangle is displayed and from 25 upwards an image is displayed, which in this case is...
asked by 11.09.2018 / 03:37
0
answers

Render chart using mongoDB and chart.js

Hello, I have a question on how to render a chart with chart.js using mongo data. I've already been able to render one, but I'm having trouble rendering another, probably due to how the data is returning. The query is as follows: const t...
asked by 20.08.2018 / 15:04
0
answers

Generate chart using ChartJS on Express

I'm trying to render a chart using ChartJS. I'm using nodeJS (Express) and mongoDB. The idea is to get the data from the bank, go to the front, and from there, render the chart. I already have a little notion of how to do this, one option wou...
asked by 30.07.2018 / 16:12