mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Charts animations improvements
This commit is contained in:
parent
e56cd25e8c
commit
91d27411a3
7 changed files with 20 additions and 11 deletions
|
|
@ -188,7 +188,7 @@ function attachStackedChartCallback(chart, schema_name, url, chart_id, params) {
|
|||
|
||||
var chart_colors = [
|
||||
"#69B87F",
|
||||
"#87CC9A",
|
||||
"#94CFA4",
|
||||
"#B3DEB6",
|
||||
"#E5F1A6",
|
||||
"#FFFCC6",
|
||||
|
|
@ -199,7 +199,10 @@ function attachStackedChartCallback(chart, schema_name, url, chart_id, params) {
|
|||
];
|
||||
|
||||
var update_chart_data = function(new_data) {
|
||||
d3_sel.datum(new_data).transition().duration(500).call(chart);
|
||||
/* reset chart data so that the next transition animation will be gracefull */
|
||||
d3_sel.datum([]).call(chart);
|
||||
|
||||
d3_sel.datum(new_data).transition().call(chart);
|
||||
nv.utils.windowResize(chart.update);
|
||||
pending_request = null;
|
||||
spinner.remove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue