Skip to content

Commit

Permalink
Fixed an issue with the Pie chart when it is being loaded in inactive…
Browse files Browse the repository at this point in the history
… tab
  • Loading branch information
martynasma committed Aug 6, 2015
1 parent 06e3109 commit 6b0a14d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion dataloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Plugin Name: amCharts Data Loader
Description: This plugin adds external data loading capabilities to all amCharts libraries.
Author: Martynas Majeris, amCharts
Version: 1.0.6
Version: 1.0.7
Author URI: http://www.amcharts.com/
Copyright 2015 amCharts
Expand Down Expand Up @@ -257,6 +257,10 @@ AmCharts.addInitHandler( function( chart ) {
// take in new data
chart.validateData();

// invalidate size for the pie chart
if ( 'pie' === chart.type && chart.invalidateSize !== undefined)
chart.invalidateSize();

// make the chart animate again
if ( l.startDuration ) {
if ( 'stock' === chart.type ) {
Expand Down
2 changes: 1 addition & 1 deletion dataloader.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# amCharts Data Loader

Version: 1.0.6
Version: 1.0.7


## Description
Expand Down Expand Up @@ -270,6 +270,9 @@ http://www.apache.org/licenses/LICENSE-2.0

## Changelog

### 1.0.7
* Fixed an issue with the Pie chart when it is being loaded in inactive tab

### 1.0.6
* Added support for Gauge chart (loads "arrows" array)

Expand Down

0 comments on commit 6b0a14d

Please sign in to comment.