define(function(require) {
'use strict';
var createListFromArray = require('../helper/createListFromArray');
var SeriesModel = require('../../model/Series');
return SeriesModel.extend({
type: 'series.line',
dependencies: ['grid', 'polar'],
getInitialData: function (option, ecModel) {
return createListFromArray(option.data, this, ecModel);
},
defaultOption: {
zlevel: 0, // ????
z: 2, // ????
coordinateSystem: 'cartesian2d',
legendHoverLink: true,
hoverAnimation: true,
// stack: null
xAxisIndex: 0,
yAxisIndex: 0,
polarIndex: 0,
// If clip the overflow value
clipOverflow: true,
label: {
normal: {
position: 'top'
}
},
// itemStyle: {
// normal: {},
// emphasis: {}
// },
lineStyle: {
normal: {
width: 2,
type: 'solid'
}
},
// areaStyle: {},
smooth: false,
smoothMonotone: null,
// ??????
symbol: 'emptyCircle',
// ??????
symbolSize: 4,
// ????????
symbolRotate: null,
// ???? symbol, ??? tooltip hover ?????
showSymbol: true,
// ?????????????????????????
showAllSymbol: false,
// ??????
connectNulls: false,
// ?????'average', 'max', 'min', 'sum'
sampling: 'none',
animationEasing: 'linear'
}
});
});
|