Class: Ambling::Stock::Settings::Charts::Chart
- Inherits:
-
Object
- Object
- Ambling::Stock::Settings::Charts::Chart
- Includes:
- Base
- Defined in:
- lib/ambling/stock.rb
Overview
-
(Number) the relative height of your chart. If you have one chart, it will take 100% of
plot area. If you do not set any number, the space for your charts will be divided equally #
Defined Under Namespace
Classes: Comparing, Events, Graphs, Grid, Legend, Values
Constant Summary collapse
- VALUES =
[:height,:title,:bg_color,:bg_alpha,:border_color,:border_alpha,:grid,:values,:legend,:comparing,:events,:column_width,:graphs]
- ATTRIBUTES =
[:cid]
Instance Attribute Summary collapse
-
#bg_alpha ⇒ Object
- #CCCCCC
-
(hex code) Chart border color #.
-
#bg_color ⇒ Object
- 100
-
(0 - 100) background opacity #.
-
#border_alpha ⇒ Object
GRID #.
-
#border_color ⇒ Object
- 100
-
(0 - 100) border opacity #.
-
#cid ⇒ Object
xml attribute.
-
#column_width ⇒ Object
GRAPHS.
-
#comparing ⇒ Object
- true
-
(true / false) in stock charts, when comparing one stock with another it is used to recalculate chart values to percents, as the difference between values of different stocks can be very big.
-
#events ⇒ Object
- true
-
(true / false) Whether to show balloon with description on roll-over the flag or not.
-
#graphs ⇒ Object
first graph #.
-
#grid ⇒ Object
Returns the value of attribute grid.
-
#height ⇒ Object
-
(text) chart’s title is displayed above your chart, in the left #.
-
#legend ⇒ Object
- true
-
(true / false) whether to show legend or not #.
-
#title ⇒ Object
- #FFFFFF
-
(hex code) Chart background color.
-
#values ⇒ Object
Returns the value of attribute values.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#bg_alpha ⇒ Object
- #CCCCCC
-
(hex code) Chart border color #
403 404 405 |
# File 'lib/ambling/stock.rb', line 403 def bg_alpha @bg_alpha end |
#bg_color ⇒ Object
- 100
-
(0 - 100) background opacity #
399 400 401 |
# File 'lib/ambling/stock.rb', line 399 def bg_color @bg_color end |
#border_alpha ⇒ Object
GRID #
411 412 413 |
# File 'lib/ambling/stock.rb', line 411 def border_alpha @border_alpha end |
#border_color ⇒ Object
- 100
-
(0 - 100) border opacity #
407 408 409 |
# File 'lib/ambling/stock.rb', line 407 def border_color @border_color end |
#cid ⇒ Object
xml attribute
447 448 449 |
# File 'lib/ambling/stock.rb', line 447 def cid @cid end |
#column_width ⇒ Object
GRAPHS. One chart can have a lot of graphs #
438 439 440 |
# File 'lib/ambling/stock.rb', line 438 def column_width @column_width end |
#comparing ⇒ Object
- true
-
(true / false) in stock charts, when comparing one stock with another it is used
to recalculate chart values to percents, as the difference between values of different stocks can be very big. However, if you compare close values, for example unique visitors with new visitors, it would be better not to recalculate values #
430 431 432 |
# File 'lib/ambling/stock.rb', line 430 def comparing @comparing end |
#events ⇒ Object
- true
-
(true / false) Whether to show balloon with description on roll-over the flag or not. #
434 435 436 |
# File 'lib/ambling/stock.rb', line 434 def events @events end |
#graphs ⇒ Object
first graph #
442 443 444 |
# File 'lib/ambling/stock.rb', line 442 def graphs @graphs end |
#grid ⇒ Object
Returns the value of attribute grid.
415 416 417 |
# File 'lib/ambling/stock.rb', line 415 def grid @grid end |
#height ⇒ Object
-
(text) chart’s title is displayed above your chart, in the left #
390 391 392 |
# File 'lib/ambling/stock.rb', line 390 def height @height end |
#legend ⇒ Object
- true
-
(true / false) whether to show legend or not #
423 424 425 |
# File 'lib/ambling/stock.rb', line 423 def legend @legend end |
#title ⇒ Object
- #FFFFFF
-
(hex code) Chart background color. Separate color codes with commas if you want
to have gradient background#
395 396 397 |
# File 'lib/ambling/stock.rb', line 395 def title @title end |
#values ⇒ Object
Returns the value of attribute values.
419 420 421 |
# File 'lib/ambling/stock.rb', line 419 def values @values end |