UNPKG

@gitlab/ui

Version:
22 lines (18 loc) 1.33 kB
import examples from './examples'; var description = "### ECharts Wrapper\n\nThe chart component is a Vue component wrapper around [ECharts]. The chart component accepts width and height props in order to allow the user to make it responsive, but it is not responsive by default.\n\n> Note: In every case there should be a specific component for each type of chart (i.e. Line, Area, Bar, etc.). This component should only need to be used by chart type components within GitLab UI as opposed to being used directly within any other codebase.\n\n### EChart Lifecycle\n\nThis component emits the following events during the ECharts lifecycle:\n\n- `created`: emitted after calling `echarts.init`\n- `updated`: emitted after calling `echarts.setOption`\n\nIn all cases, the event payload is the echart instance.\n\n[echarts]: https://echarts.apache.org \n"; var chart_documentation = { description: description, examples: examples, events: [{ event: 'chartItemClicked', args: [{ arg: 'chart', description: 'The chart instance' }, { arg: 'params', description: 'A params object, see also https://echarts.apache.org/en/api.html#events.Mouse%20events' }], description: 'Emitted when clicked on a data item in the chart (e.g., a bar/column).' }] }; export default chart_documentation;