PictorialBarSeries.js 3.4 KB

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