Skip to content

Commit 3b3b93c

Browse files
committed
Release v0.5.3
1 parent f5e79c9 commit 3b3b93c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-graphs",
33
"description": "Angular directive for displaying charts implemented with D3",
4-
"version": "0.5.2",
4+
"version": "0.5.3",
55
"main": [
66
"dist/angular-graphs.js"
77
],

dist/angular-graphs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ angular.module('picardy.graphs.line', ['picardy.graphs.common'])
320320

321321
function render (scope, element) {
322322

323-
var options, d3Data, options, getColor, svg, parseDate, margin, width, height, x, y, labels, axes, lines;
323+
var options, d3Data, options, getColor, svg, margin, width, height, x, y, labels, axes, lines;
324324

325325
if (!scope.data) {
326326
return;
@@ -349,10 +349,10 @@ angular.module('picardy.graphs.line', ['picardy.graphs.common'])
349349
width = options.width - margin.left - margin.right;
350350
height = options.height - margin.top - margin.bottom;
351351

352-
parseDate = d3.time.format('%d-%b-%y').parse;
353-
354352
angular.forEach(options.data, function (d) {
355-
d.x = parseDate(d.x);
353+
if (d.x > 0) {
354+
d.x = new Date(d.x);
355+
}
356356
d3Data.push(d);
357357
});
358358

dist/angular-graphs.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-graphs",
3-
"version": "0.5.2",
3+
"version": "0.5.3",
44
"author": "Tucker Bickler <tucker@picardylearning.com>",
55
"description": "Angular directive for displaying charts implemented with D3",
66
"scripts": {

0 commit comments

Comments
 (0)