Skip to content

Commit b311c21

Browse files
Merge pull request #31 from welchyd/patch-1
Update README.md
2 parents af853bf + f65e1a1 commit b311c21

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,16 @@ export default {
3535
components: {
3636
Plotly
3737
},
38-
data:{
39-
data:[{
40-
x: [1,2,3,4],
41-
y: [10,15,13,17],
42-
type:"scatter"
43-
}],
44-
layout:{
45-
title: "My graph"
38+
data() {
39+
return {
40+
data:[{
41+
x: [1,2,3,4],
42+
y: [10,15,13,17],
43+
type:"scatter"
44+
}],
45+
layout:{
46+
title: "My graph"
47+
}
4648
}
4749
}
4850
}

0 commit comments

Comments
 (0)