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'; 11/* * 12 * 13 * API Options 14 * 15 * */ 16/** 17 * The area series type. 18 * 19 * @sample {highcharts} highcharts/demo/area-chart/ 20 * Area chart 21 * @sample {highstock} stock/demo/area/ 22 * Area chart 23 * 24 * @extends plotOptions.line 25 * @excluding useOhlcData 26 * @product highcharts highstock 27 * @optionparent plotOptions.area 28 */ 29const AreaSeriesDefaults = { 30 /** 31 * @see [fillColor](#plotOptions.area.fillColor) 32 * @see [fillOpacity](#plotOptions.area.fillOpacity) 33 * 34 * @apioption plotOptions.area.color 35 */ 36 /** 37 * Fill color or gradient for the area. When `undefined`, the series' 38 * `color` is used with the series' `fillOpacity`. 39 * 40 * In styled mode, the fill color can be set with the `.highcharts-area` 41 * class name. 42 * 43 * @see [color](#plotOptions.area.color) 44 * @see [fillOpacity](#plotOptions.area.fillOpacity) 45 * 46 * @sample {highcharts} highcharts/plotoptions/area-fillcolor-default/ 47 * Undefined by default 48 * @sample {highcharts} highcharts/plotoptions/area-fillcolor-gradient/ 49 * Gradient 50 * 51 * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject} 52 * @product highcharts highstock 53 * @apioption plotOptions.area.fillColor 54 */ 55 /** 56 * Fill opacity for the area. When you set an explicit `fillColor`, 57 * the `fillOpacity` is not applied. Instead, you should define the 58 * opacity in the `fillColor` with an rgba color definition. The 59 * `fillOpacity` setting, also the default setting, overrides the alpha 60 * component of the `color` setting. 61 * 62 * In styled mode, the fill opacity can be set with the 63 * `.highcharts-area` class name. 64 * 65 * @see [color](#plotOptions.area.color) 66 * @see [fillColor](#plotOptions.area.fillColor) 67 * 68 * @sample {highcharts} highcharts/plotoptions/area-fillopacity/ 69 * Automatic fill color and fill opacity of 0.1 70 * 71 * @type {number} 72 * @default {highcharts} 0.75 73 * @default {highstock} 0.75 74 * @product highcharts highstock 75 * @apioption plotOptions.area.fillOpacity 76 */ 77 /** 78 * A separate color for the graph line. By default the line takes the 79 * `color` of the series, but the lineColor setting allows setting a 80 * separate color for the line without altering the `fillColor`. 81 * 82 * In styled mode, the line stroke can be set with the 83 * `.highcharts-graph` class name. 84 * 85 * @sample {highcharts} highcharts/plotoptions/area-linecolor/ 86 * Dark gray line 87 * 88 * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject} 89 * @product highcharts highstock 90 * @apioption plotOptions.area.lineColor 91 */ 92 /** 93 * A separate color for the negative part of the area. Note that `zones` 94 * takes precedence over the negative fill color. 95 * 96 * In styled mode, a negative color is set with the 97 * `.highcharts-negative` class name. 98 * 99 * @see [negativeColor](#plotOptions.area.negativeColor) 100 * 101 * @sample {highcharts} highcharts/css/series-negative-color/ 102 * Negative color in styled mode 103 * 104 * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject} 105 * @since 3.0 106 * @product highcharts 107 * @apioption plotOptions.area.negativeFillColor 108 */ 109 /** 110 * Whether the whole area or just the line should respond to mouseover 111 * tooltips and other mouse or touch events. 112 * 113 * @sample {highcharts|highstock} highcharts/plotoptions/area-trackbyarea/ 114 * Display the tooltip when the area is hovered 115 * 116 * @type {boolean} 117 * @default false 118 * @since 1.1.6 119 * @product highcharts highstock 120 * @apioption plotOptions.area.trackByArea 121 */ 122 /** 123 * The Y axis value to serve as the base for the area, for 124 * distinguishing between values above and below a threshold. The area 125 * between the graph and the threshold is filled. 126 * 127 * * If a number is given, the Y axis will scale to the threshold. 128 * * If `null`, the scaling behaves like a line series with fill between 129 * the graph and the Y axis minimum. 130 * * If `Infinity` or `-Infinity`, the area between the graph and the 131 * corresponding Y axis extreme is filled (since v6.1.0). 132 * 133 * @sample {highcharts} highcharts/plotoptions/area-threshold/ 134 * A threshold of 100 135 * @sample {highcharts} highcharts/plotoptions/area-threshold-infinity/ 136 * A threshold of Infinity 137 * 138 * @type {number|null} 139 * @since 2.0 140 * @product highcharts highstock 141 */ 142 threshold: 0, 143 legendSymbol: 'areaMarker' 144}; 145/** 146 * A `area` series. If the [type](#series.area.type) option is not 147 * specified, it is inherited from [chart.type](#chart.type). 148 * 149 * @extends series,plotOptions.area 150 * @excluding dataParser, dataURL, useOhlcData 151 * @product highcharts highstock 152 * @apioption series.area 153 */ 154/** 155 * @see [fillColor](#series.area.fillColor) 156 * @see [fillOpacity](#series.area.fillOpacity) 157 * 158 * @apioption series.area.color 159 */ 160/** 161 * An array of data points for the series. For the `area` series type, 162 * points can be given in the following ways: 163 * 164 * 1. An array of numerical values. In this case, the numerical values will be 165 * interpreted as `y` options. The `x` values will be automatically 166 * calculated, either starting at 0 and incremented by 1, or from 167 * `pointStart` * and `pointInterval` given in the series options. If the 168 * axis has categories, these will be used. Example: 169 * ```js 170 * data: [0, 5, 3, 5] 171 * ``` 172 * 173 * 2. An array of arrays with 2 values. In this case, the values correspond to 174 * `x,y`. If the first value is a string, it is applied as the name of the 175 * point, and the `x` value is inferred. 176 * ```js 177 * data: [ 178 * [0, 9], 179 * [1, 7], 180 * [2, 6] 181 * ] 182 * ``` 183 * 184 * 3. An array of objects with named values. The following snippet shows only a 185 * few settings, see the complete options set below. If the total number of 186 * data points exceeds the series' 187 * [turboThreshold](#series.area.turboThreshold), this option is not 188 * available. 189 * ```js 190 * data: [{ 191 * x: 1, 192 * y: 9, 193 * name: "Point2", 194 * color: "#00FF00" 195 * }, {
196 * x: 1, 197 * y: 6, 198 * name: "Point1", 199 * color: "#FF00FF" 200 * }] 201 * ``` 202 * 203 * @sample {highcharts} highcharts/chart/reflow-true/ 204 * Numerical values 205 * @sample {highcharts} highcharts/series/data-array-of-arrays/ 206 * Arrays of numeric x and y 207 * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/ 208 * Arrays of datetime x and y 209 * @sample {highcharts} highcharts/series/data-array-of-name-value/ 210 * Arrays of point.name and y 211 * @sample {highcharts} highcharts/series/data-array-of-objects/ 212 * Config objects 213 * 214 * @type {Array<number|Array<(number|string),(number|null)>|null|*>} 215 * @extends series.line.data 216 * @product highcharts highstock 217 * @apioption series.area.data 218 */ 219/** 220 * @see [color](#series.area.color) 221 * @see [fillOpacity](#series.area.fillOpacity) 222 * 223 * @apioption series.area.fillColor 224 */ 225/** 226 * @see [color](#series.area.color) 227 * @see [fillColor](#series.area.fillColor) 228 * 229 * @default {highcharts} 0.75 230 * @default {highstock} 0.75 231 * @apioption series.area.fillOpacity 232 */ 233''; // Adds doclets above to transpiled 234/* * 235 * 236 * Default Export 237 * 238 * */ 239export default AreaSeriesDefaults;
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.