PageSourceSearch

https://www.destination-mayenne.com/app/dist/tourisme-mayenne/addo…/code/es-modules/Series/Bar/BarSeries.js

js destination-mayenne.com collected 2026-10-09 05:01:41 UTC 3,823 bytes, 144 lines download raw bytes

1/* *
2 *
3 *  (c) 2010-2024 Torstein Honsi
4 *
5 *  License: www.highcharts.com/license
6 *
7 *  !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
8 *
9 * */
10'use strict';
11import ColumnSeries from '../Column/ColumnSeries.js';
12import SeriesRegistry from '../../Core/Series/SeriesRegistry.js';
13import U from '../../Core/Utilities.js';
14const { extend, merge } = U;
15/* *
16 *
17 *  Class
18 *
19 * */
20/**
21 * Bar series type.
22 *
23 * @private
24 * @class
25 * @name Highcharts.seriesTypes.bar
26 *
27 * @augments Highcharts.Series
28 */
29class BarSeries extends ColumnSeries {
30}
31/* *
32 *
33 *  Static Properties
34 *
35 * */
36/**
37 * A bar series is a special type of column series where the columns are
38 * horizontal.
39 *
40 * @sample highcharts/demo/bar-chart/
41 *         Bar chart
42 *
43 * @extends      plotOptions.column
44 * @product      highcharts
45 * @optionparent plotOptions.bar
46 */
47BarSeries.defaultOptions = merge(ColumnSeries.defaultOptions, {
48// Nothing here yet
49});
50extend(BarSeries.prototype, {
51    inverted: true
52});
53SeriesRegistry.registerSeriesType('bar', BarSeries);
54/* *
55 *
56 *  Default Export
57 *
58 * */
59export default BarSeries;
60/* *
61 *
62 *  API Options
63 *
64 * */
65/**
66 * A `bar` series. If the [type](#series.bar.type) option is not specified,
67 * it is inherited from [chart.type](#chart.type).
68 *
69 * @extends   series,plotOptions.bar
70 * @excluding connectNulls, dashStyle, dataParser, dataURL, gapSize, gapUnit,
71 *            linecap, lineWidth, marker, connectEnds, step
72 * @product   highcharts
73 * @apioption series.bar
74 */
75/**
76 * An array of data points for the series. For the `bar` series type,
77 * points can be given in the following ways:
78 *
79 * 1. An array of numerical values. In this case, the numerical values will be
80 *    interpreted as `y` options. The `x` values will be automatically
81 *    calculated, either starting at 0 and incremented by 1, or from
82 *    `pointStart` and `pointInterval` given in the series options. If the axis
83 *    has categories, these will be used. Example:
84 *    ```js
85 *    data: [0, 5, 3, 5]
86 *    ```
87 *
88 * 2. An array of arrays with 2 values. In this case, the values correspond to
89 *    `x,y`. If the first value is a string, it is applied as the name of the
90 *    point, and the `x` value is inferred.
91 *    ```js
92 *    data: [
93 *        [0, 5],
94 *        [1, 10],
95 *        [2, 3]
96 *    ]
97 *    ```
98 *
99 * 3. An array of objects with named values. The following snippet shows only a
100 *    few settings, see the complete options set below. If the total number of
101 *    data points exceeds the series'
102 *    [turboThreshold](#series.bar.turboThreshold), this option is not
103 *    available.
104 *    ```js
105 *    data: [{
106 *        x: 1,
107 *        y: 1,
108 *        name: "Point2",
109 *        color: "#00FF00"
110 *    }, {
111 *        x: 1,
112 *        y: 10,
113 *        name: "Point1",
114 *        color: "#FF00FF"
115 *    }]
116 *    ```
117 *
118 * @sample {highcharts} highcharts/chart/reflow-true/
119 *         Numerical values
120 * @sample {highcharts} highcharts/series/data-array-of-arrays/
121 *         Arrays of numeric x and y
122 * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/
123 *         Arrays of datetime x and y
124 * @sample {highcharts} highcharts/series/data-array-of-name-value/
125 *         Arrays of point.name and y
126 * @sample {highcharts} highcharts/series/data-array-of-objects/
127 *         Config objects
128 *
129 * @type      {Array<number|Array<(number|string),(number|null)>|null|*>}
130 * @extends   series.column.data
131 * @product   highcharts
132 * @apioption series.bar.data
133 */
134/**
135 * @excluding halo,lineWidth,lineWidthPlus,marker
136 * @product   highcharts highstock
137 * @apioption series.bar.states.hover
138 */
139/**
140 * @excluding halo,lineWidth,lineWidthPlus,marker
141 * @product   highcharts highstock
142 * @apioption series.bar.states.select
143 */
144''; // Gets doclets above into transpiled

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.