Class: NeqaHighCharts::HighChart

Inherits:
Object
  • Object
show all
Defined in:
lib/neqa_high_charts/high_chart.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHighChart

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

#chartObject

Returns the value of attribute chart.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def chart
  @chart
end

#colorsObject

Returns the value of attribute colors.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def colors
  @colors
end

#creditsObject

Returns the value of attribute credits.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def credits
  @credits
end

#drilldownObject

Returns the value of attribute drilldown.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def drilldown
  @drilldown
end

#exportingObject

Returns the value of attribute exporting.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def exporting
  @exporting
end

#labelsObject

Returns the value of attribute labels.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def labels
  @labels
end

#legendObject

Returns the value of attribute legend.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def legend
  @legend
end

#loadingObject

Returns the value of attribute loading.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def loading
  @loading
end

Returns the value of attribute navigation.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def navigation
  @navigation
end

#noDataObject

Returns the value of attribute noData.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def noData
  @noData
end

#paneObject

Returns the value of attribute pane.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def pane
  @pane
end

#plotOptionsObject

Returns the value of attribute plotOptions.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def plotOptions
  @plotOptions
end

#scrollbarObject

Returns the value of attribute scrollbar.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def scrollbar
  @scrollbar
end

#seriesObject

Returns the value of attribute series.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def series
  @series
end

#subtitleObject

Returns the value of attribute subtitle.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def subtitle
  @subtitle
end

#titleObject

Returns the value of attribute title.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def title
  @title
end

#tooltipObject

Returns the value of attribute tooltip.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def tooltip
  @tooltip
end

#xAxisObject

Returns the value of attribute xAxis.



3
4
5
# File 'lib/neqa_high_charts/high_chart.rb', line 3

def xAxis
  @xAxis
end

#yAxisObject

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_optionsObject



12
13
14
15
16
17
18
19
# File 'lib/neqa_high_charts/high_chart.rb', line 12

def defaults_options
  self.title = {text: nil}
  self.legend = {layout: "vertical", labels: {}}
  self.xAxis = {}
  self.yAxis = {title: {text: nil}, labels: {}}
  self.tooltip = {enabled: true}
  self.subtitle = {}
end