npm install vue-comp-chartjs_milestone
import MilestoneChart from 'vue-comp-chartjs_milestone';
createApp(App)
.use(MilestoneChart)
.mount("#app");
const datasets = [];
<v-chart-milestone :chartData="datasets" :chartOptions="options" :colors="colors" />
datasets: Dataset[] , // Array with Datasets
labels: Date[], // Dates
label: string , // description of milestone
fill: any, // fill to bottom
borderColor: string, // color of line
data?: Date[] // data for each label.
setup: () => {
const colors = useColorPalette(60, 60, 70);
return {
data,
options,
colors
};