Sha256: c6cb65bb60b6c5dc304fc20dca48ccd9f378f3bb2c65e8b937cb40ad38a3440b

Contents?: true

Size: 560 Bytes

Versions: 10

Compression:

Stored size: 560 Bytes

Contents

<% if chart.pie? %>
  chart.valueField = <%= builder.to_js(chart.value_field) %>;
  chart.titleField = <%= builder.to_js(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

10 entries across 10 versions & 1 rubygems

Version Path
amcharts.rb-3.11.2.17 app/views/amcharts/_data.erb
amcharts.rb-3.11.2.16 app/views/amcharts/_data.erb
amcharts.rb-3.11.2.14 app/views/amcharts/_data.erb
amcharts.rb-3.11.1.14 app/views/amcharts/_data.erb
amcharts.rb-3.4.8.0 app/views/amcharts/_data.erb
amcharts.rb-3.4.7.5 app/views/amcharts/_data.erb
amcharts.rb-3.4.7.4 app/views/amcharts/_data.erb
amcharts.rb-3.4.7.3 app/views/amcharts/_data.erb
amcharts.rb-3.4.7.2 app/views/amcharts/_data.erb
amcharts.rb-3.4.7.1 app/views/amcharts/_data.erb