Skip to content

Commit 19cfc9d

Browse files
committed
simplify svg example
1 parent ee045de commit 19cfc9d

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

examples/svg/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<script type="text/x-template" id="polygraph-template">
1313
<polygon v-attr="points:points"></polygon>
1414
<circle cx="100" cy="100" r="80"></circle>
15-
<text v-repeat="stats" v-component="axis-label" v-attr="x:x, y:y">
15+
<text v-repeat="stats" v-component="axis-label" v-attr="x:point.x, y:point.y">
1616
{{label}}
1717
</text>
1818
</script>

examples/svg/svg.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ Vue.component('polygraph', {
3131
this.$index,
3232
this.$parent.stats.length
3333
)
34-
},
35-
x: function () {
36-
return this.point.x - 4
37-
},
38-
y: function () {
39-
return this.point.y + 4
4034
}
4135
}
4236
}

0 commit comments

Comments
 (0)