Class: Trackplot::Components::Candlestick
- Defined in:
- lib/trackplot/components/candlestick.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Trackplot::Components::Base
Instance Method Details
#to_config ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/trackplot/components/candlestick.rb', line 4 def to_config { type: "candlestick", open: [:open], high: [:high], low: [:low], close: [:close], up_color: [:up_color] || "#10b981", down_color: [:down_color] || "#ef4444" }.compact end |