Plugin Directory

Changeset 1189770


Ignore:
Timestamp:
06/29/2015 05:53:32 PM (10 years ago)
Author:
chuckmac
Message:

Adding tooltip information to legend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-sales-by-location-report/trunk/classes/class-wc-report-sales-by-location.php

    r1189769 r1189770  
    125125                $export_data[$location_values->countries_data][] = $location_values;
    126126            }
     127
     128            $placeholder = __( 'This is the count of orders during this period.', 'woocommerce-location-report' );
     129
    127130        } elseif ( 'order-total' == $this->totals_by ) {
    128131            foreach ( $data->orders as $location_values ) {
     
    136139                $export_data[$location_values->countries_data][] = $location_values;
    137140            }
     141
     142            $placeholder = __( 'This is the sum of the order totals after any refunds and including shipping and taxes.', 'woocommerce-location-report' );
     143
    138144        }
    139145
     
    162168        $legend[] = array(
    163169            'title' => sprintf( __( '%s orders in this period', 'woocommerce-location-report' ), '<strong>' . $total . '</strong>' ),
     170            'placeholder' => $placeholder,
    164171            'color' => $this->chart_colours['order_total'],
    165172            'highlight_series' => 1
     
    168175        $legend[] = array(
    169176            'title' => sprintf( __( '%s countries in this period', 'woocommerce-location-report' ), '<strong>' . ( isset( $country_data['UNDEFINED'] ) ? count( $country_data ) - 1 :count( $country_data ) ) . '</strong>' ),
     177            'placeholder' => __( 'This is the total number of countries represented in this report.', 'woocommerce-location-report' ),
    170178            'color' => $this->chart_colours['individual_total'],
    171179            'highlight_series' => 2
Note: See TracChangeset for help on using the changeset viewer.