Commit 67ab2300ec4935b0de93bcc617a98891adc61d0d

Authored by hitier
1 parent c8b7caf5

Fix appearance details

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