not sure if it matters, but i dont htink you need the to_json here,
e.g.

```ruby
:data => { :chart => data, :ticks => ticks}
```