Chart docs

pull/12/head
cagataycivici 2019-05-23 12:28:49 +03:00
parent ef47f67a52
commit c08ef854a4
1 changed files with 68 additions and 60 deletions

View File

@ -1,6 +1,12 @@
<template>
<div class="content-section documentation">
<h3>Import</h3>
<h3>Getting Started</h3>
<p>To begin with, charts.js package needs to be installed in your project.</p>
<CodeHighlight lang="javascript">
npm install chart.js --save
</CodeHighlight>
<h3 style="margin-top: 0">Import</h3>
<CodeHighlight lang="javascript">
import Chart from 'primevue/chart';
</CodeHighlight>
@ -56,7 +62,8 @@ options: {
display: true,
position: 'left',
id: 'y-axis-1',
}, {
},
{
type: 'linear',
display: true,
position: 'right',
@ -64,7 +71,8 @@ options: {
gridLines: {
drawOnChartArea: false
}
}]
}
]
}
}
</CodeHighlight>