diff --git a/app/main/static/js/charges.js b/app/main/static/js/charges.js index 28c0fed..d0fb228 100644 --- a/app/main/static/js/charges.js +++ b/app/main/static/js/charges.js @@ -99,7 +99,7 @@ function build_chart(div_selector, data_url, entity_name, category_type) { .duration(200) .style("opacity", 1); tooltip - .html("" + category_title + ": " + category_name + "
" + "Charge: " + category_charge + "%") + .html("" + category_title + ": " + category_name + "
" + "Charge: " + category_charge + " ETP") .style("left", (e.pageX - tooltip_offset.dx) + "px") .style("top", (e.pageY - tooltip_offset.dy) + "px") } @@ -120,7 +120,7 @@ function build_chart(div_selector, data_url, entity_name, category_type) { .duration(200) .style("opacity", 1) tooltip - .html("" + d.period + ": " + d.total + "%") + .html("" + d.period + ": " + d.total + " ETP") .style("left", (e.pageX - tooltip_offset_dot.dx) + "px") .style("top", (e.pageY - tooltip_offset_dot.dy) + "px") } @@ -308,7 +308,7 @@ function build_chart(div_selector, data_url, entity_name, category_type) { if (categories_total_charge.hasOwnProperty(k)) { categories_total_charge[k] += +d[k] } else { - categories_total_charge[k] = d[k] + categories_total_charge[k] = +d[k] } } ) @@ -384,7 +384,7 @@ function build_chart(div_selector, data_url, entity_name, category_type) { .attr("transform", "rotate(-90)") .attr("y", -margin.left + 40) .attr("x", -margin.top - 70) - .text("Charge (% ETP)"); + .text("Charge en ETP"); // // Write chart Title -- libgit2 0.21.2