PictorialBarSeries.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. import tokens from '../../visual/tokens.js';
  44. var PictorialBarSeriesModel = /** @class */function (_super) {
  45. __extends(PictorialBarSeriesModel, _super);
  46. function PictorialBarSeriesModel() {
  47. var _this = _super !== null && _super.apply(this, arguments) || this;
  48. _this.type = PictorialBarSeriesModel.type;
  49. _this.hasSymbolVisual = true;
  50. _this.defaultSymbol = 'roundRect';
  51. return _this;
  52. }
  53. PictorialBarSeriesModel.prototype.getInitialData = function (option) {
  54. // Disable stack.
  55. option.stack = null;
  56. return _super.prototype.getInitialData.apply(this, arguments);
  57. };
  58. PictorialBarSeriesModel.type = 'series.pictorialBar';
  59. PictorialBarSeriesModel.dependencies = ['grid'];
  60. PictorialBarSeriesModel.defaultOption = inheritDefaultOption(BaseBarSeriesModel.defaultOption, {
  61. symbol: 'circle',
  62. symbolSize: null,
  63. symbolRotate: null,
  64. symbolPosition: null,
  65. symbolOffset: null,
  66. symbolMargin: null,
  67. symbolRepeat: false,
  68. symbolRepeatDirection: 'end',
  69. symbolClip: false,
  70. symbolBoundingData: null,
  71. symbolPatternSize: 400,
  72. barGap: '-100%',
  73. // Pictorial bar do not clip by default because in many cases
  74. // xAxis and yAxis are not displayed and it's expected not to clip
  75. clip: false,
  76. // z can be set in data item, which is z2 actually.
  77. // Disable progressive
  78. progressive: 0,
  79. emphasis: {
  80. // By default pictorialBar do not hover scale. Hover scale is not suitable
  81. // for the case that both has foreground and background.
  82. scale: false
  83. },
  84. select: {
  85. itemStyle: {
  86. borderColor: tokens.color.primary
  87. }
  88. }
  89. });
  90. return PictorialBarSeriesModel;
  91. }(BaseBarSeriesModel);
  92. export default PictorialBarSeriesModel;