diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2164ec9..61e1885 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,8 @@
# Angular-Dimple Changelog
+## v.1.1.4
+* Fix bug that caused smooshed graphs on Firefox
+
## v1.1.3
* rebuild site
* add `color` attribute on graph.js
diff --git a/Gruntfile.js b/Gruntfile.js
index ad5ce8d..3ae287f 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -149,7 +149,7 @@ module.exports = function(grunt) {
'compress': {
main: {
options: {
- archive: repo + '.zip'
+ archive: name + '.zip'
},
files: [
{
@@ -179,8 +179,7 @@ module.exports = function(grunt) {
release: {
tag_name: currentVersion,
name: currentVersion,
- body: description,
- prerelease: true
+ body: description
}
},
files: {
diff --git a/lib/graph.js b/lib/graph.js
index 8c7e85b..e81387e 100644
--- a/lib/graph.js
+++ b/lib/graph.js
@@ -39,25 +39,20 @@ angular.module('angular-dimple.graph', [])
controller: ['$scope', '$element', '$attrs', function($scope, $element, $attrs) {
var chart;
+ var id = (Math.random() * 1e9).toString(36).replace(".", "_");
+ $element.append('
');
+
this._createChart = function () {
// create an svg element
- var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
- if ($attrs.width) {
- svg.setAttribute('width', $attrs.width);
- } else {
- svg.setAttribute('width', '100%');
- }
- if ($attrs.height) {
- svg.setAttribute('height', $attrs.height);
- } else {
- svg.setAttribute('height', '100%');
- }
- // end the svg to this
- $element.append(svg);
+ var width = $attrs.width ? $attrs.width : '100%';
+ var height = $attrs.height ? $attrs.height : '100%';
+
+ var svg = dimple.newSvg('#dng-'+ id +'', width, height);
+ var data = $scope.data;
// create the dimple chart using the d3 selection of our