"use strict";var __extends=this&&this.__extends||function(){var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(r,t)};return function(r,t){function o(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}();import BoxPlotSeries from"../BoxPlot/BoxPlotSeries.js";import ColumnSeries from"../Column/ColumnSeries.js";import palette from"../../Core/Color/Palette.js";import SeriesRegistry from"../../Core/Series/SeriesRegistry.js";var AreaRangeSeries=SeriesRegistry.seriesTypes.arearange;import U from"../../Core/Utilities.js";var merge=U.merge,extend=U.extend,ErrorBarSeries=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.data=void 0,r.options=void 0,r.points=void 0,r}return __extends(r,e),r.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||ColumnSeries.prototype.getColumnMetrics.call(this)},r.prototype.drawDataLabels=function(){var e=this.pointValKey;AreaRangeSeries&&(AreaRangeSeries.prototype.drawDataLabels.call(this),this.data.forEach(function(r){r.y=r[e]}))},r.prototype.toYData=function(e){return[e.low,e.high]},r.defaultOptions=merge(BoxPlotSeries.defaultOptions,{color:palette.neutralColor100,grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'● {series.name}: {point.low} - {point.high}
'},whiskerWidth:null}),r}(BoxPlotSeries);extend(ErrorBarSeries.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),SeriesRegistry.registerSeriesType("errorbar",ErrorBarSeries);export default ErrorBarSeries;