This repository has been archived by the owner on Nov 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rendering issue #65 with Chart.js 1.1.1 and provide backward comp…
…atibility as requested by @carlcraig (#72)
- Loading branch information
1 parent
37edd47
commit 8e193ab
Showing
6 changed files
with
51 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "tc-angular-chartjs", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "Add Chart.js charts to your angular application", | ||
"homepage": "http://carlcraig.github.io/tc-angular-chartjs/", | ||
"author": "Carl Craig <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* tc-angular-chartjs - v1.0.15 - 2016-02-15 | ||
* tc-angular-chartjs - v1.0.16 - 2016-06-03 | ||
* Copyright (c) 2016 Carl Craig <[email protected]> | ||
* Dual licensed with the Apache-2.0 or MIT license. | ||
*/ | ||
|
@@ -111,7 +111,11 @@ | |
if (exposeChart) { | ||
$scope.chart = chartObj; | ||
} | ||
chartObj.resize(); | ||
if (angular.isFunction(chartObj.update)) { | ||
chartObj.update(); | ||
} else { | ||
chartObj.resize(); | ||
} | ||
} | ||
}, true); | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "tc-angular-chartjs", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "Add Chart.js charts to your angular application", | ||
"homepage": "http://carlcraig.github.io/tc-angular-chartjs/", | ||
"author": "Carl Craig <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters