Class: Ambling::Pie::Settings::Balloon

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

Overview

BALLOON

Constant Summary collapse

VALUES =
[:enabled,:color,:alpha,:text_color,:text_size,:show,: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

80

(0 - 100)



444
445
446
# File 'lib/ambling/pie.rb', line 444

def alpha
  @alpha
end

#border_alphaObject

balloon.alpha

(Number)



479
480
481
# File 'lib/ambling/pie.rb', line 479

def border_alpha
  @border_alpha
end

#border_colorObject

balloon.color

(hex color code)



484
485
486
# File 'lib/ambling/pie.rb', line 484

def border_color
  @border_color
end

#border_widthObject

0

(Number)



474
475
476
# File 'lib/ambling/pie.rb', line 474

def border_width
  @border_width
end

#colorObject

(hex color code) balloon background color. If empty, slightly darker then current slice color will be used



439
440
441
# File 'lib/ambling/pie.rb', line 439

def color
  @color
end

#corner_radiusObject

0

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



469
470
471
# File 'lib/ambling/pie.rb', line 469

def corner_radius
  @corner_radius
end

#enabledObject

true

(true / false)



434
435
436
# File 'lib/ambling/pie.rb', line 434

def enabled
  @enabled
end

#max_widthObject

220

(Number) The maximum width of a balloon



464
465
466
# File 'lib/ambling/pie.rb', line 464

def max_width
  @max_width
end

#showObject

title: percents% (value)
description

(value title percents description) You can format any data label: value - will be replaced with value and so on. You can add your own text or html code too.



459
460
461
# File 'lib/ambling/pie.rb', line 459

def show
  @show
end

#text_colorObject

#FFFFFF

(hex color code)



449
450
451
# File 'lib/ambling/pie.rb', line 449

def text_color
  @text_color
end

#text_sizeObject

text_size

(Number)



454
455
456
# File 'lib/ambling/pie.rb', line 454

def text_size
  @text_size
end