UNPKG

highcharts

Version:
57 lines (56 loc) 1.18 kB
/* * * * (c) 2010-2026 Highsoft AS * Author: Torstein Hønsi * * A commercial license may be required depending on use. * See www.highcharts.com/license * * * */ 'use strict'; import SeriesRegistry from '../../Core/Series/SeriesRegistry.js'; import { isNumber } from '../../Shared/Utilities.js'; const { column: { prototype: { pointClass: ColumnPoint } } } = SeriesRegistry.seriesTypes; /* * * * Class * * */ class FlagsPoint extends ColumnPoint { constructor() { /* * * * Properties * * */ super(...arguments); this.ttBelow = false; } /* * * * Functions * * */ /** * @private */ isValid() { // #9233 - Prevent from treating flags as null points (even if // they have no y values defined). return isNumber(this.y) || typeof this.y === 'undefined'; } /** * @private */ hasNewShapeType() { const shape = this.options.shape || this.series.options.shape; return this.graphic && shape && shape !== this.graphic.symbolKey; } } /* * * * Default Export * * */ export default FlagsPoint;