Questions tagged [Chart.js] (1)

1
answer

How to change the data on the vertical axis of the bar chart?

There is a bar chart, the vertical axis ranges from 0 to 180, but that would have been 0% 50% and 100% of all. How can I do that?
Fleta_Jaskolski asked April 19th 20 at 12:30
2
answers

In Chartjs to add text inside elements of the pie?

I fail to understand how this can be implemented: Mean percentages within the graph.
corrine_Waters asked April 19th 20 at 12:11
1
answer

How to tie the X line to the right corresponds to the line Y?

All good! I decided to use the chart.js in his project on the Vue, but I don't think there kakieto seryoznye differences from simple js The problem is that I do not understand how Nika in the axis of X to substitute sootvetstvuyushie data axis Y. From prized article to arrive. chartjs axis X consists of individual neprivazi...
amya.Spenc asked April 19th 20 at 12:02
0
answer

How to paint one graph with different colors?

Library Chart.js. Have a graph and need to color the graph below the line was red, and above all that, green. It is impossible to simply change the colors between the two points, as the schedule will get intermittent In the original data coordinates What I can advise the decision? Could draw 2 graphics but 1 of them is to ...
terry_Mayer asked April 8th 20 at 17:19
1
answer

How to display the contents of HTMLDivElement?

Good day!There's a plugin that displays the number and the sign '%'. label = this.getPercentage(dataset, element, index) + '%'; Want % to wrap a class so I could change size of this symbol. Trying to do so var str = '\ <span class="customPercent">%</span>\ '; var divPercent = document.createElement('div'); d...
Therese_Feeney asked April 7th 20 at 15:50
1
answer

Vue-chart-js how to remove the background grid?

Good afternoon, prompt please how to remove the grid background in the graph? Found only way to transfer an array of colors and it will paint you need, but I think it's a bad option. Where to read about all the properties? Example
Ryder_Balistreri11 asked April 7th 20 at 11:30
1
answer

Question to output data to Chart js?

Trying to figure out with charts for chart js. Faced a number of problems if someone can help, I would be grateful. 1. I have a chart with the days and the amounts of sales and purchases, in all examples, data is shown only at one point how to make for example, to me one day was derived from 1 to 3 labels(for example for h...
Constance asked April 7th 20 at 09:46
0
answer

As in Chart JS display the values of the second Y-axis, synchronized with the first axis?

Ideally you need this is the schedule. To have 2 vertical axis and right axis data are synchronized with the left and aligned to already values. How fortunate the schedule does not interest me. I get that's the story. In the code define the data for both axes via the admin area, and they are not synchronized, the result ...
alda32 asked April 7th 20 at 09:34
1
answer

How to display percentage in tooltip?

Like when you hover over the chart to add percentage to Wins: 32%, and now just shows when you hover Wins: 32var ctx = document.getElementById('myChart').getContext('2d'); const total = parseInt($('#t-games').html()); const wins = parseInt($('#wins').html()); const los = parseInt($('#los').html()); var myChart = new Cha...
Catalin asked April 4th 20 at 12:43