Sha256: 157ec19c0c988604d1c0d6d6802b4df76bda49687d1f72c7b069a61cec3db69c
Contents?: true
Size: 1.91 KB
Versions: 1
Compression:
Stored size: 1.91 KB
Contents
'use strict'; import H from '../../parts/Globals.js'; import '../../parts/Utilities.js'; var Annotation = H.Annotation, CrookedLine = Annotation.types.crookedLine; /** * @class * @extends Annotation.CrookedLine * @memberOf Annotation */ function ElliottWave() { CrookedLine.apply(this, arguments); } H.extendAnnotation(ElliottWave, CrookedLine, /** Annotation.CrookedLine# */ { addLabels: function () { this.getPointsOptions().forEach(function (point, i) { var label = this.initLabel(H.merge( point.label, { text: this.options.typeOptions.labels[i], point: function (target) { return target.annotation.points[i]; } } ), false); point.label = label.options; }, this); } }, /** * An elliott wave annotation. * * @extends annotations.crookedLine * @sample highcharts/annotations-advanced/elliott-wave/ * Elliott wave * @product highstock * @optionparent annotations.elliottWave */ { typeOptions: { /** * @type {Object} * @extends annotations.crookedLine.labelOptions * @apioption annotations.crookedLine.typeOptions.points.label */ /** * @ignore */ labels: ['(0)', '(A)', '(B)', '(C)', '(D)', '(E)'], line: { strokeWidth: 1 } }, labelOptions: { align: 'center', allowOverlap: true, crop: true, overflow: 'none', type: 'rect', backgroundColor: 'none', borderWidth: 0, y: -5 } }); Annotation.types.elliottWave = ElliottWave; export default ElliottWave;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aw-highstock_rails-7.0.3 | vendor/assets/javascripts/highstock/es-modules/annotations/types/ElliottWave.js |