Commit 453dba0f authored by Kjetil Thuen's avatar Kjetil Thuen

Added symbols in legend

parent 9ea50408
......@@ -40,7 +40,6 @@ maxAge = lodash.memoize (chartId) ->
0)
0)
xScaleRight = (chartId) ->
d3.scale.linear()
.domain [
......@@ -106,7 +105,10 @@ prepareMetadataDiv = (chartId, data, mapping) ->
for own field, name of fieldMapping
_results.push "<dt>"
_results.push completeData[chartId].displayDetails[field + "label"]
_results.push "<i class='" +
completeData[chartId].displayDetails[field + "symbol"] +
"'></i> " +
completeData[chartId].displayDetails[field + "label"]
_results.push "</dt>"
_results.push "<dd>"
_results.push data[name]
......@@ -234,7 +236,6 @@ updateChart = (chartId, frameNum) ->
lodash.keys(completeData[chartId].yearData)[frameNum],
completeData[chartId].selectedYear
undefined
nextFrame = (chartId) ->
......@@ -394,7 +395,6 @@ displayPoster = (chartId, icon, header, message) ->
.style "min-height", -> chartHeight(chartId) / 2 + "px"
.style "margin-top", -> chartHeight(chartId) / 4 + "px"
if icon
poster.append "div"
.attr "class", "icon"
......
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