Skip to content

Commit

Permalink
v6.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed Sep 3, 2018
1 parent e81c3e8 commit c1671b8
Show file tree
Hide file tree
Showing 644 changed files with 70,519 additions and 32,877 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "highcharts",
"version": "6.1.1",
"version": "6.1.2",
"main": "highcharts.js",
"license": "https://www.highcharts.com/license"
}
2 changes: 1 addition & 1 deletion es-modules/indicators/accumulation-distribution.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ seriesType('ad', 'sma',
* Accumulation Distribution (AD). This series requires `linkedTo` option to
* be set.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/accumulation-distribution
* Accumulation/Distribution indicator
Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/atr.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ seriesType('atr', 'sma',
* Average true range indicator (ATR). This series requires `linkedTo`
* option to be set.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/atr ATR indicator
* @since 6.0.0
Expand Down
4 changes: 2 additions & 2 deletions es-modules/indicators/bollinger-bands.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ H.seriesType('bb', 'sma',
* Bollinger bands (BB). This series requires the `linkedTo` option to be
* set and should be loaded after the `stock/indicators/indicators.js` file.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/bollinger-bands
* Bollinger bands
Expand Down Expand Up @@ -88,7 +88,7 @@ H.seriesType('bb', 'sma',
/**
* Top line options.
*
* @extends {plotOptions.bb.bottomLine}
* @extends plotOptions.bb.bottomLine
* @since 6.0.0
* @product highstock
*/
Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/cci.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ seriesType('cci', 'sma',
* Commodity Channel Index (CCI). This series requires `linkedTo` option to
* be set.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/cci CCI indicator
* @since 6.0.0
Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/cmf.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ H.seriesType('cmf', 'sma',
* Chaikin Money Flow indicator (cmf).
*
* @type {Object}
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/cmf/
* Chaikin Money Flow indicator
Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/ema.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ seriesType('ema', 'sma',
* Exponential moving average indicator (EMA). This series requires the
* `linkedTo` option to be set.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/ema
* Exponential moving average indicator
Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/ichimoku-kinko-hyo.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ seriesType('ikh', 'sma',
* Ichimoku Kinko Hyo (IKH). This series requires `linkedTo` option to be
* set.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/ichimoku-kinko-hyo
* Ichimoku Kinko Hyo indicator
Expand Down
42 changes: 28 additions & 14 deletions es-modules/indicators/indicators.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ seriesType('sma', 'line',
* Simple moving average indicator (SMA). This series requires `linkedTo`
* option to be set.
*
* @extends {plotOptions.line}
* @extends plotOptions.line
* @product highstock
* @sample {highstock} stock/indicators/sma Simple moving average indicator
* @since 6.0.0
Expand Down Expand Up @@ -107,21 +107,35 @@ seriesType('sma', 'line',
indicator.dataEventsToUnbind = [];

function recalculateValues() {
var processedData = indicator.getValues(
indicator.linkedParent,
indicator.options.params
) || {
values: [],
xData: [],
yData: []
};
var oldDataLength = (indicator.xData || []).length,
processedData = indicator.getValues(
indicator.linkedParent,
indicator.options.params
) || {
values: [],
xData: [],
yData: []
};

indicator.xData = processedData.xData;
indicator.yData = processedData.yData;
indicator.options.data = processedData.values;
// If number of points is the same, we need to update points to
// reflect changes in all, x and y's, values. However, do it
// only for non-grouped data - grouping does it for us (#8572)
if (
oldDataLength &&
oldDataLength === processedData.xData.length &&
!indicator.hasGroupedData &&
indicator.visible &&
indicator.points
) {
indicator.updateData(processedData.values);
} else {
indicator.xData = processedData.xData;
indicator.yData = processedData.yData;
indicator.options.data = processedData.values;
}

// Removal of processedXData property is required because on
// first translate processedXData array is empty
// Removal of processedXData property is required because on
// first translate processedXData array is empty
if (indicator.bindTo.series === false) {
delete indicator.processedXData;

Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/macd.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ seriesType('macd', 'sma',
* Moving Average Convergence Divergence (MACD). This series requires
* `linkedTo` option to be set.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/macd MACD indicator
* @since 6.0.0
Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/mfi.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ H.seriesType('mfi', 'sma',
* Money Flow Index. This series requires `linkedTo` option to be set and
* should be loaded after the `stock/indicators/indicators.js` file.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/mfi
* Money Flow Index Indicator
Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/momentum.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ seriesType('momentum', 'sma',
/**
* Momentum. This series requires `linkedTo` option to be set.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/momentum Momentum indicator
* @since 6.0.0
Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/pivot-points.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ H.seriesType('pivotpoints', 'sma',
* Pivot points indicator. This series requires the `linkedTo` option to be
* set and should be loaded after `stock/indicators/indicators.js` file.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/pivot-points
* Pivot points
Expand Down
4 changes: 2 additions & 2 deletions es-modules/indicators/price-envelopes.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ H.seriesType('priceenvelopes', 'sma',
* This series requires the `linkedTo` option to be set and should be loaded
* after the `stock/indicators/indicators.js` file.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/price-envelopes
* Price envelopes
Expand Down Expand Up @@ -80,7 +80,7 @@ H.seriesType('priceenvelopes', 'sma',
/**
* Top line options.
*
* @extends {plotOptions.priceenvelopes.bottomLine}
* @extends plotOptions.priceenvelopes.bottomLine
* @since 6.0.0
* @product highstock
*/
Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/psar.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ H.seriesType('psar', 'sma',
* option to be set and should be loaded
* after `stock/indicators/indicators.js` file.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/psar
* Parabolic SAR Indicator
Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/roc.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ seriesType('roc', 'sma',
*
* This series requires `linkedTo` option to be set.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/roc
* Rate of change indicator
Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/rsi.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ H.seriesType('rsi', 'sma',
* requires the `linkedTo` option to be set and should be loaded after
* the `stock/indicators/indicators.js` file.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/rsi
* RSI indicator
Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/stochastic.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ H.seriesType('stochastic', 'sma',
* Stochastic oscillator. This series requires the `linkedTo` option to be
* set and should be loaded after the `stock/indicators/indicators.js` file.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/stochastic
* Stochastic oscillator
Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/volume-by-price.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ seriesType('vbp', 'sma',
*
* This series requires `linkedTo` option to be set.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/volume-by-price
* Volume By Price indicator
Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/vwap.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ seriesType('vwap', 'sma',
*
* This series requires `linkedTo` option to be set.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/vwap
* Volume Weighted Average Price indicator
Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/wma.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ seriesType('wma', 'sma',
* Weighted moving average indicator (WMA). This series requires `linkedTo`
* option to be set.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/wma
* Weighted moving average indicator
Expand Down
2 changes: 1 addition & 1 deletion es-modules/indicators/zigzag.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ seriesType('zigzag', 'sma',
*
* This series requires `linkedTo` option to be set.
*
* @extends {plotOptions.sma}
* @extends plotOptions.sma
* @product highstock
* @sample {highstock} stock/indicators/zigzag
* Zig Zag indicator
Expand Down
2 changes: 1 addition & 1 deletion es-modules/modules/annotations.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ Annotation.prototype = /** @lends Highcharts.Annotation# */ {
},

/**
* Whether to [use HTML](http://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)
* Whether to [use HTML](https://www.highcharts.com/docs/chart-concepts/labels-and-string-formatting#html)
* to render the annotation's label.
*
* @type {Boolean}
Expand Down
27 changes: 19 additions & 8 deletions es-modules/modules/boost-canvas.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ H.initCanvasBoost = function () {
maxVal,
minI,
maxI,
kdIndex,
index,
sdata = isStacked ? series.data : (xData || rawData),
fillColor = series.fillOpacity ?
new Color(series.color).setOpacity(
Expand Down Expand Up @@ -327,22 +327,33 @@ H.initCanvasBoost = function () {
};
},

compareX = options.findNearestPointBy === 'x',

xDataFull = (
this.xData ||
this.options.xData ||
this.processedXData ||
false
),


addKDPoint = function (clientX, plotY, i) {
// Avoid more string concatination than required
kdIndex = clientX + ',' + plotY;
// Shaves off about 60ms compared to repeated concatenation
index = compareX ? clientX : clientX + ',' + plotY;

// The k-d tree requires series points. Reduce the amount of
// points, since the time to build the tree increases
// exponentially.
if (enableMouseTracking && !pointTaken[kdIndex]) {
pointTaken[kdIndex] = true;
// The k-d tree requires series points.
// Reduce the amount of points, since the time to build the
// tree increases exponentially.
if (enableMouseTracking && !pointTaken[index]) {
pointTaken[index] = true;

if (chart.inverted) {
clientX = xAxis.len - clientX;
plotY = yAxis.len - plotY;
}

points.push({
x: xDataFull ? xDataFull[cropStart + i] : false,
clientX: clientX,
plotX: clientX,
plotY: plotY,
Expand Down
Loading

0 comments on commit c1671b8

Please sign in to comment.