This commit is contained in:
syuilo 2017-08-12 15:26:56 +09:00
parent d16b0ae064
commit 6391caa60c

View file

@ -144,7 +144,7 @@
</style> </style>
<script> <script>
this.viewBoxX = 365; this.viewBoxX = 365;
this.viewBoxY = 60; this.viewBoxY = 80;
this.data = this.opts.data.reverse(); this.data = this.opts.data.reverse();
this.data.forEach(d => d.total = d.posts + d.replies + d.reposts); this.data.forEach(d => d.total = d.posts + d.replies + d.reposts);
@ -184,7 +184,7 @@
</style> </style>
<script> <script>
this.viewBoxX = 365; this.viewBoxX = 365;
this.viewBoxY = 60; this.viewBoxY = 80;
this.data = this.opts.data.reverse(); this.data = this.opts.data.reverse();
const peak = Math.max.apply(null, this.data.map(d => d.count)); const peak = Math.max.apply(null, this.data.map(d => d.count));