Resize Not Working #220

Closed
taylorbrooks opened this Issue Mar 27, 2013 · 1 comment

Projects

None yet

2 participants

@taylorbrooks

Trying to make the graph work responsively like this:

  $(window).resize ->
    divWidth = $('.rickshaw_graph').width() 
    graph.configure({ width: divWidth })
    graph.render()

Getting this error:

Uncaught TypeError: Cannot call method 'removeChild' of null rickshaw.js:1232

@dchester
dchester commented Aug 6, 2013

Hi, that looks like it should work. Here's a functional example for reference:
http://code.shutterstock.com/rickshaw/examples/resize

@dchester dchester closed this Aug 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment