Class: Trackplot::Components::Heatmap
- Defined in:
- lib/trackplot/components/heatmap.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 |
# File 'lib/trackplot/components/heatmap.rb', line 4 def to_config { type: "heatmap", x_key: [:x_key], y_key: [:y_key], value_key: [:value_key], color_range: [:color_range] || ["#f0f9ff", "#1e40af"], radius: [:radius] || 2 }.compact end |