Questions tagged as 'chartjs'

1
answer

PHP variable in JS within the While

I am creating a chart using Chart.js and PHP, I would like the value to come from an array in PHP with the index of a JS variable. This is the code I tried to do. <script type="text/javascript"> var ctx = document.getElementById("piecha...
asked by 14.01.2016 / 14:34
1
answer

How to set the percentage on top of the chart using ChartJS?

I have the following graphic: var chartData = [{"visitor": 39, "visit": 1}, {"visitor": 18, "visit": 2}, {"visitor": 9, "visit": 3}, {"visitor": 5, "visit": 4}, {"visitor": 6, "visit": 5}, {"visitor": 5, "visit": 6}] var visitorData = [...
asked by 18.12.2018 / 12:10
2
answers

Color chart numbers

I made a code in js and php, but I'm not finding where the color of the numbers that show the values above the points of the graph lines is set. I need to know at what time that red arrow in the numbers. Code: <div class="large-12 column...
asked by 19.10.2017 / 18:35
1
answer

Line chart being populated only with last record only in while / php

   Code: <!doctype html> <html> <head> <title>Line Chart</title> <script src="dist/Chart.bundle.js"></script> <script src="utils.js"></script> <style> canvas{...
asked by 15.05.2017 / 16:47
1
answer

Chartjs - Insert% at end of value in tooltip

I'm making a Chart.js in angular and I need to put the percent (%) at the end of each tooltip where it shows the value in the chart. Follow my chart code: Html: <canvas class="chart chart-doughnut" chart-data="vm.data" chart-labels="v...
asked by 03.11.2017 / 18:28
1
answer

Using ChartsJS

All beauty? Well, I need a strength in the Lib of ChartJS, I need to put the values inside a Stacked Groups, something like this: You can see that we have 2 values, and above we have the total. I did some research I found some things...
asked by 29.11.2017 / 13:25
1
answer

Populating Chart.js with AJAX request data

Hello, First I'll give you a brief introduction to how my system works so you understand exactly what my difficulty is. Maybe it gets a little big, I'm sorry. Within my system, when the user logs in, a query is made to my database throug...
asked by 20.12.2016 / 19:55
1
answer

Decrease columns ChartJs Bar Chart

Does anyone know how I can work with the size and width of the blue columns within the Chart Chart Bar Chart? Follow example image. I would like to leave the columns thinner and more distant from each other .....     
asked by 26.04.2016 / 13:56
1
answer

ChartJS pie chart or pie display percentage

Using the chartjs lib ( link ) Is there any simple way to make a pie chart, display the percentage of each color, or at least allow the insertion of the character "%" after displaying the number in the tooltip, because in that case I can calcula...
asked by 19.04.2016 / 06:20
1
answer

How to determine the number of edges of the radarchart?

I'm using RadarChart from Chart.js . I have this Fiddle working. Home Notice that in this example the graph is mounted dynamically according to the data entered. Home Well, but I would like to determine the amount of edges generated, regard...
asked by 13.08.2015 / 21:52