module Highcharts

api.highcharts.com/highcharts#Highcharts

Public Class Methods

chart(options) click to toggle source
# File lib/opal/highcharts/highcharts.rb, line 6
def self.chart(options)
  Chart.new(options)
end
charts() click to toggle source
# File lib/opal/highcharts/highcharts.rb, line 10
def self.charts
  Native(`Highcharts.charts`).map { |e| Chart.new(e) }
end
date_format(format, time = nil, capitalize = false) click to toggle source
# File lib/opal/highcharts/highcharts.rb, line 14
def self.date_format(format, time = nil, capitalize = false)
  `Highcharts.dateFormat(#{format}, #{time}, #{capitalize})`
end
date_formats(*args, &block) click to toggle source
# File lib/opal/highcharts/highcharts.rb, line 18
def self.date_formats(*args, &block)
  raise UnsupportedFeature, 'Highcharts.dateFormats'
end
number_format(number, decimals = nil, decimal_point = nil, thousands_sep = nil) click to toggle source
# File lib/opal/highcharts/highcharts.rb, line 22
def self.number_format(number, decimals = nil, decimal_point = nil, thousands_sep = nil)
  `Highcharts.dateFormat(#{number}, #{decimals}, #{decimal_point}, #{thousands_sep})`
end
options=(options) click to toggle source

Set global/default chart options (hash)

# File lib/opal/highcharts/highcharts.rb, line 32
def self.options=(options)
  set_options(options)
end
set_options(options) click to toggle source

Set global/default chart options (hash)

# File lib/opal/highcharts/highcharts.rb, line 27
def self.set_options(options)
  `Highcharts.setOptions( #{ options.to_n } )`
end