Skip to content

Instantly share code, notes, and snippets.

View TorsteinHonsi's full-sized avatar

Torstein Hønsi TorsteinHonsi

View GitHub Profile
/**
* Experimental Draggable points plugin
* Revised 2012-02-08
*
* On Saving this jsbin, remember to update http://jsfiddle.net/highcharts/AyUbx/
*/
(function(Highcharts) {
var addEvent = Highcharts.addEvent,
each = Highcharts.each;
Highcharts.setOptions({
colors: ['#0187DD', '#0F283E', '#77C100', '#FF6400', '#CF0000', '#502864', '#D72870'],
plotOptions: {
series: {
shadow: false
}
},
tooltip: {
borderRadius: 2,
borderColor: '#AAA',
@TorsteinHonsi
TorsteinHonsi / gist:7333360
Last active December 27, 2015 13:29
Highcharts new colors
Highcharts.setOptions({
colors: ["#8085e8", "#252530", "#90ee7e", "#8d4654", "#2b908f",
"#76758e", "#f6a45c", "#7eb5ee", '#f45b5b', '#9ff0cf']
});
diff --git a/js/modules/exporting.src.js b/js/modules/exporting.src.js
index 398049b..1b37e48 100644
--- a/js/modules/exporting.src.js
+++ b/js/modules/exporting.src.js
@@ -204,6 +204,7 @@ extend(Chart.prototype, {
sourceHeight,
cssWidth,
cssHeight,
+ html,
options = merge(chart.options, additionalOptions); // copy the options and add extra options
/**
* @license @product.name@ JS v@product.version@ (@product.date@)
* Exporting module
*
* (c) 2010-2013 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/**
* @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.
*/
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
<!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>
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);
// This gist is deprecated, doesn't work with newer versions of JSDom.
// Instead, use https://www.npmjs.com/package/highcharts-jsdom