Class: Trackplot::Components::Tooltip
- Defined in:
- lib/trackplot/components/tooltip.rb
Constant Summary collapse
- FORMAT_SYMBOLS =
{ currency: "currency", percent: "percent", compact: "compact", decimal: "decimal", integer: "integer" }.freeze
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
12 13 14 15 16 17 18 |
# File 'lib/trackplot/components/tooltip.rb', line 12 def to_config { type: "tooltip", format: resolve_format([:format]), label_format: [:label_format] }.compact end |