/**
     * Render the versions pie chart.
     *
     * @since 1.0
     */
    protected function render_versions_pie_chart()
    {
        if (!$this->version || $this->release->get_total_updated() == 0) {
            return;
        }
        $total = $this->version->get_total_items();
        ?>

		<div class="spacing-wrapper bottom-border versions-pie-chart hidden">

			<h4><?php 
        printf(__("Top %d versions updated from", Plugin::SLUG), $total);
        ?>
</h4>

			<div class="chart">
				<?php 
        $this->version->graph();
        ?>
			</div>

			<div id="pie-chart-legend" class="chart-js-legend"></div>
		</div>

		<?php 
    }
 /**
  * Prepare an individual key view.
  *
  * @since 1.0
  *
  * @param Release $release
  *
  * @return array
  */
 protected function prepare_record(Release $release)
 {
     if ($release->get_start_date()) {
         $start_date = $release->get_start_date()->format(get_option('date_format'));
     } else {
         $start_date = '-';
     }
     $updated = $release->get_total_updated();
     $total_activations = $release->get_total_active_activations();
     $total_activations = max(1, $total_activations);
     $percent = min(number_format($updated / $total_activations * 100, 0), 100);
     $data = array('ID' => $release->get_ID(), 'release' => (string) $release, 'status' => $release->get_status(false), 'type' => $release->get_type(true), 'updated' => "{$percent}%", 'start_date' => $start_date);
     /**
      * Filter the columns on the releases list table.
      *
      * @since 1.0
      *
      * @param array   $data
      * @param Release $release
      */
     $data = apply_filters('itelic_releases_list_table_columns', $data, $release);
     return $data;
 }