EffectScatterSeries.js 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. var createListFromArray = require("../helper/createListFromArray");
  20. var SeriesModel = require("../../model/Series");
  21. /*
  22. * Licensed to the Apache Software Foundation (ASF) under one
  23. * or more contributor license agreements. See the NOTICE file
  24. * distributed with this work for additional information
  25. * regarding copyright ownership. The ASF licenses this file
  26. * to you under the Apache License, Version 2.0 (the
  27. * "License"); you may not use this file except in compliance
  28. * with the License. You may obtain a copy of the License at
  29. *
  30. * http://www.apache.org/licenses/LICENSE-2.0
  31. *
  32. * Unless required by applicable law or agreed to in writing,
  33. * software distributed under the License is distributed on an
  34. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  35. * KIND, either express or implied. See the License for the
  36. * specific language governing permissions and limitations
  37. * under the License.
  38. */
  39. var _default = SeriesModel.extend({
  40. type: 'series.effectScatter',
  41. dependencies: ['grid', 'polar'],
  42. getInitialData: function (option, ecModel) {
  43. return createListFromArray(this.getSource(), this, {
  44. useEncodeDefaulter: true
  45. });
  46. },
  47. brushSelector: 'point',
  48. defaultOption: {
  49. coordinateSystem: 'cartesian2d',
  50. zlevel: 0,
  51. z: 2,
  52. legendHoverLink: true,
  53. effectType: 'ripple',
  54. progressive: 0,
  55. // When to show the effect, option: 'render'|'emphasis'
  56. showEffectOn: 'render',
  57. // Ripple effect config
  58. rippleEffect: {
  59. period: 4,
  60. // Scale of ripple
  61. scale: 2.5,
  62. // Brush type can be fill or stroke
  63. brushType: 'fill'
  64. },
  65. // Cartesian coordinate system
  66. // xAxisIndex: 0,
  67. // yAxisIndex: 0,
  68. // Polar coordinate system
  69. // polarIndex: 0,
  70. // Geo coordinate system
  71. // geoIndex: 0,
  72. // symbol: null, // 图形类型
  73. symbolSize: 10 // 图形大小,半宽(半径)参数,当图形为方向或菱形则总宽度为symbolSize * 2
  74. // symbolRotate: null, // 图形旋转控制
  75. // large: false,
  76. // Available when large is true
  77. // largeThreshold: 2000,
  78. // itemStyle: {
  79. // opacity: 1
  80. // }
  81. }
  82. });
  83. module.exports = _default;