mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Convert to PrimeVue monorepo
This commit is contained in:
parent
970ba75b06
commit
61929eae75
4144 changed files with 59008 additions and 36177 deletions
104
packages/primevue/scripts/components/chart.js
Normal file
104
packages/primevue/scripts/components/chart.js
Normal file
|
@ -0,0 +1,104 @@
|
|||
const ChartProps = [
|
||||
{
|
||||
name: 'type',
|
||||
type: 'string',
|
||||
default: 'null',
|
||||
description: 'Type of the chart.'
|
||||
},
|
||||
{
|
||||
name: 'data',
|
||||
type: 'any',
|
||||
default: 'null',
|
||||
description: 'Data to display.'
|
||||
},
|
||||
{
|
||||
name: 'options',
|
||||
type: 'any',
|
||||
default: 'null',
|
||||
description: 'Options to customize the chart.'
|
||||
},
|
||||
{
|
||||
name: 'plugins',
|
||||
type: 'any',
|
||||
default: 'null',
|
||||
description: 'Used to custom plugins of the chart.'
|
||||
},
|
||||
{
|
||||
name: 'width',
|
||||
type: 'number',
|
||||
default: '300',
|
||||
description: 'Width of the chart in non-responsive mode.'
|
||||
},
|
||||
{
|
||||
name: 'height',
|
||||
type: 'number',
|
||||
default: '150',
|
||||
description: 'Height of the chart in non-responsive mode.'
|
||||
},
|
||||
{
|
||||
name: 'pt',
|
||||
type: 'any',
|
||||
default: 'null',
|
||||
description: 'Used to pass attributes to DOM elements inside the component.'
|
||||
},
|
||||
{
|
||||
name: 'unstyled',
|
||||
type: 'boolean',
|
||||
default: 'false',
|
||||
description: 'When enabled, it removes component related styles in the core.'
|
||||
}
|
||||
];
|
||||
|
||||
const ChartEvents = [
|
||||
{
|
||||
name: 'select',
|
||||
description: 'Callback to invoke when a tab gets expanded.',
|
||||
arguments: [
|
||||
{
|
||||
name: 'originalEvent',
|
||||
type: 'object',
|
||||
description: 'Browser event'
|
||||
},
|
||||
{
|
||||
name: 'dataset',
|
||||
type: 'object',
|
||||
description: 'Selected dataset'
|
||||
},
|
||||
{
|
||||
name: 'element',
|
||||
type: 'object',
|
||||
description: 'Selected element'
|
||||
},
|
||||
{
|
||||
name: 'element._datasetIndex',
|
||||
type: 'number',
|
||||
description: 'Index of the dataset in data'
|
||||
},
|
||||
{
|
||||
name: 'element._index',
|
||||
type: 'number',
|
||||
description: 'Index of the data in dataset'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'loaded',
|
||||
description: 'Callback to invoke when chart is loaded.',
|
||||
arguments: [
|
||||
{
|
||||
name: 'chart',
|
||||
type: 'object',
|
||||
description: 'Chart instance.'
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
chart: {
|
||||
name: 'Chart',
|
||||
description: 'Chart components are based on Charts.js, an open source HTML5 based charting library.',
|
||||
props: ChartProps,
|
||||
events: ChartEvents
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue