PictorialBarSeries.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. var BaseBarSeries = require("./BaseBarSeries");
  2. var PictorialBarSeries = BaseBarSeries.extend({
  3. type: 'series.pictorialBar',
  4. dependencies: ['grid'],
  5. defaultOption: {
  6. symbol: 'circle',
  7. // Customized bar shape
  8. symbolSize: null,
  9. // Can be ['100%', '100%'], null means auto.
  10. symbolRotate: null,
  11. symbolPosition: null,
  12. // 'start' or 'end' or 'center', null means auto.
  13. symbolOffset: null,
  14. symbolMargin: null,
  15. // start margin and end margin. Can be a number or a percent string.
  16. // Auto margin by defualt.
  17. symbolRepeat: false,
  18. // false/null/undefined, means no repeat.
  19. // Can be true, means auto calculate repeat times and cut by data.
  20. // Can be a number, specifies repeat times, and do not cut by data.
  21. // Can be 'fixed', means auto calculate repeat times but do not cut by data.
  22. symbolRepeatDirection: 'end',
  23. // 'end' means from 'start' to 'end'.
  24. symbolClip: false,
  25. symbolBoundingData: null,
  26. // Can be 60 or -40 or [-40, 60]
  27. symbolPatternSize: 400,
  28. // 400 * 400 px
  29. barGap: '-100%',
  30. // In most case, overlap is needed.
  31. // z can be set in data item, which is z2 actually.
  32. // Disable progressive
  33. progressive: 0,
  34. hoverAnimation: false // Open only when needed.
  35. },
  36. getInitialData: function (option) {
  37. // Disable stack.
  38. option.stack = null;
  39. return PictorialBarSeries.superApply(this, 'getInitialData', arguments);
  40. }
  41. });
  42. var _default = PictorialBarSeries;
  43. module.exports = _default;