Class: NeqaHighCharts::HighChart
- Inherits:
-
Object
- Object
- NeqaHighCharts::HighChart
- Defined in:
- lib/neqa_high_charts/high_chart.rb
Instance Attribute Summary collapse
-
#chart ⇒ Object
Returns the value of attribute chart.
-
#colors ⇒ Object
Returns the value of attribute colors.
-
#credits ⇒ Object
Returns the value of attribute credits.
-
#drilldown ⇒ Object
Returns the value of attribute drilldown.
-
#exporting ⇒ Object
Returns the value of attribute exporting.
-
#labels ⇒ Object
Returns the value of attribute labels.
-
#legend ⇒ Object
Returns the value of attribute legend.
-
#loading ⇒ Object
Returns the value of attribute loading.
-
#navigation ⇒ Object
Returns the value of attribute navigation.
-
#noData ⇒ Object
Returns the value of attribute noData.
-
#pane ⇒ Object
Returns the value of attribute pane.
-
#plotOptions ⇒ Object
Returns the value of attribute plotOptions.
-
#scrollbar ⇒ Object
Returns the value of attribute scrollbar.
-
#series ⇒ Object
Returns the value of attribute series.
-
#subtitle ⇒ Object
Returns the value of attribute subtitle.
-
#title ⇒ Object
Returns the value of attribute title.
-
#tooltip ⇒ Object
Returns the value of attribute tooltip.
-
#xAxis ⇒ Object
Returns the value of attribute xAxis.
-
#yAxis ⇒ Object
Returns the value of attribute yAxis.
Instance Method Summary collapse
- #defaults_options ⇒ Object
-
#initialize ⇒ HighChart
constructor
A new instance of HighChart.
Constructor Details
#initialize ⇒ HighChart
Returns a new instance of HighChart.
5 6 7 8 9 10 |
# File 'lib/neqa_high_charts/high_chart.rb', line 5 def initialize self.tap do |high_chart| # high_chart.defaults_options yield high_chart if block_given? end end |
Instance Attribute Details
#chart ⇒ Object
Returns the value of attribute chart.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def chart @chart end |
#colors ⇒ Object
Returns the value of attribute colors.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def colors @colors end |
#credits ⇒ Object
Returns the value of attribute credits.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def credits @credits end |
#drilldown ⇒ Object
Returns the value of attribute drilldown.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def drilldown @drilldown end |
#exporting ⇒ Object
Returns the value of attribute exporting.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def exporting @exporting end |
#labels ⇒ Object
Returns the value of attribute labels.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def labels @labels end |
#legend ⇒ Object
Returns the value of attribute legend.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def legend @legend end |
#loading ⇒ Object
Returns the value of attribute loading.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def loading @loading end |
#navigation ⇒ Object
Returns the value of attribute navigation.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def @navigation end |
#noData ⇒ Object
Returns the value of attribute noData.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def noData @noData end |
#pane ⇒ Object
Returns the value of attribute pane.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def pane @pane end |
#plotOptions ⇒ Object
Returns the value of attribute plotOptions.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def plotOptions @plotOptions end |
#scrollbar ⇒ Object
Returns the value of attribute scrollbar.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def @scrollbar end |
#series ⇒ Object
Returns the value of attribute series.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def series @series end |
#subtitle ⇒ Object
Returns the value of attribute subtitle.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def subtitle @subtitle end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def title @title end |
#tooltip ⇒ Object
Returns the value of attribute tooltip.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def tooltip @tooltip end |
#xAxis ⇒ Object
Returns the value of attribute xAxis.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def xAxis @xAxis end |
#yAxis ⇒ Object
Returns the value of attribute yAxis.
3 4 5 |
# File 'lib/neqa_high_charts/high_chart.rb', line 3 def yAxis @yAxis end |
Instance Method Details
#defaults_options ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/neqa_high_charts/high_chart.rb', line 12 def self.title = {text: nil} self.legend = {layout: "vertical", labels: {}} self.xAxis = {} self.yAxis = {title: {text: nil}, labels: {}} self.tooltip = {enabled: true} self.subtitle = {} end |