Commit f6d459fc authored by Kjetil Thuen's avatar Kjetil Thuen
Browse files

Fixed displaying metadata for selected year

parent 463595fe
......@@ -81,7 +81,8 @@ updateMetadata = (chartId, data) ->
if not data
#FIXME: Whats needed here is the data for the current frame filtered on the
#selected year
data = completeData[chartId].yearData[completeData[chartId].selectedYear]
# data = completeData[chartId].yearData[completeData[chartId].selectedYear]
data = d3.select(chartId + " svg.chart g.selected").data()[0]
d3.select chartId + " div.dataDetails"
.html prepareMetadataDiv chartId, data
......@@ -263,10 +264,10 @@ setupChart = (chartId, data, displayDetails) ->
d3.select chartId
.append "div"
.attr "class", "rightLabel"
.html "<i class='" +
.html completeData[chartId].displayDetails.rightlabel +
" <i class='" +
completeData[chartId].displayDetails.rightsymbol +
"'></i> " +
completeData[chartId].displayDetails.rightlabel
"'></i>"
window.onresize = setupChart
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment