Sha256: 87c129830b3fbf7dcbec1112260b0579087f960e0a74da9d2527bb938c36bb31
Contents?: true
Size: 811 Bytes
Versions: 5
Compression:
Stored size: 811 Bytes
Contents
# -*- coding: utf-8 -*- class RailsDataExplorer class Chart # Responsibilities: # * Render a table with descriptive statistics for a data series of any type. # # Collaborators: # * DataSet # class DescriptiveStatisticsTable < Chart def initialize(_data_set, options = {}) @data_set = _data_set @options = {}.merge(options) end def render return '' unless render? content_tag(:div, id: dom_id, class: 'rde-chart rde-descriptive-statistics-table') do @data_set.data_series.map { |data_series| content_tag(:h3, "Descriptive Statistics", class: 'rde-chart-title') + render_html_table(data_series.descriptive_statistics_table) }.join.html_safe end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems