Class: ApexCharts::PolarSeries
- Inherits:
-
Object
- Object
- ApexCharts::PolarSeries
- Includes:
- Utils::Copy
- Defined in:
- lib/apexcharts/series/polar.rb
Instance Attribute Summary collapse
-
#sanitized ⇒ Object
readonly
Returns the value of attribute sanitized.
Instance Method Summary collapse
-
#initialize(data) ⇒ PolarSeries
constructor
A new instance of PolarSeries.
- #sample ⇒ Object
Methods included from Utils::Copy
Constructor Details
#initialize(data) ⇒ PolarSeries
Returns a new instance of PolarSeries.
9 10 11 12 13 14 15 16 |
# File 'lib/apexcharts/series/polar.rb', line 9 def initialize(data) build_labels_and_series(deep_copy(data)) @sanitized = { labels: @labels.empty? ? nil : @labels, series: @series }.compact end |
Instance Attribute Details
#sanitized ⇒ Object (readonly)
Returns the value of attribute sanitized.
7 8 9 |
# File 'lib/apexcharts/series/polar.rb', line 7 def sanitized @sanitized end |
Instance Method Details
#sample ⇒ Object
18 19 20 21 22 |
# File 'lib/apexcharts/series/polar.rb', line 18 def sample return if empty? sanitized[:series][0] end |