Skip to content

Commit

Permalink
fixes #55
Browse files Browse the repository at this point in the history
* adding explicit check for when min is undefined
  • Loading branch information
Yoav committed Jan 18, 2014
1 parent 7b6cc04 commit 311020b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changelog for Giraffe

* Version 1.0.3 - bug fix for `min: 0` (#55)
* Version 1.0.2 - more configuration options
- Stroke color in area renderer can be a function that takes the graph color
as a d3.rgb color and returns the color of the stroke
Expand Down
2 changes: 1 addition & 1 deletion js/giraffe.js

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

2 changes: 1 addition & 1 deletion js/src/giraffe.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ createGraph = (anchor, metric) ->
element: $("#{anchor} .chart")[0]
width: $("#{anchor} .chart").width()
height: metric.height || 300
min: metric.min || 'auto'
min: if metric.min is undefined then 'auto' else metric.min
max: metric.max
null_as: if metric.null_as is undefined then null else metric.null_as
renderer: metric.renderer || 'area'
Expand Down

0 comments on commit 311020b

Please sign in to comment.