app/assets/javascripts/chart_candy/line.coffee in chart-candy-0.0.10 vs app/assets/javascripts/chart_candy/line.coffee in chart-candy-0.0.11

- old
+ new

@@ -132,11 +132,11 @@ shape = holder.append("svg:path").attr("class", "#{class_name}").attr("clip-path", "url(#clip)").attr("d", shape(values)) drawTooltip: () -> - @tooltip = @chart.append('svg:g').attr('class', 'tooltip') + @tooltip = @chart.append('svg:g').attr('class', 'chart-tooltip') @tooltip.append('svg:rect').attr('rx', 10).attr('ry', 10) @tooltip.append('svg:text').text('') drawXAxis: () -> @@ -158,10 +158,11 @@ max = axis.max if axis.nature is 'date' @yAxis = d3.time.scale().domain([min, max]).range([@height, 0]) else - upperGap = (Math.round(max / ((@height * 0.75)/@tickSize))) + max = Math.round(max) + upperGap = (Math.round(max / ((@height * 0.95)/@tickSize))) @yAxis = d3.scale.linear().domain([min, max+upperGap]).range([@height, 5]) @drawAxis side, @yAxis, @width, axis.nature, axis.max_ticks exportXls: () ->