lib/ecoportal/api/v2/page/component/chart_field.rb in ecoportal-api-v2-0.8.7 vs lib/ecoportal/api/v2/page/component/chart_field.rb in ecoportal-api-v2-0.8.8
- old
+ new
@@ -14,10 +14,11 @@
embeds_one :frequency_config, klass: "Ecoportal::API::V2::Page::Component::ChartField::Frequency"
embeds_one :heatmap_config, klass: "Ecoportal::API::V2::Page::Component::ChartField::Heatmap"
embeds_one :sankey_config, klass: "Ecoportal::API::V2::Page::Component::ChartField::Sankey"
embeds_one :indicator_config, klass: "Ecoportal::API::V2::Page::Component::ChartField::Indicator"
embeds_one :faceted_series_config, klass: "Ecoportal::API::V2::Page::Component::ChartField::Multiseries"
+ embeds_one :benchmark_config, klass: "Ecoportal::API::V2::Page::Component::ChartField::Benchmark"
embeds_many :series, klass: "Ecoportal::API::V2::Page::Component::ChartField::Serie"
MODES = ["frequency", "series", "heatmap", "sankey", "indicator", "faceted_series"]
@@ -33,10 +34,12 @@
sankey_config
when "indicator"
indicator_config
when "faceted_series"
faceted_series_config
+ when "benchmark"
+ benchmark_config
end
end
end
end
@@ -50,5 +53,6 @@
require 'ecoportal/api/v2/page/component/chart_field/serie'
require 'ecoportal/api/v2/page/component/chart_field/heatmap'
require 'ecoportal/api/v2/page/component/chart_field/sankey'
require 'ecoportal/api/v2/page/component/chart_field/indicator'
require 'ecoportal/api/v2/page/component/chart_field/multiseries'
+require 'ecoportal/api/v2/page/component/chart_field/benchmark'