File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ var minicharts_d3fns_date = function() {
234234
235235 gEnter . append ( 'g' )
236236 . attr ( 'class' , 'hour' )
237- . attr ( 'transform' , 'translate(' + ( width / ( upperRatio + 1 ) + upperMargin ) + ', 0)' )
237+ . attr ( 'transform' , 'translate(' + ( innerWidth / ( upperRatio + 1 ) + upperMargin ) + ', 0)' )
238238 . append ( 'text' )
239239 . attr ( 'class' , 'date-icon fa-fw' )
240240 . attr ( 'x' , 0 )
@@ -289,7 +289,7 @@ var minicharts_d3fns_date = function() {
289289
290290 text
291291 . attr ( 'x' , function ( d , i ) {
292- return i * width ;
292+ return i * innerWidth ;
293293 } )
294294 . attr ( 'text-anchor' , function ( d , i ) {
295295 return i ? 'end' : 'start' ;
@@ -309,7 +309,7 @@ var minicharts_d3fns_date = function() {
309309 var weekdayContainer = g . select ( 'g.weekday' ) . data ( [ weekdays ] ) ;
310310
311311 raf ( function ( ) {
312- var chartWidth = width / ( upperRatio + 1 ) - upperMargin ;
312+ var chartWidth = innerWidth / ( upperRatio + 1 ) - upperMargin ;
313313 var manyChart = many ( )
314314 . width ( chartWidth )
315315 . height ( upperBarBottom )
@@ -329,7 +329,7 @@ var minicharts_d3fns_date = function() {
329329
330330 var hourContainer = g . select ( 'g.hour' ) . data ( [ hours ] ) ;
331331 raf ( function ( ) {
332- var chartWidth = width / ( upperRatio + 1 ) * upperRatio - upperMargin ;
332+ var chartWidth = innerWidth / ( upperRatio + 1 ) * upperRatio - upperMargin ;
333333 var manyChart = many ( )
334334 . width ( chartWidth )
335335 . height ( upperBarBottom )
You can’t perform that action at this time.
0 commit comments