<template> <div id="app"> <h2>Chart: Benedict's Weight</h2> <!-- id - Every chart must have an id. --> <!-- title - The title displayed on the chart --> <!-- type - The type of chart: line, bar, percent, pie, or axis-mixed. --> <!-- labels - Names for each value on the x-axis. --> <!-- height- Optional: How tall the chart should be. --> <!-- colors - Separate colors for each dataset. --> <!-- lineOptions - Additional options for how to display line charts. See docs. --> <!-- datasets - An array of objects containing names and values for each data set. --> <vue-frappe id="my-chart-id" title="Benedict's Weight From 2017-2018 (lbs)" type="line" :labels="['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']" :height="650" :colors="['#008F68', '#FAE042']" :lineOptions="{regionFill: 1}" :datasets="[ {name: '2017', values: benedictsWeight2017}, {name: '2018', values: benedictsWeight2018} ]" ></vue-frappe> <p>Conclusion: Benedict needs to go on a diet.</p> </div> </template> <script> export default { name: 'app', data() { return { benedictsWeight2017: [480, 485, 491, 489, 485, 490, 497, 510, 512, 521, 530, 545], benedictsWeight2018: [540, 575, 570, 555, 572, 580, 585, 587, 588, 590, 592, 590] } } } </script>