| @@ -58,9 +58,9 @@ | ||
| 58 | 58 | $this->_library = 'google'; |
| 59 | 59 | parent::__construct( $data ); |
| 60 | 60 | |
| 61 | 61 | $this->_legendPositions = array( |
| 62 | - '' => esc_html__( 'Default', 'visualizer' ), | |
| 62 | + '' => '', | |
| 63 | 63 | 'left' => esc_html__( 'Left of the chart', 'visualizer' ), |
| 64 | 64 | 'right' => esc_html__( 'Right of the chart', 'visualizer' ), |
| 65 | 65 | 'top' => esc_html__( 'Above the chart', 'visualizer' ), |
| 66 | 66 | 'bottom' => esc_html__( 'Below the chart', 'visualizer' ), |
| @@ -100,15 +100,13 @@ | ||
| 100 | 100 | * Loads the assets. |
| 101 | 101 | */ |
| 102 | 102 | function load_google_assets( $deps, $is_frontend ) { |
| 103 | 103 | wp_register_script( 'google-jsapi', '//www.gstatic.com/charts/loader.js', array(), null, true ); |
| 104 | - wp_register_script( 'dom-to-image', VISUALIZER_ABSURL . 'js/lib/dom-to-image.min.js', array(), null, true ); | |
| 105 | 104 | wp_register_script( |
| 106 | 105 | 'visualizer-render-google-lib', |
| 107 | 106 | VISUALIZER_ABSURL . 'js/render-google.js', |
| 108 | 107 | array( |
| 109 | 108 | 'google-jsapi', |
| 110 | - 'dom-to-image', | |
| 111 | 109 | ), |
| 112 | 110 | Visualizer_Plugin::VERSION, |
| 113 | 111 | true |
| 114 | 112 | ); |
| @@ -149,9 +147,8 @@ | ||
| 149 | 147 | 'emphasis' => esc_html__( 'Emphasis', 'visualizer' ), |
| 150 | 148 | 'scope' => esc_html__( 'Scope', 'visualizer' ), |
| 151 | 149 | 'style' => esc_html__( 'Style', 'visualizer' ), |
| 152 | 150 | 'tooltip' => esc_html__( 'Tooltip', 'visualizer' ), |
| 153 | - 'interval' => esc_html__( 'Interval', 'visualizer' ), | |
| 154 | 151 | ), |
| 155 | 152 | sprintf( esc_html__( 'Determines whether the series has to be used for a special role as mentioned in %1$shere%2$s. You can view a few examples %3$shere%4$s.', 'visualizer' ), '<a href="https://developers.google.com/chart/interactive/docs/roles#what-roles-are-available" target="_blank">', '</a>', '<a href="https://docs.themeisle.com/article/1160-roles-for-series-visualizer" target="_blank">', '</a>' ) |
| 156 | 153 | ); |
| 157 | 154 | } |
| @@ -250,11 +247,8 @@ | ||
| 250 | 247 | $this->creator, |
| 251 | 248 | '' |
| 252 | 249 | ); |
| 253 | 250 | self::_renderSectionEnd(); |
| 254 | - | |
| 255 | - self::_renderChartImageSettings(); | |
| 256 | - | |
| 257 | 251 | do_action( 'visualizer_chart_settings', get_class( $this ), $this->_data, 'general', array( 'generic' => true ) ); |
| 258 | 252 | |
| 259 | 253 | self::_renderGroupEnd(); |
| 260 | 254 | } |
| @@ -317,9 +311,9 @@ | ||
| 317 | 311 | esc_html__( 'Trigger', 'visualizer' ), |
| 318 | 312 | 'tooltip[trigger]', |
| 319 | 313 | isset( $this->tooltip['trigger'] ) ? $this->tooltip['trigger'] : null, |
| 320 | 314 | array( |
| 321 | - '' => esc_html__( 'Default', 'visualizer' ), | |
| 315 | + '' => '', | |
| 322 | 316 | 'focus' => esc_html__( 'The tooltip will be displayed when the user hovers over an element', 'visualizer' ), |
| 323 | 317 | 'selection' => esc_html__( 'The tooltip will be displayed when the user selects an element', 'visualizer' ), |
| 324 | 318 | 'none' => esc_html__( 'The tooltip will not be displayed', 'visualizer' ), |
| 325 | 319 | ), |