Class: RCharts::GraphHelper::Tooltips::EntryBuilder
- Inherits:
-
ElementBuilder
- Object
- ElementBuilder
- RCharts::GraphHelper::Tooltips::EntryBuilder
- Defined in:
- app/helpers/rcharts/graph_helper/tooltips/entry_builder.rb
Overview
Tooltip Entry Builder
Instance Method Summary collapse
-
#index ⇒ Object
:attr_accessor: index.
-
#name ⇒ Object
:attr_accessor:.
-
#symbol ⇒ Object
Renders the symbol associated with the series.
-
#value ⇒ Object
:attr_accessor:.
Methods inherited from ElementBuilder
Instance Method Details
#index ⇒ Object
:attr_accessor: index
18 |
# File 'app/helpers/rcharts/graph_helper/tooltips/entry_builder.rb', line 18 attribute :index, :integer, default: 0 |
#name ⇒ Object
:attr_accessor:
14 |
# File 'app/helpers/rcharts/graph_helper/tooltips/entry_builder.rb', line 14 attribute :name |
#symbol ⇒ Object
Renders the symbol associated with the series. You can override this on a per-series basis using :series_options with GraphHelper#graph_for. To change the global set of symbols and colors, see RCharts.symbol_for and RCharts.color_class_for. <%= graph_for @sales do |graph| %> <%= graph.legend do |series| %> <%= series.symbol %> <%= series.name %> <% end %> <% end %>
31 32 33 |
# File 'app/helpers/rcharts/graph_helper/tooltips/entry_builder.rb', line 31 def symbol tag.span symbol_character, class: ['series-symbol', color_class] end |
#value ⇒ Object
:attr_accessor:
10 |
# File 'app/helpers/rcharts/graph_helper/tooltips/entry_builder.rb', line 10 attribute :value |