Changing the main chart title using Lazy High Charts Gem

I’ve tried so many different ways of implementing :title and setTitle
but I
cannot seem to change the main title above the chart. Here is the
given on the gem’s page

@h ='graph') do |f|

  f.options[:chart][:defaultSeriesType] = "area"

  f.series(:name=>'John', :data=>[3, 20, 3, 5, 4, 10, 12 ,3,


  f.series(:name=>'Jane', :data=> [1, 3, 4, 3, 3, 5,

4,-46,7,8,8,9,9,0,0,9] )


The closest I’ve come is removing the title by using f.options[:title] =
“Test Title”


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs