T
T
Trofim Ludaedov2021-04-03 15:56:42
Google
Trofim Ludaedov, 2021-04-03 15:56:42

How to make a graph appear smoothly?

How to make a graph appear smoothly? I have a donut (donut) chart and a strip chart, how can I make the bar "fill from zero to one hundred" and similarly with a donut?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2021-04-03
@dimonchik2013

code, all the code
show what you want

T
Trofim Ludaedov, 2021-04-03
@trofim02

letdata;
letchart;
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
data = new google.visualization.DataTable();
data.addColumn('string', 'Topping');
data.addColumn('number', 'Slices');
data.addRows([
['Mushrooms', 3],
['Onions', 1],
['Olives', 1],
['Zucchini', 1],
['Pepperoni', 2]
]);
let options = {'title':'How Much Pizza I Ate Last Night',
'height':'500'};
chart = new google.visualization.PieChart(document.getElementById('root'));
google.visualization.events.addListener(chart, 'select', selectHandler);
chart.draw(data, options);
}
function selectHandler() {
let selectedItem = chart.getSelection()[0];
let value = data.getValue(selectedItem.row, 0);
alert('The user selected' + value);
}
how to make a 'filling' animation just such an animation in the shell from xiaomi when you look at how your battery was wasted (sorry for a lot of letters)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question