Sha256: 9b957a2167a3a16e1bb7d2b1bdbfe6c958fef1a3b857272f7651c79ec8197798

Contents?: true

Size: 534 Bytes

Versions: 7

Compression:

Stored size: 534 Bytes

Contents

<% if chart.pie? %>
  chart.valueField = '<%= chart.value_field %>';
  chart.titleField = '<%= chart.title_field %>';
<% else %>
  <%#= render(layout: 'amcharts/collection', object: chart.graphs, locals: { builder: builder, name: :graph, type: 'AmGraph' }) do |obj, var| %>
  <%= builder.render_js('collection', template_type: :layout, object: chart.graphs, locals: { name: :graph, type: 'AmGraph' }) do |obj, var| %>
    <%= var %>.valueField = '<%= obj.value_field %>';
    <%= var %>.type = '<%= obj.type %>';
  <% end %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
amcharts.rb-3.4.7.0 app/views/amcharts/_data.erb
amcharts.rb-3.2.0.2 app/views/amcharts/_data.erb
amcharts.rb-3.2.0.1 app/views/amcharts/_data.erb
amcharts.rb-3.2.0.0 app/views/amcharts/_data.erb
amcharts.rb-3.1.1.3 app/views/amcharts/_data.erb
amcharts.rb-3.1.1.1 app/views/amcharts/_data.erb
amcharts.rb-3.1.1.0 app/views/amcharts/_data.erb