ScatterSeries.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. var createListFromArray = require("../helper/createListFromArray");
  2. var SeriesModel = require("../../model/Series");
  3. var _default = SeriesModel.extend({
  4. type: 'series.scatter',
  5. dependencies: ['grid', 'polar', 'geo', 'singleAxis', 'calendar'],
  6. getInitialData: function (option, ecModel) {
  7. return createListFromArray(option.data, this, ecModel);
  8. },
  9. brushSelector: 'point',
  10. defaultOption: {
  11. coordinateSystem: 'cartesian2d',
  12. zlevel: 0,
  13. z: 2,
  14. legendHoverLink: true,
  15. hoverAnimation: true,
  16. // Cartesian coordinate system
  17. // xAxisIndex: 0,
  18. // yAxisIndex: 0,
  19. // Polar coordinate system
  20. // polarIndex: 0,
  21. // Geo coordinate system
  22. // geoIndex: 0,
  23. // symbol: null, // 图形类型
  24. symbolSize: 10,
  25. // 图形大小,半宽(半径)参数,当图形为方向或菱形则总宽度为symbolSize * 2
  26. // symbolRotate: null, // 图形旋转控制
  27. large: false,
  28. // Available when large is true
  29. largeThreshold: 2000,
  30. // cursor: null,
  31. // label: {
  32. // normal: {
  33. // show: false
  34. // distance: 5,
  35. // formatter: 标签文本格式器,同Tooltip.formatter,不支持异步回调
  36. // position: 默认自适应,水平布局为'top',垂直布局为'right',可选为
  37. // 'inside'|'left'|'right'|'top'|'bottom'
  38. // 默认使用全局文本样式,详见TEXTSTYLE
  39. // }
  40. // },
  41. itemStyle: {
  42. normal: {
  43. opacity: 0.8 // color: 各异
  44. }
  45. }
  46. }
  47. });
  48. module.exports = _default;