Commit 67ab2300ec4935b0de93bcc617a98891adc61d0d

Authored by hitier
1 parent c8b7caf5

Fix appearance details

app/main/static/css/charges.css
@@ -60,14 +60,14 @@ rect.legend { @@ -60,14 +60,14 @@ rect.legend {
60 } 60 }
61 61
62 rect.bar { 62 rect.bar {
63 - stroke: white; 63 + stroke: lightgrey;
64 stroke-width: 0.5pt; 64 stroke-width: 0.5pt;
65 } 65 }
66 66
67 rect.bar:hover { 67 rect.bar:hover {
68 - -webkit-filter: brightness(1.5);  
69 - -moz-filter: brightness(1.5);  
70 - filter: brightness(1.5); 68 + -webkit-filter: brightness(0.5);
  69 + -moz-filter: brightness(0.5);
  70 + filter: brightness(0.8);
71 } 71 }
72 72
73 .tooltip { 73 .tooltip {
app/main/static/js/charges.js
@@ -20,7 +20,7 @@ function build_chart(div_selector, data_url, entity_name, category) { @@ -20,7 +20,7 @@ function build_chart(div_selector, data_url, entity_name, category) {
20 20
21 const xScale = d3.scaleBand() 21 const xScale = d3.scaleBand()
22 .range([0, width]) 22 .range([0, width])
23 - .padding(0.2); 23 + .padding(0.4);
24 24
25 const yScale = d3.scaleLinear() 25 const yScale = d3.scaleLinear()
26 .range([height, 0]) 26 .range([height, 0])
@@ -74,7 +74,7 @@ function build_chart(div_selector, data_url, entity_name, category) { @@ -74,7 +74,7 @@ function build_chart(div_selector, data_url, entity_name, category) {
74 var mouseleave = function (d) { 74 var mouseleave = function (d) {
75 tooltip 75 tooltip
76 .transition() 76 .transition()
77 - .duration(100) 77 + .duration(900)
78 .style("opacity", 0) 78 .style("opacity", 0)
79 } 79 }
80 80
@@ -160,7 +160,7 @@ function build_chart(div_selector, data_url, entity_name, category) { @@ -160,7 +160,7 @@ function build_chart(div_selector, data_url, entity_name, category) {
160 var xCategories = d3.scaleBand() 160 var xCategories = d3.scaleBand()
161 .domain(categories) 161 .domain(categories)
162 .range([0, xScale.bandwidth()]) 162 .range([0, xScale.bandwidth()])
163 - .padding([0.05]) 163 + .padding([0.2])
164 164
165 svg.append("g") 165 svg.append("g")
166 .selectAll("g") 166 .selectAll("g")