Sha256: 8ca3de38305bd3c1b71103278372668062e11f193af75d0aea88e223d2a682b3

Contents?: true

Size: 950 Bytes

Versions: 71

Compression:

Stored size: 950 Bytes

Contents

<turbo-frame id="summary-frame-<%= @field_id %>">
  <div class="grid grid-cols-12 items-center">
    <ul class="col-span-5" id="<%= @field_id %>-summary">
      <% @values_summary.each_with_index do |(key, value), index| %>
        <li class="grid grid-cols-6 gap-3 items-center font-semibold text-sm text-gray-600 uppercase">
          <div class="flex items-center space-x-1 col-span-5 truncate">
            <span class="<%= "inline-block w-[0.75rem] h-[0.75rem] rounded-full bg-[#{chart_color(index)}]" %>"></span>
            <span>
              <%= key %>
            </span>
          </div>
          <div class="col-span-1 text-right">
            <%= value %>
          </div>
        </li>
      <% end %>
    </ul>
    <div class="col-start-7 col-span-6">
      <%= pie_chart @values_summary, id: "chart-#{@field_id}", legend: false, height: "200px", colors: Avo.configuration.branding.chart_colors %>
    </div>
  </div>
</turbo-frame>

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
avo-3.16.4 app/views/avo/partials/distribution_chart.html.erb
avo-3.16.3 app/views/avo/partials/distribution_chart.html.erb
avo-3.16.2 app/views/avo/partials/distribution_chart.html.erb
avo-3.16.1 app/views/avo/partials/distribution_chart.html.erb
avo-3.16.0 app/views/avo/partials/distribution_chart.html.erb
avo-3.15.7 app/views/avo/partials/distribution_chart.html.erb
avo-3.15.6 app/views/avo/partials/distribution_chart.html.erb
avo-3.15.5 app/views/avo/partials/distribution_chart.html.erb
avo-3.15.4 app/views/avo/partials/distribution_chart.html.erb
avo-3.15.3 app/views/avo/partials/distribution_chart.html.erb
avo-3.15.2 app/views/avo/partials/distribution_chart.html.erb
avo-3.15.1 app/views/avo/partials/distribution_chart.html.erb
avo-3.15.0 app/views/avo/partials/distribution_chart.html.erb
avo-3.14.5 app/views/avo/partials/distribution_chart.html.erb
avo-3.14.4 app/views/avo/partials/distribution_chart.html.erb
avo-3.14.3 app/views/avo/partials/distribution_chart.html.erb
avo-3.14.2 app/views/avo/partials/distribution_chart.html.erb
avo-3.14.1 app/views/avo/partials/distribution_chart.html.erb
avo-3.14.0 app/views/avo/partials/distribution_chart.html.erb
avo-3.13.7 app/views/avo/partials/distribution_chart.html.erb