Questions tagged as 'chartjs'

1
answer

Put label with two lines in chartjs

I have this chart where I use chartjs and would like to put a label with two lines, \n nor <br/> has worked.     
asked by 17.08.2015 / 17:02
3
answers

How to put a title in the caption of the angular-chart

In my line chart I wanted to when I hovered the mouse on the chart line when the caption appeared, and it had a caption. This is only possible by filling the array of labels, but it appears below the graph, on the "X" axis the names, and I do no...
asked by 07.04.2016 / 22:36
2
answers

how to change the chart type using chart.js?

I'm developing an application that helps me build graphs, and was thinking of doing in a way that the graph is built dynamically as the user inputs information, the first one being the type of chart (if it's line, of bar, pizza, etc.) I made a te...
asked by 14.05.2016 / 17:11
1
answer

Graphics overlay

I have a problem when I create a chart with chart.js and then I create another chart from the menu that is on the same page. It creates the graph, but when I move the cursor over the graph it changes to the previous graph. Update After a...
asked by 20.11.2015 / 18:20
1
answer

Resize Canvas Chart

I'm using Chartjs and got a Radar chart . Home See the code below: I also have this fiddle . var radarChartData = { labels: ["Item1", "Item2", "Item3", "Item4"], datasets: [ { label: "Linha1", fillColor: "rg...
asked by 19.08.2015 / 19:35
1
answer

Flot charts, default x-axis from two days ago so far (last 48 hours)

I have an app that displays a graph whose dados is from the database, where the date columns store a Unix timestamp , the data is received as a JSON. This graph works fine but I would like the X axis to appear only the last 48 hours...
asked by 16.01.2016 / 14:23
2
answers

How to use Chart.Js with ASP.NET MVC

Well, I am returning a list of and sending to View . You need to implement this using a graph with Chart.js . I have the Country class: [Table("Pais")] public class Pais { [Key] public Guid PaisId { get; set; } [R...
asked by 19.01.2017 / 14:32
1
answer

Color change on chart with ChartJS not working

Could you please help me in the case below? I'm trying to change the color of the chart to red, but the change is not working. Code:functionDevolucao(){if(CicloAtual!="") { var codCli = $("[id$=txtCodigo]").val(); var ciclos = Arr...
asked by 06.09.2017 / 16:19
1
answer

Javascript: ChartJS - How to highlight "piece" of the graph when user clicks?

I'm working with Chart.js and my donut chart is already cute, but I would like that if the user clicks on a part of the graph the "piece" is highlighted ... it can be growing, getting in 3d Has anyone done? As requested, follow the code: cont...
asked by 10.11.2016 / 19:59
2
answers

Doubt of how to format value using Chart Chart JS

I'm using a Jquery plugin called Chart JS.
asked by 19.04.2016 / 18:32