Making WordPress.org

Changeset 10855


Ignore:
Timestamp:
03/29/2021 12:48:09 AM (4 years ago)
Author:
dd32
Message:

Plugin Directory: Restore the bottom legend on the chart, which was hidden in certain resolutions leading me to think it wasn't displayed at all.

Follow up to [10854].

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php

    r10854 r10855  
    9797    if ( get_query_var( 'plugin_advanced' ) ) {
    9898        wp_enqueue_script( 'google-charts-loader', 'https://www.gstatic.com/charts/loader.js', array(), false, true );
    99         wp_enqueue_script( 'wporg-plugins-stats', get_stylesheet_directory_uri() . '/js/stats.js', array( 'jquery', 'google-charts-loader' ), '20210329', true );
     99        wp_enqueue_script( 'wporg-plugins-stats', get_stylesheet_directory_uri() . '/js/stats.js', array( 'jquery', 'google-charts-loader' ), '20210329b', true );
    100100
    101101        wp_localize_script( 'wporg-plugins-stats', 'pluginStats', array(
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/js/stats.js

    r10854 r10855  
    192192
    193193                new google.visualization.BarChart( document.getElementById( 'plugin-version-stats' ) ).draw( data, {
     194                    legend: {
     195                        position: 'bottom'
     196                    },
    194197                    chartArea: {
    195198                        left: '0',
    196199                        width: '100%',
    197                         height: '80%',
     200                        height: '70%',
    198201                        top: '20%'
    199202                    },
Note: See TracChangeset for help on using the changeset viewer.