diff --git a/Chart.Bands.js b/Chart.Bands.js index 4c5f462..291aba0 100644 --- a/Chart.Bands.js +++ b/Chart.Bands.js @@ -1,6 +1,6 @@ /*! * Chart.bands.js - * Version: v0.4.0-rc + * Version: v0.5.1-rc * * Copyright 2016 BBC * Released under the MIT license @@ -61,7 +61,6 @@ function addBandLine (ctx, scale, constraints, options) { lineDrawer(ctx, yPos + (bandLine.stroke / 4), lineStartPos, lineStopPos, bandLine.stroke, bandLine.colour, dashLength); if (bandLine.label) { - console.log('opts', options); addBandLineLabel(ctx, constraints, options.bandLine, dashLength, lineDrawer); } } diff --git a/Chart.Bands.min.js b/Chart.Bands.min.js index eb014df..edb5a50 100644 --- a/Chart.Bands.min.js +++ b/Chart.Bands.min.js @@ -1,9 +1,9 @@ /*! * Chart.bands.js - * Version: v0.4.0-rc + * Version: v0.5.1-rc * * Copyright 2016 BBC * Released under the MIT license * https://github.com/BBC/Chart.bands.js/blob/master/LICENSE.md */ -!function o(e,r,t){function a(l,s){if(!r[l]){if(!e[l]){var i="function"==typeof require&&require;if(!s&&i)return i(l,!0);if(n)return n(l,!0);var c=new Error("Cannot find module '"+l+"'");throw c.code="MODULE_NOT_FOUND",c}var f=r[l]={exports:{}};e[l][0].call(f.exports,function(o){var r=e[l][1][o];return a(r?r:o)},f,f.exports,o,e,r,t)}return r[l].exports}for(var n="function"==typeof require&&require,l=0;l0&&"number"==typeof o.yValue}function i(o,e,r,t,a,n){var l=e.getPixelForValue(n),s=o.createLinearGradient(0,r,0,0),i=1-l/r;try{return s.addColorStop(0,a),s.addColorStop(i,a),s.addColorStop(i,t),s.addColorStop(1,t),s}catch(c){return console.warn("ConfigError: Chart.Bands.js had a problem applying one or more colors please check that you have selected valid color strings"),t}}function c(o){return u[o]?void(g=u[o]):(console.warn("Warning: The Chart.Bands.js plugin is not supported with chart type "+o),void(b=!1))}var f,d,u,h,b,g,p;f=o("Chart"),f="function"==typeof f?f:window.Chart,d=f.helpers,b=!0,g="borderColor",baseColor=[],u={bubble:"backgroundColor",line:"borderColor"},h={borderColor:"backgroundColor",backgroundColor:"borderColor"},f.Bands=f.Bands||{},p=f.Bands.defaults={bands:{yValue:!1,bandLine:{stroke:.01,colour:"rgba(0, 0, 0, 1.000)",type:"solid",label:"",fontSize:"12",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontStyle:"normal",xPos:"top",yPos:"left"},belowThresholdColour:["rgba(0, 255, 0, 1.000)"]}};var C=f.PluginBase.extend({beforeInit:function(o){c(o.config.type);for(var e=0;e0&&"number"==typeof o.yValue}function i(o,e,r,t,a,n){var l=e.getPixelForValue(n),s=o.createLinearGradient(0,r,0,0),i=1-l/r;try{return s.addColorStop(0,a),s.addColorStop(i,a),s.addColorStop(i,t),s.addColorStop(1,t),s}catch(c){return console.warn("ConfigError: Chart.Bands.js had a problem applying one or more colors please check that you have selected valid color strings"),t}}function c(o){return u[o]?void(g=u[o]):(console.warn("Warning: The Chart.Bands.js plugin is not supported with chart type "+o),void(b=!1))}var f,d,u,h,b,g,p;f=o("Chart"),f="function"==typeof f?f:window.Chart,d=f.helpers,b=!0,g="borderColor",baseColor=[],u={bubble:"backgroundColor",line:"borderColor"},h={borderColor:"backgroundColor",backgroundColor:"borderColor"},f.Bands=f.Bands||{},p=f.Bands.defaults={bands:{yValue:!1,bandLine:{stroke:.01,colour:"rgba(0, 0, 0, 1.000)",type:"solid",label:"",fontSize:"12",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontStyle:"normal",xPos:"top",yPos:"left"},belowThresholdColour:["rgba(0, 255, 0, 1.000)"]}};var C=f.PluginBase.extend({beforeInit:function(o){c(o.config.type);for(var e=0;e