Questions tagged as 'chartjs'

1
answer

Generate charts with ChartJs and AngularJS

I have a problem generating charts using ChartJS and AngularJS. When loading the data of an api X I get an array of objects that contains the data needed to generate a series of graphics follows below an object model { 0: {total: 100.00,...
asked by 20.05.2016 / 16:29
1
answer

format a multi caption with "R $" using Chart Chart JS

When I add a second line in the chart the caption is incorrect "without the $". How can I solve this problem? Thank you function formatar(valor) { var moeda = 'R$'; valor = ('' + valor).replace(',', '.'); valor = ('' + valor).spli...
asked by 18.05.2016 / 21:40
1
answer

Angular + Chartjs

I'm starting to use the Chart.js Library by following the link But I'm trying hard, when I run the html page, nothing happens, all the scripts are found but the graphic is not displayed. I'm waiting for suggestions <!doctype html>...
asked by 14.08.2015 / 14:01
1
answer

Graphics with PHP Chart.js

I am implementing graphics in my application made in PHP, using Framework Chart.js, passing the query data via JSON, to mount the chart, but when I render it it presents the following error: Followingcode:$(document).ready(function(){$.ajax(...
asked by 26.10.2017 / 14:49
0
answers

Add number in the graphic center

I started to see the JS chart a short time ago, and I needed my donut shape chart to have the percentage of the first value in the middle of the chart, as it is in this image: Inthecaseoftheexample,displaythevalueofPeterinthemiddle. var ran...
asked by 03.10.2016 / 21:51
1
answer

Chart.js does not appear

UPDATE: Now the labels and the graph showing the quantity appear, but all gray with the names as undefined . I'm trying to create a chart with Chart.js , but it does not appear in div , it is blank. I had already done one in this...
asked by 06.11.2017 / 22:31
1
answer

More than one chart with Chart.js

Hello, I'm having trouble trying to show more than two charts with chart.js; At the moment I have two graphics that load perfectly into my code ( ctx, ctx2 ), since when I try to load the third one, it does not show and it results in my...
asked by 20.01.2017 / 14:26
1
answer

How to add caption to a chart using ChartJS?

I created the following chart: var data = [ { value: 300, color:"#F7464A", highlight: "#FF5A5E", label: "Red", subtitle: "texto" }, { value: 590, color: "#46BFBD...
asked by 18.12.2018 / 01:28
1
answer

Can you disable the animation of a Charts.js chart?

   How to disable an animation of a Charts.js chart?   I'm putting together a graph that updates every 300 milliseconds via ajax, but the Charts.js chart animation disrupts the view. the chart assembly code: function montaGrafico(report_o...
asked by 14.08.2017 / 15:22
1
answer

ChartJS 2.0 Rotation

How can I rotate the text? What I have: I'mtryingtorotatebutctx.translatedoesnotworkright,see: Here'smycode:animation:{onComplete:function(){varchartInstance=this.chart;varctx=chartInstance.ctx;ctx.textAlign="center";...
asked by 18.07.2016 / 14:27