lazy_high_charts 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -0
- data/lib/lazy_high_charts/high_chart.rb +1 -1
- data/lib/lazy_high_charts/version.rb +1 -1
- data/spec/high_chart_spec.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -32,6 +32,7 @@ Usage
|
|
32
32
|
Usage in Controller:
|
33
33
|
|
34
34
|
@h = LazyHighCharts::HighChart.new('graph') do |f|
|
35
|
+
f.options[:chart][:defaultSeriesType] = "area"
|
35
36
|
f.series(:name=>'John', :data=>[3, 20, 3, 5, 4, 10, 12 ,3, 5,6,7,7,80,9,9])
|
36
37
|
f.series(:name=>'Jane', :data=> [1, 3, 4, 3, 3, 5, 4,-46,7,8,8,9,9,0,0,9] )
|
37
38
|
end
|
@@ -30,7 +30,7 @@ module LazyHighCharts
|
|
30
30
|
self.tooltip({ :enabled=>true })
|
31
31
|
self.credits({ :enabled => false})
|
32
32
|
self.plotOptions({ :areaspline => { } })
|
33
|
-
self.chart({ :defaultSeriesType=>
|
33
|
+
self.chart({ :defaultSeriesType=>"areaspline" , :renderTo => nil})
|
34
34
|
self.subtitle({})
|
35
35
|
end
|
36
36
|
|
data/spec/high_chart_spec.rb
CHANGED
@@ -34,7 +34,7 @@ describe "HighChart" do
|
|
34
34
|
:tooltip=>{:enabled=>true},
|
35
35
|
:credits=>{:enabled=>false},
|
36
36
|
:plotOptions=>{:areaspline=>{}},
|
37
|
-
:chart=>{:defaultSeriesType=>
|
37
|
+
:chart=>{:defaultSeriesType=>"areaspline", :renderTo=>nil},
|
38
38
|
:subtitle=>{}}
|
39
39
|
end
|
40
40
|
|