Class: Ambling::Line::Settings::Balloon

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/ambling/line.rb

Overview

BALLOON

Constant Summary collapse

VALUES =
[:enabled,:only_one,:on_off,:color,:alpha,:text_color,:text_size,:max_width,:corner_radius,:border_width,:border_alpha,:border_color]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#alphaObject

(0 - 100) balloon background opacity. If not set, graph.balloon_alpha will be used.



961
962
963
# File 'lib/ambling/line.rb', line 961

def alpha
  @alpha
end

#border_alphaObject

balloon.alpha

(Number)



991
992
993
# File 'lib/ambling/line.rb', line 991

def border_alpha
  @border_alpha
end

#border_colorObject

balloon.color

(hex color code)



996
997
998
# File 'lib/ambling/line.rb', line 996

def border_color
  @border_color
end

#border_widthObject

0

(Number)



986
987
988
# File 'lib/ambling/line.rb', line 986

def border_width
  @border_width
end

#colorObject

(hex color code) balloon background color. If not set, graph.balloon_color will be used.



956
957
958
# File 'lib/ambling/line.rb', line 956

def color
  @color
end

#corner_radiusObject

0

(Number) Corner radius of a balloon. If you set it > 0, the balloon will not display arrow



981
982
983
# File 'lib/ambling/line.rb', line 981

def corner_radius
  @corner_radius
end

#enabledObject

true

(true / false)



941
942
943
# File 'lib/ambling/line.rb', line 941

def enabled
  @enabled
end

#max_widthObject

(Number) The maximum width of a balloon. If not set, half width of plot area will be used



976
977
978
# File 'lib/ambling/line.rb', line 976

def max_width
  @max_width
end

#on_offObject

true

(true/false) whether it will be possible to turn on or off y balloons by clicking on a legend or on a graph



951
952
953
# File 'lib/ambling/line.rb', line 951

def on_off
  @on_off
end

#only_oneObject

false

(true / false) if set to true, only one balloon at a time will be displayed



946
947
948
# File 'lib/ambling/line.rb', line 946

def only_one
  @only_one
end

#text_colorObject

(hex color code) baloon text color. If not set, graph.balloon_text_color will be used



966
967
968
# File 'lib/ambling/line.rb', line 966

def text_color
  @text_color
end

#text_sizeObject

text_size

(Number)



971
972
973
# File 'lib/ambling/line.rb', line 971

def text_size
  @text_size
end