| @@ -244,10 +244,8 @@ | ||
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | $library = $this->load_chart_type( $chart->ID ); |
| 247 | 247 | |
| 248 | - $id = $id . '-' . rand(); | |
| 249 | - | |
| 250 | 248 | // add chart to the array |
| 251 | 249 | $this->_charts[ $id ] = array( |
| 252 | 250 | 'type' => $type, |
| 253 | 251 | 'series' => $series, |
| @@ -294,9 +292,9 @@ | ||
| 294 | 292 | $key = $array[0]; |
| 295 | 293 | $mime = end( $array ); |
| 296 | 294 | } |
| 297 | 295 | $label = $actions[ $key ]; |
| 298 | - $actions_div .= '<a href="#" class="visualizer-action visualizer-action-' . $key . '" data-visualizer-type="' . $key . '" data-visualizer-chart-id="' . $atts['id'] . '" data-visualizer-container-id="' . $id . '" data-visualizer-mime="' . $mime . '" title="' . $label . '" '; | |
| 296 | + $actions_div .= '<a href="#" class="visualizer-action visualizer-action-' . $key . '" data-visualizer-type="' . $key . '" data-visualizer-chart-id="' . $atts['id'] . '" data-visualizer-mime="' . $mime . '" title="' . $label . '" '; | |
| 299 | 297 | |
| 300 | 298 | if ( 'copy' === $key ) { |
| 301 | 299 | $copy = $this->_getDataAs( $atts['id'], 'csv' ); |
| 302 | 300 | $actions_div .= ' data-clipboard-text="' . esc_attr( $copy['csv'] ) . '"'; |