define(function (require) {
'use strict';
var createListFromArray = require('../helper/createListFromArray');
var SeriesModel = require('../../model/Series');
return SeriesModel.extend({
type: 'series.scatter',
dependencies: ['grid', 'polar'],
getInitialData: function (option, ecModel) {
var list = createListFromArray(option.data, this, ecModel);
return list;
},
defaultOption: {
coordinateSystem: 'cartesian2d',
zlevel: 0,
z: 2,
legendHoverLink: true,
hoverAnimation: true,
// Cartesian coordinate system
xAxisIndex: 0,
yAxisIndex: 0,
// Polar coordinate system
polarIndex: 0,
// Geo coordinate system
geoIndex: 0,
// symbol: null, // ????
symbolSize: 10, // ????????????????????????????symbolSize * 2
// symbolRotate: null, // ??????
large: false,
// Available when large is true
largeThreshold: 2000,
// label: {
// normal: {
// show: false
// distance: 5,
// formatter: ?????????Tooltip.formatter????????
// position: ???????????'top'??????'right'????
// 'inside'|'left'|'right'|'top'|'bottom'
// textStyle: null // ?????????????TEXTSTYLE
// }
// },
itemStyle: {
normal: {
opacity: 0.8
// color: ??
}
}
}
});
});
|