Skip to content

Instantly share code, notes, and snippets.

View TorsteinHonsi's full-sized avatar

Torstein Hønsi TorsteinHonsi

View GitHub Profile
diff --git a/js/parts-more/Pane.js b/js/parts-more/Pane.js
index 76638b1..44e155d 100644
--- a/js/parts-more/Pane.js
+++ b/js/parts-more/Pane.js
@@ -22,6 +22,8 @@ function Pane(options, chart, firstAxis) {
// Extend the Pane prototype
extend(Pane.prototype, {
+ coll: 'pane', // Member of chart.pane
+
diff --git a/js/modules/boost.src.js b/js/modules/boost.src.js
index 5547019..98c62f4 100644
--- a/js/modules/boost.src.js
+++ b/js/modules/boost.src.js
@@ -209,27 +209,29 @@ H.extend(Series.prototype, {
var chart = this.chart,
width = chart.plotWidth,
height = chart.plotHeight,
- ctx = this.ctx,
+ ctx = chart.ctx,
diff --git a/js/parts/Scroller.js b/js/parts/Scroller.js
index c96ae0a..4a3515f 100644
--- a/js/parts/Scroller.js
+++ b/js/parts/Scroller.js
@@ -867,13 +867,20 @@ Navigator.prototype = {
baseDataMin = baseExtremes.dataMin,
baseDataMax = baseExtremes.dataMax,
range = baseMax - baseMin,
- stickToMin = this.stickToMin,
- stickToMax = this.stickToMax,
// ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v5.0-dev (2016-03-21)
*
* (c) 2009-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// This gist is deprecated, doesn't work with newer versions of JSDom.
// Instead, use https://www.npmjs.com/package/highcharts-jsdom
diff --git a/js/parts/Axis.js b/js/parts/Axis.js
index 0b5a1b5..d933a04 100644
--- a/js/parts/Axis.js
+++ b/js/parts/Axis.js
@@ -134,7 +134,7 @@ Axis.prototype = {
//textAlign: dynamic,
//rotation: 0,
formatter: function () {
- return Highcharts.numberFormat(this.total, -1);
+ return this.nullCount ? '' : Highcharts.numberFormat(this.total, -1);
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
<title>Highcharts test tool - jsFiddle demo</title>
<script type='text/javascript' src='http://code.jquery.com/jquery-compat-git.js'></script>
Year Annual mean 5 year mean
1880 -0,31
1881 -0,22
1882 -0,28 -0,29
1883 -0,3 -0,29
1884 -0,33 -0,3
1885 -0,32 -0,32
1886 -0,29 -0,32
1887 -0,35 -0,28
1888 -0,28 -0,3
/**
* @license Highcharts Merge
*
* (c) 2009-2014 Torstein Honsi
*
* License: MIT
*
* This function is part of the Highcharts core, and shared under an MIT license on
* user request.
*/
/**
* @license @product.name@ JS [email protected]@ (@product.date@)
* Exporting module
*
* (c) 2010-2013 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options: