LineSeries.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. var _config = require("../../config");
  2. var __DEV__ = _config.__DEV__;
  3. var createListFromArray = require("../helper/createListFromArray");
  4. var SeriesModel = require("../../model/Series");
  5. var _default = SeriesModel.extend({
  6. type: 'series.line',
  7. dependencies: ['grid', 'polar'],
  8. getInitialData: function (option, ecModel) {
  9. return createListFromArray(option.data, this, ecModel);
  10. },
  11. defaultOption: {
  12. zlevel: 0,
  13. // 一级层叠
  14. z: 2,
  15. // 二级层叠
  16. coordinateSystem: 'cartesian2d',
  17. legendHoverLink: true,
  18. hoverAnimation: true,
  19. // stack: null
  20. // xAxisIndex: 0,
  21. // yAxisIndex: 0,
  22. // polarIndex: 0,
  23. // If clip the overflow value
  24. clipOverflow: true,
  25. // cursor: null,
  26. label: {
  27. normal: {
  28. position: 'top'
  29. }
  30. },
  31. // itemStyle: {
  32. // normal: {},
  33. // emphasis: {}
  34. // },
  35. lineStyle: {
  36. normal: {
  37. width: 2,
  38. type: 'solid'
  39. }
  40. },
  41. // areaStyle: {},
  42. // false, 'start', 'end', 'middle'
  43. step: false,
  44. // Disabled if step is true
  45. smooth: false,
  46. smoothMonotone: null,
  47. // 拐点图形类型
  48. symbol: 'emptyCircle',
  49. // 拐点图形大小
  50. symbolSize: 4,
  51. // 拐点图形旋转控制
  52. symbolRotate: null,
  53. // 是否显示 symbol, 只有在 tooltip hover 的时候显示
  54. showSymbol: true,
  55. // 标志图形默认只有主轴显示(随主轴标签间隔隐藏策略)
  56. showAllSymbol: false,
  57. // 是否连接断点
  58. connectNulls: false,
  59. // 数据过滤,'average', 'max', 'min', 'sum'
  60. sampling: 'none',
  61. animationEasing: 'linear',
  62. // Disable progressive
  63. progressive: 0,
  64. hoverLayerThreshold: Infinity
  65. }
  66. });
  67. module.exports = _default;