diff --git a/jquery.peity.js b/jquery.peity.js
index <HASH>..<HASH> 100644
--- a/jquery.peity.js
+++ b/jquery.peity.js
@@ -25,11 +25,7 @@
           $.extend(chart.opts, options)
         } else {
           var defaults = peity.defaults[type]
-          var data = {}
-
-          $.each($this.data(), function(name, value) {
-            if (name in defaults) data[name] = value
-          })
+            , data = $this.data('peity')
 
           chart = new Peity(
             $this,
Store all data attributes in the "data-peity" attribute.