Chart docs
parent
ef47f67a52
commit
c08ef854a4
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue