app/assets/javascripts/index.js.erb in attractor-0.5.1 vs app/assets/javascripts/index.js.erb in attractor-0.6.0
- old
+ new
@@ -1,5 +1,5 @@
-const data = <%= JSON.generate(@values) %>;
+const values = <%= JSON.generate(@values) %>;
document.addEventListener('DOMContentLoaded', () => {
- const svg = chart(data, document.querySelector('#graph'));
+ const svg = scatterPlot(document.querySelector('#graph'), { values: values, displayFilenames: true });
});