Most voted "chartjs" questions
Use this tag when the question involves creating, editing or maintaining graphics created using the Chartjs library. This open source library uses canvas (HTML5) and javascript for graphic creation.
Learn more…108 questions
Sort by count of
-
7
votes3
answers965
viewsHow to put a title in the angular-Chart caption
On my line chart I wanted that when you hover over the chart line when the caption appears, and that it had a title. This is only possible by filling the array of Abels, but appears below the graph,…
-
5
votes1
answer442
viewsLabel with two lines in chartjs
Have that graph where use chartjs and would like to put a label with two lines, \n nor <br/> has worked.…
-
5
votes2
answers1513
viewshow to change the type of graph using Chart.js?
Guys I’m developing an application that helps me build graphics, and I was thinking about doing it in a way where the graph is built dynamically as the user inserts information, the first of them…
-
4
votes2
answers725
viewsGraphic overlay on chartJS
I have the following problem, arose the need to create graphs dynamically from a select that represents the schools of the system and as it is clicked generate a pie chart with their respective…
-
3
votes1
answer802
viewsAngular + Chartjs
I’m starting to use the Chart.js Library by following the site http://jtblin.github.io/angular-chart.js/#getting_started But I’m having difficulty, when I rotate the html page, nothing happens, all…
-
3
votes1
answer1144
viewsResize Canvas Chart
I’m using Chartjs and I have a radar graph. See the code below: Also have that fiddle. var radarChartData = { labels: ["Item1", "Item2", "Item3", "Item4"], datasets: [ { label: "Linha1", fillColor:…
-
3
votes1
answer703
viewsGraphic overlay
I have a problem when creating a chart with Chart.js and then do to generate another chart from the menu that is on the same page. It creates the graph, but when I move the cursor across the graph…
-
3
votes1
answer83
viewsFlot Charts, default x-axis from two days ago until now (last 48 hours)
I have an app that features a chart whose dados from the database, where the date columns store a Unix timestamp, the data is received as a JSON. This graph works well but I would like the X axis to…
-
3
votes2
answers4351
viewsDoubt how to format value using Chart JS chart
Guys I’m using a plugin for Jquery called Chart JS. Good and very simple to work with the plugin, the problem is that I report values in the American standard (33.33) and I need the graph to display…
-
3
votes1
answer514
viewsChart.js does not appear
UPDATE: Now appear the Labels and graph displaying the quantity, but all in gray with the names as undefined. I’m trying to create a chart with the Chart js., but he doesn’t show up at div, She is…
-
3
votes1
answer179
viewsHow to pass the return (JSON) of a getJson request within the date where the chart values will be?
works as follows, has a . js that have the graphics assembled, but with the values inserted directly, I’m having a hard time finding content that fits directly into this example that I’m using, I…
-
2
votes1
answer1235
viewsformat a multiple caption with "R$" using Chart JS chart
when I add a second line on the chart the caption is incorrect "without the R$". how can I solve this problem? thank you function formatar(valor) { var moeda = 'R$'; valor = ('' +…
-
2
votes1
answer1569
viewsGenerate graphics with Chartjs and Angularjs
I have a problem generating graphics using Chartjs and Angularjs. When loading the data from an X api I receive an array of objects that contains the data needed to generate a series of graphs below…
-
2
votes3
answers3209
viewsChart JS - hide caption
Hello! I’m using Chart.js in a project, but I need to hide the caption that is displayed above the chart. Someone who has worked with this chart knows how to hide this part? Follow the link to the…
-
2
votes0
answers178
viewsAdd number in chart center
I started seeing Chart JS a little while ago, and I needed my doughnut-shaped chart to have the percentage of the first value in the middle of the chart, as it is in this image: In the case of the…
-
2
votes1
answer299
viewsJavascript: Chartjs - How to highlight "piece" of the chart when user clicks?
I am working with Chart.js and my chart, type doughnut, is already cute, but I would like that, if the user click on a part of the chart the "piece" was highlighted... can be growing, staying in…
-
2
votes2
answers2474
viewsHow to use Chart.Js with ASP.NET MVC
Well, I’m returning a list of and sending to View. And I need to implement this through a chart with Chart.js. I have the class Parents: [Table("Pais")] public class Pais { [Key] public Guid PaisId…
-
2
votes1
answer674
viewsColor change in graph with Chartjs not working
Could you help me in the case below? I’m trying to change the color of the chart to red, but the change isn’t working. Code: function Devolucao() { if (CicloAtual != "") { var codCli =…
-
2
votes1
answer1119
viewsCharts with PHP Chart.js
I am implementing graphs in my application made in PHP,using Framework Chart.js,passing the query data via JSON,to assemble the graph, but when I will render it presents the following error: Follows…
-
1
votes1
answer48
viewsHow to determine the number of edges of radarchart?
I’m using Radarchart of Chart js.. Have that Fiddle working. Note that in this example the graph is mounted dynamically according to the entered data. Well, I would like to determine the amount of…
-
1
votes1
answer262
viewsPHP variable in JS inside While
I am creating a chart using Chart.js and PHP, I would like the value to come from a PHP array with the input of a JS variable. This is the code of what I tried to do. <script…
-
1
votes0
answers604
viewsChart JS - Insert Label in the Center of Doughnut Charts
I have a chart like Doughnut Charts - http://www.chartjs.org/ - and would like the Label to be present at the center of the chart. Would you know if this is possible?…
chartjsasked 8 years, 9 months ago Rodrigo Segatto 743 -
1
votes1
answer1010
viewsDecrease columns Chartjs Bar Chart
Does anyone know how I can work with the size and width of the blue columns within the Chartjs Bar Chart chart? Following image example. I’d like to keep the columns thinner and farther apart from…
chartjsasked 8 years, 7 months ago Rodrigo Segatto 743 -
1
votes0
answers49
viewsProblem with minimum size in chartj chart
var config = { type: 'radar', data: { labels: ["Confiança", "Atividade", "Juros", "Condições de financiamento", "Concessões reais", "Atratividade do Financiamento Imobiliário", "Emprego", "Massa…
-
1
votes0
answers141
viewsProblem with label on top of graphics in Chartjs
I’m using Chartjs and Stackedbar to create some graphics, however, Chartjs has no option to put the respective values on top of the bars, for this, I implemented the following solution:…
-
1
votes1
answer2487
viewsChartjs pie chart or pizza display percentage
Using the lib Chartjs(http://www.chartjs.org/) There is some simple way to make a chart of type "pie", display the percentage of each color, or at least allow the insertion of the character "%"…
-
1
votes1
answer1378
viewsMore 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 charts that load perfectly in my code (ctx, ctx2), already when I try to load the third one, it…
-
1
votes1
answer93
viewsLine 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>…
-
1
votes0
answers46
viewsChart.Js mousehover action
Hello, I would like to know how to increase the size of the "legend" in the mousehover action of the Chart.js.library. I read and did not find in the documentation, someone would know? follows image…
-
1
votes1
answer103
viewsUsing Chartsjs
all beauty? Guys, I need a force in Chartjs' Lib, I need to put the values inside a Stacked Groups, something like this: You can see that we have two values, and above we have the total. I did some…
-
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
answer429
viewsChart.js with Angular using ng-include. Charts do not appear
Hello. In my index.html I have this <div ng-include="'graficos.html'"> </div> in graficost.html I have this: <div class="row"> <div class="col-md-6 col-sm-6 col-xs-12">…
-
1
votes1
answer38
viewsI can’t run the jquerry loop
I need to create a loop so I can feed it a graphic. while($(".previsto").eq(0).text(),){} I need to take these values eq(0), eq(1), eq(2)... $(".previsto").eq(0).text(), $(".previsto").eq(1).text(),…
-
1
votes0
answers61
viewsAmcharts chart with two lines and zoom
I’m using this chart on my page: // Themes begin am4core.useTheme(am4themes_animated); // Themes end // Create chart instance var chart = am4core.create("chartdiv", am4charts.XYChart); // Add data…
-
1
votes1
answer77
viewsChartjs 2.0 Rotation
How can I rotate the text? What do I have: I’m trying to rotate but the ctx.translate doesn’t work right, see: This is my code: animation: { onComplete: function () { var chartInstance = this.chart;…
-
1
votes0
answers628
viewsFormat value to R$ on Chart JS chart
Well some time ago, a user here at STACK helped me solve a problem with currency formatting on the Chart JS chart. But I found a new problem. With the help of Sergio we were able to put the traffic…
-
1
votes1
answer396
viewsChart.js - Type Line - JSON - SQL Server
I’m putting together my first chart. When I use date constants Chart renders normally, but when I upload sql database information I don’t have the same success. Follow code ... <div…
-
1
votes1
answer79
viewsHow to detect the selected dataset in a Charts
I am using the following code to detect the dataset, however INDEX comes wrong, where the value would be the Charts index and not the dataset. I need to retrieve the label of the dataset…
-
1
votes0
answers266
viewsChart.js error in Laravel?
Guys I’m trying to use Chart.js in Laravel through their own lib, but returns me the following error: Call to Undefined method Fx3costa Laravelchartjs Builder::size() I do not know what can be, I…
-
1
votes1
answer4048
viewsPopulating Chart.js with AJAX request data
Hello, First I’ll give you a brief introduction to how my system works so that you understand exactly my difficulty. Maybe it gets a little big, I’m sorry. Within my system, when the user logs in, a…
-
1
votes0
answers53
viewsHow to use Flot Chart on a web server?
Good I have an Apache web server running on a pi Raspberry. This web server has a view_action.php file that does include from another Graph.htmlpage. This Graph.html is a copy of an . html code from…
-
1
votes1
answer1182
viewsChartjs with PHP
Oops, I’m using the Chartjs for graphic generation, I am integrating with PHP to send json to the chart php $arrLabels = array("January","February","March"); $arrDatasets = array('label' => "My…
-
1
votes1
answer1487
viewsGraph of minutes per hours with Chart js
I don’t know if I can be clear, but I would like to make a graph showing the CPU usage line per minute with Chart JS, but with the Y axis rounding per hour. I was able to make the rounding using…
-
1
votes0
answers51
viewsChartjs only starts the chart when I zoom in on the page
Guys, for some reason my chartJS chart only shows the data when I press Ctrl+shift+i to open the console or when I change the page zoom, which is not very interesting for a user. I’m testing on my…
-
1
votes1
answer395
viewsCan you disable the animation of a Charts.js chart?
has to disable an animation of a chart Charts.js? I’m putting together a chart that updates every 300 milliseconds via ajax, but the animation of the Charts.js chart disrupts the visualization. the…
-
1
votes1
answer334
viewsInsert data into the chart
I have the following code: window.onload = function () { var chart = new CanvasJS.Chart("chartContainer", { title:{ text: "Desktop Search Engine Market Share, Dec-2012" }, animationEnabled: true,…
-
1
votes2
answers1173
viewsColor chartjs numbers
I made a code in js and php but I can’t find where you are setting the color of the numbers that show the values on the dots of the graph lines. I need to know at what point you have the red color…
-
1
votes1
answer1095
viewsChartjs - Insert % at end of value in tooltip
I’m doing an angular Chart.js and need to place the percent ( % ) at the end of each tooltip where it shows the value on the chart. Follow code from my chart: Html: <canvas class="chart…
-
1
votes0
answers294
viewsGraphics using Chartjs, Mongodb and Angular
Good evening, I have the following model: var mongoose = require('mongoose'); module.exports = function() { var schema = mongoose.Schema({ nome: { type: String, required: true }, valor: { type:…
-
1
votes1
answer1615
viewsHow to change Chart.js display c,
I am learning to work chartsjs bring date, with value January with 10 clients, the scale is 0.5, 1.0,1.5,2.0 I would like to deichar with 1,2,3,4,... there is no half client…