PictorialBarSeries.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. /**
  20. * AUTO-GENERATED FILE. DO NOT MODIFY.
  21. */
  22. /*
  23. * Licensed to the Apache Software Foundation (ASF) under one
  24. * or more contributor license agreements. See the NOTICE file
  25. * distributed with this work for additional information
  26. * regarding copyright ownership. The ASF licenses this file
  27. * to you under the Apache License, Version 2.0 (the
  28. * "License"); you may not use this file except in compliance
  29. * with the License. You may obtain a copy of the License at
  30. *
  31. * http://www.apache.org/licenses/LICENSE-2.0
  32. *
  33. * Unless required by applicable law or agreed to in writing,
  34. * software distributed under the License is distributed on an
  35. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  36. * KIND, either express or implied. See the License for the
  37. * specific language governing permissions and limitations
  38. * under the License.
  39. */
  40. import { __extends } from "tslib";
  41. import BaseBarSeriesModel from './BaseBarSeries.js';
  42. import { inheritDefaultOption } from '../../util/component.js';
  43. var PictorialBarSeriesModel =
  44. /** @class */
  45. function (_super) {
  46. __extends(PictorialBarSeriesModel, _super);
  47. function PictorialBarSeriesModel() {
  48. var _this = _super !== null && _super.apply(this, arguments) || this;
  49. _this.type = PictorialBarSeriesModel.type;
  50. _this.hasSymbolVisual = true;
  51. _this.defaultSymbol = 'roundRect';
  52. return _this;
  53. }
  54. PictorialBarSeriesModel.prototype.getInitialData = function (option) {
  55. // Disable stack.
  56. option.stack = null;
  57. return _super.prototype.getInitialData.apply(this, arguments);
  58. };
  59. PictorialBarSeriesModel.type = 'series.pictorialBar';
  60. PictorialBarSeriesModel.dependencies = ['grid'];
  61. PictorialBarSeriesModel.defaultOption = inheritDefaultOption(BaseBarSeriesModel.defaultOption, {
  62. symbol: 'circle',
  63. symbolSize: null,
  64. symbolRotate: null,
  65. symbolPosition: null,
  66. symbolOffset: null,
  67. symbolMargin: null,
  68. symbolRepeat: false,
  69. symbolRepeatDirection: 'end',
  70. symbolClip: false,
  71. symbolBoundingData: null,
  72. symbolPatternSize: 400,
  73. barGap: '-100%',
  74. // z can be set in data item, which is z2 actually.
  75. // Disable progressive
  76. progressive: 0,
  77. emphasis: {
  78. // By default pictorialBar do not hover scale. Hover scale is not suitable
  79. // for the case that both has foreground and background.
  80. scale: false
  81. },
  82. select: {
  83. itemStyle: {
  84. borderColor: '#212121'
  85. }
  86. }
  87. });
  88. return PictorialBarSeriesModel;
  89. }(BaseBarSeriesModel);
  90. export default PictorialBarSeriesModel;