| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- export const lineConfig = {
- /**
- * @description Whether to display this line chart
- * @type {Boolean}
- * @default show = true
- */
- show: true,
- /**
- * @description Legend name
- * @type {String}
- * @default name = ''
- */
- name: '',
- /**
- * @description Data stacking
- * The data value of the series element of the same stack
- * will be superimposed (the latter value will be superimposed on the previous value)
- * @type {String}
- * @default stack = ''
- */
- stack: '',
- /**
- * @description Smooth line
- * @type {Boolean}
- * @default smooth = false
- */
- smooth: false,
- /**
- * @description Line x axis index
- * @type {Number}
- * @default xAxisIndex = 0
- * @example xAxisIndex = 0 | 1
- */
- xAxisIndex: 0,
- /**
- * @description Line y axis index
- * @type {Number}
- * @default yAxisIndex = 0
- * @example yAxisIndex = 0 | 1
- */
- yAxisIndex: 0,
- /**
- * @description Line chart data
- * @type {Array}
- * @default data = []
- * @example data = [100, 200, 300]
- */
- data: [],
- /**
- * @description Line default style configuration
- * @type {Object}
- * @default style = {Configuration Of Class Style}
- */
- lineStyle: {
- lineWidth: 1
- },
- /**
- * @description Line point configuration
- * @type {Object}
- */
- linePoint: {
- /**
- * @description Whether to display line point
- * @type {Boolean}
- * @default show = true
- */
- show: true,
- /**
- * @description Line point radius
- * @type {Number}
- * @default radius = 2
- */
- radius: 2,
- /**
- * @description Line point default style configuration
- * @type {Object}
- * @default style = {Configuration Of Class Style}
- */
- style: {
- fill: '#fff',
- lineWidth: 1
- }
- },
- /**
- * @description Line area configuration
- * @type {Object}
- */
- lineArea: {
- /**
- * @description Whether to display line area
- * @type {Boolean}
- * @default show = false
- */
- show: false,
- /**
- * @description Line area gradient color (Hex|rgb|rgba)
- * @type {Array}
- * @default gradient = []
- */
- gradient: [],
- /**
- * @description Line area style default configuration
- * @type {Object}
- * @default style = {Configuration Of Class Style}
- */
- style: {
- opacity: 0.5
- }
- },
- /**
- * @description Line label configuration
- * @type {Object}
- */
- label: {
- /**
- * @description Whether to display line label
- * @type {Boolean}
- * @default show = false
- */
- show: false,
- /**
- * @description Line label position
- * @type {String}
- * @default position = 'top'
- * @example position = 'top' | 'center' | 'bottom'
- */
- position: 'top',
- /**
- * @description Line label offset
- * @type {Array}
- * @default offset = [0, -10]
- */
- offset: [0, -10],
- /**
- * @description Line label formatter
- * @type {String|Function}
- * @default formatter = null
- * @example formatter = '{value}件'
- * @example formatter = (dataItem) => (dataItem.value)
- */
- formatter: null,
- /**
- * @description Line label default style configuration
- * @type {Object}
- * @default style = {Configuration Of Class Style}
- */
- style: {
- fontSize: 10
- }
- },
- /**
- * @description Line chart render level
- * Priority rendering high level
- * @type {Number}
- * @default rLevel = 10
- */
- rLevel: 10,
- /**
- * @description Line animation curve
- * @type {String}
- * @default animationCurve = 'easeOutCubic'
- */
- animationCurve: 'easeOutCubic',
- /**
- * @description Line animation frame
- * @type {Number}
- * @default animationFrame = 50
- */
- animationFrame: 50
- }
|