Commit 5a3b9bf9 authored by Kjetil Thuen's avatar Kjetil Thuen

Made width of svg 100% of container in Chrome

parent 7441fb42
......@@ -8,14 +8,14 @@ window.nesstartimebars.main = (containerId, dataDesc) ->
"fa fa-cog fa-spin",
"Fetching data",
"Please wait"
nesstarloader.reloadNesstarData( (data) ->
nesstarloader.reloadNesstarData (data) ->
timebars.setupChart containerId, data, dataDesc.display
, (errorStatus) ->
timebars.displayPoster containerId,
"fa fa-exclamation-triangle"
"Problems fetching data",
errorStatus
, dataDesc)
, dataDesc
window.nesstartimebars.toggleAnimation = (containerId) ->
timebars.toggleAnim(containerId)
......
......@@ -301,6 +301,7 @@ updateChart = (chartId, frameNum) ->
data = valuesFromFrame chartId, frameNum
chart = d3.select "#" + chartId + " svg.chart"
chart.attr "width", chartWidth chartId
label = d3.select "#" + chartId + " span.yearLabel"
.html chartState[chartId].displayDetails.name +
" <span class='year'>" +
......
......@@ -11,8 +11,8 @@
}
.chartContainer {
@include rounded();
position: relative;
margin: 45px;
.controls {
height: 45px;
......@@ -26,7 +26,7 @@
margin-left: 40px;
height: 35px;
font-size: 14px;
background: #e1e1e1;
background: #f5f5f5;
position: relative;
.handle {
@include rounded();
......@@ -44,6 +44,7 @@
}
}
}
.axisLabels {
path, line {
display: none;
......
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