Lazy high charts formatting

956 views Asked by At

How do i get rid of the y-axis range at the bottom of the chart?

https://i.stack.imgur.com/PKJeD.png

Ive tried changing minRange and title but it doesn't do anything

  f.options[:chart][:defaultSeriesType] = "column"
  f.options[:title][:text] = "Book Catalog"
  f.options[:yAxis][:minRange] = 0;
  f.options[:yAxis][:title] = "";
1

There are 1 answers

0
Igor Shastin On

I think that you need something like this:

 f.options[:xAxis] = {
    :title => { :text => nil },
    :labels => { :enabled => false }
 }

As far as I don't know RoR, I've created a JS demo: http://jsfiddle.net/Srv8Z/