From a6a0b7e3b7c85a0b7d68a4c3872803808ea3678b Mon Sep 17 00:00:00 2001 From: Jaro Date: Tue, 12 Jan 2021 11:28:13 +0100 Subject: [PATCH] Doplnenie grafov teploty, tlaku, vlhkosti --- .../Controllers/MeasurementController.php | 18 +++ package.json | 1 + public/css/app.css | 118 ++++++++++++++++++ public/js/app.js | 112 ++++++++++++++++- resources/js/app.js | 50 +++++++- resources/sass/app.scss | 3 + resources/views/welcome.blade.php | 8 +- routes/web.php | 1 + yarn.lock | 12 ++ 9 files changed, 317 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/MeasurementController.php b/app/Http/Controllers/MeasurementController.php index 4c630a0..1571847 100644 --- a/app/Http/Controllers/MeasurementController.php +++ b/app/Http/Controllers/MeasurementController.php @@ -5,8 +5,26 @@ namespace App\Http\Controllers; use Illuminate\Http\Request; use Carbon\Carbon; + class MeasurementController extends Controller { + /** + * Display a listing of the resource. + * + * @return \Illuminate\Http\Response + */ + public function get(Request $request) + { + $type = $request->input('type', 'temperature'); + $q = sprintf("select time,value from bme280_value where host='balkon' and type='%s' and time > now()-1d",$type); + $result = \InfluxDB::query($q); + $points = $result->getPoints(); + $a = []; + foreach ($points as $p) { + $a[] = [ Carbon::createFromFormat("Y-m-d\TH:i:s.u+",$p["time"],'UTC'), $p["value"]]; + } + return response()->json($a); + } /** * Display a listing of the resource. * diff --git a/package.json b/package.json index ce768bc..7eac025 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ }, "dependencies": { "moment": "^2.29.1", + "vue-dygraphs": "^0.1.2", "vuejs-thermometer": "^0.1.3" } } diff --git a/public/css/app.css b/public/css/app.css index c2864f5..134f87a 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -10903,3 +10903,121 @@ a.text-dark:focus { } } +/** + * Default styles for the dygraphs charting library. + */ + +.dygraph-legend { + position: absolute; + font-size: 14px; + z-index: 10; + width: 250px; + /* labelsDivWidth */ + /* + dygraphs determines these based on the presence of chart labels. + It might make more sense to create a wrapper div around the chart proper. + top: 0px; + right: 2px; + */ + background: white; + line-height: normal; + text-align: left; + overflow: hidden; +} + +/* styles for a solid line in the legend */ + +.dygraph-legend-line { + display: inline-block; + position: relative; + bottom: 0.5ex; + padding-left: 1em; + height: 1px; + border-bottom-width: 2px; + border-bottom-style: solid; + /* border-bottom-color is set based on the series color */ +} + +/* styles for a dashed line in the legend, e.g. when strokePattern is set */ + +.dygraph-legend-dash { + display: inline-block; + position: relative; + bottom: 0.5ex; + height: 1px; + border-bottom-width: 2px; + border-bottom-style: solid; + /* border-bottom-color is set based on the series color */ + /* margin-right is set based on the stroke pattern */ + /* padding-left is set based on the stroke pattern */ +} + +.dygraph-roller { + position: absolute; + z-index: 10; +} + +/* This class is shared by all annotations, including those with icons */ + +.dygraph-annotation { + position: absolute; + z-index: 10; + overflow: hidden; +} + +/* This class only applies to annotations without icons */ + +/* Old class name: .dygraphDefaultAnnotation */ + +.dygraph-default-annotation { + border: 1px solid black; + background-color: white; + text-align: center; +} + +.dygraph-axis-label { + /* position: absolute; */ + /* font-size: 14px; */ + z-index: 10; + line-height: normal; + overflow: hidden; + color: black; + /* replaces old axisLabelColor option */ +} + +.dygraph-title { + font-weight: bold; + z-index: 10; + text-align: center; + /* font-size: based on titleHeight option */ +} + +.dygraph-xlabel { + text-align: center; + /* font-size: based on xLabelHeight option */ +} + +/* For y-axis label */ + +.dygraph-label-rotate-left { + text-align: center; + /* See http://caniuse.com/#feat=transforms2d */ + transform: rotate(90deg); + -webkit-transform: rotate(90deg); + -moz-transform: rotate(90deg); + -o-transform: rotate(90deg); + -ms-transform: rotate(90deg); +} + +/* For y2-axis label */ + +.dygraph-label-rotate-right { + text-align: center; + /* See http://caniuse.com/#feat=transforms2d */ + transform: rotate(-90deg); + -webkit-transform: rotate(-90deg); + -moz-transform: rotate(-90deg); + -o-transform: rotate(-90deg); + -ms-transform: rotate(-90deg); +} + diff --git a/public/js/app.js b/public/js/app.js index 970f78a..a75f07b 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -59076,6 +59076,62 @@ exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) || /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) +/***/ }), + +/***/ "./node_modules/vue-dygraphs/dist/vue-dygraphs.common.js": +/*!***************************************************************!*\ + !*** ./node_modules/vue-dygraphs/dist/vue-dygraphs.common.js ***! + \***************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +/* WEBPACK VAR INJECTION */(function(process, global) {module.exports=function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}var installedModules={};return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.i=function(value){return value},__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=26)}([function(module,__webpack_exports__,__webpack_require__){"use strict";function removeEvent(elem,type,fn){elem.removeEventListener(type,fn,!1)}function cancelEvent(e){return e=e||window.event,e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.cancel=!0,e.returnValue=!1,!1}function hsvToRGB(hue,saturation,value){var red,green,blue;if(0===saturation)red=value,green=value,blue=value;else{var i=Math.floor(6*hue),f=6*hue-i,p=value*(1-saturation),q=value*(1-saturation*f),t=value*(1-saturation*(1-f));switch(i){case 1:red=q,green=value,blue=p;break;case 2:red=p,green=value,blue=t;break;case 3:red=p,green=q,blue=value;break;case 4:red=t,green=p,blue=value;break;case 5:red=value,green=p,blue=q;break;case 6:case 0:red=value,green=t,blue=p}}return red=Math.floor(255*red+.5),green=Math.floor(255*green+.5),blue=Math.floor(255*blue+.5),"rgb("+red+","+green+","+blue+")"}function findPos(obj){var p=obj.getBoundingClientRect(),w=window,d=document.documentElement;return{x:p.left+(w.pageXOffset||d.scrollLeft),y:p.top+(w.pageYOffset||d.scrollTop)}}function pageX(e){return!e.pageX||e.pageX<0?0:e.pageX}function pageY(e){return!e.pageY||e.pageY<0?0:e.pageY}function dragGetX_(e,context){return pageX(e)-context.px}function dragGetY_(e,context){return pageY(e)-context.py}function isOK(x){return!!x&&!isNaN(x)}function isValidPoint(p,opt_allowNaNY){return!!p&&(null!==p.yval&&(null!==p.x&&void 0!==p.x&&(null!==p.y&&void 0!==p.y&&!(isNaN(p.x)||!opt_allowNaNY&&isNaN(p.y)))))}function floatFormat(x,opt_precision){var p=Math.min(Math.max(1,opt_precision||2),21);return Math.abs(x)<.001&&0!==x?x.toExponential(p-1):x.toPrecision(p)}function zeropad(x){return x<10?"0"+x:""+x}function hmsString_(hh,mm,ss,ms){var ret=zeropad(hh)+":"+zeropad(mm);if(ss&&(ret+=":"+zeropad(ss),ms)){var str=""+ms;ret+="."+("000"+str).substring(str.length)}return ret}function dateString_(time,utc){var accessors=utc?DateAccessorsUTC:DateAccessorsLocal,date=new Date(time),y=accessors.getFullYear(date),m=accessors.getMonth(date),d=accessors.getDate(date),hh=accessors.getHours(date),mm=accessors.getMinutes(date),ss=accessors.getSeconds(date),ms=accessors.getMilliseconds(date),year=""+y,month=zeropad(m+1),day=zeropad(d),frac=3600*hh+60*mm+ss+.001*ms,ret=year+"/"+month+"/"+day;return frac&&(ret+=" "+hmsString_(hh,mm,ss,ms)),ret}function round_(num,places){var shift=Math.pow(10,places);return Math.round(num*shift)/shift}function binarySearch(val,arry,abs,low,high){if(null!==low&&void 0!==low&&null!==high&&void 0!==high||(low=0,high=arry.length-1),low>high)return-1;null!==abs&&void 0!==abs||(abs=0);var idx,validIndex=function(idx){return idx>=0&&idxval?abs>0&&(idx=mid-1,validIndex(idx)&&arry[idx]val)?mid:binarySearch(val,arry,abs,mid+1,high):-1}function dateParser(dateStr){var dateStrSlashed,d;if((-1==dateStr.search("-")||-1!=dateStr.search("T")||-1!=dateStr.search("Z"))&&(d=dateStrToMillis(dateStr))&&!isNaN(d))return d;if(-1!=dateStr.search("-")){for(dateStrSlashed=dateStr.replace("-","/","g");-1!=dateStrSlashed.search("-");)dateStrSlashed=dateStrSlashed.replace("-","/");d=dateStrToMillis(dateStrSlashed)}else 8==dateStr.length?(dateStrSlashed=dateStr.substr(0,4)+"/"+dateStr.substr(4,2)+"/"+dateStr.substr(6,2),d=dateStrToMillis(dateStrSlashed)):d=dateStrToMillis(dateStr);return d&&!isNaN(d)||console.error("Couldn't parse "+dateStr+" as a date"),d}function dateStrToMillis(str){return new Date(str).getTime()}function update(self,o){if(void 0!==o&&null!==o)for(var k in o)o.hasOwnProperty(k)&&(self[k]=o[k]);return self}function updateDeep(self,o){if(void 0!==o&&null!==o)for(var k in o)o.hasOwnProperty(k)&&(null===o[k]?self[k]=null:isArrayLike(o[k])?self[k]=o[k].slice():!function(o){return"object"===("undefined"==typeof Node?"undefined":_typeof(Node))?o instanceof Node:"object"===(void 0===o?"undefined":_typeof(o))&&"number"==typeof o.nodeType&&"string"==typeof o.nodeName}(o[k])&&"object"==_typeof(o[k])?("object"==_typeof(self[k])&&null!==self[k]||(self[k]={}),updateDeep(self[k],o[k])):self[k]=o[k]);return self}function isArrayLike(o){var typ=void 0===o?"undefined":_typeof(o);return("object"==typ||"function"==typ&&"function"==typeof o.item)&&null!==o&&"number"==typeof o.length&&3!==o.nodeType}function isDateLike(o){return"object"==(void 0===o?"undefined":_typeof(o))&&null!==o&&"function"==typeof o.getTime}function clone(o){for(var r=[],i=0;i=maxFrames||requestAnimFrame.call(window,function(){var currentTime=(new Date).getTime(),delayInMillis=currentTime-startTime;previousFrameNumber=frameNumber,frameNumber=Math.floor(delayInMillis/framePeriodInMillis);var frameDelta=frameNumber-previousFrameNumber;frameNumber+frameDelta>maxFrameArg||frameNumber>=maxFrameArg?(repeatFn(maxFrameArg),cleanupFn()):(0!==frameDelta&&repeatFn(frameNumber),loop())})}()}function isPixelChangingOptionList(labels,attrs){var seriesNamesDictionary={};if(labels)for(var i=1;i=Math.pow(10,maxNumberWidth)||Math.abs(x)=0;j--,n/=k)if(absx>=n){label=round_(x/n,digits)+k_labels[j];break}if(kmg2){var x_parts=String(x.toExponential()).split("e-");2===x_parts.length&&x_parts[1]>=3&&x_parts[1]<=24&&(label=x_parts[1]%3>0?round_(x_parts[0]/pow(10,x_parts[1]%3),digits):Number(x_parts[0]).toFixed(2),label+=m_labels[Math.floor(x_parts[1]/3)-1])}}return label}function numberAxisLabelFormatter(x,granularity,opts){return numberValueFormatter.call(this,x,opts)}function dateAxisLabelFormatter(date,granularity,opts){var utc=opts("labelsUTC"),accessors=utc?DateAccessorsUTC:DateAccessorsLocal,year=accessors.getFullYear(date),month=accessors.getMonth(date),day=accessors.getDate(date),hours=accessors.getHours(date),mins=accessors.getMinutes(date),secs=accessors.getSeconds(date),millis=accessors.getMilliseconds(date);if(granularity>=__WEBPACK_IMPORTED_MODULE_0__dygraph_tickers__.d.DECADAL)return""+year;if(granularity>=__WEBPACK_IMPORTED_MODULE_0__dygraph_tickers__.d.MONTHLY)return SHORT_MONTH_NAMES_[month]+" "+year;if(0===3600*hours+60*mins+secs+.001*millis||granularity>=__WEBPACK_IMPORTED_MODULE_0__dygraph_tickers__.d.DAILY)return zeropad(day)+" "+SHORT_MONTH_NAMES_[month];if(granularity<__WEBPACK_IMPORTED_MODULE_0__dygraph_tickers__.d.SECONDLY){var str=""+millis;return zeropad(secs)+"."+("000"+str).substring(str.length)}return granularity>__WEBPACK_IMPORTED_MODULE_0__dygraph_tickers__.d.MINUTELY?hmsString_(hours,mins,secs,0):hmsString_(hours,mins,secs,millis)}function dateValueFormatter(d,opts){return dateString_(d,opts("labelsUTC"))}__webpack_require__.d(__webpack_exports__,"N",function(){return LOG_SCALE}),__webpack_require__.d(__webpack_exports__,"d",function(){return log10}),__webpack_require__.d(__webpack_exports__,"c",function(){return logRangeFraction}),__webpack_require__.d(__webpack_exports__,"G",function(){return DASHED_LINE}),__webpack_require__.d(__webpack_exports__,"H",function(){return DOT_DASH_LINE}),__webpack_require__.d(__webpack_exports__,"n",function(){return HORIZONTAL}),__webpack_require__.d(__webpack_exports__,"o",function(){return VERTICAL}),__webpack_require__.d(__webpack_exports__,"f",function(){return getContext}),__webpack_require__.d(__webpack_exports__,"F",function(){return addEvent}),__webpack_exports__.i=removeEvent,__webpack_exports__.O=cancelEvent,__webpack_exports__.j=hsvToRGB,__webpack_exports__.k=findPos,__webpack_exports__.q=pageX,__webpack_exports__.r=pageY,__webpack_exports__.l=dragGetX_,__webpack_exports__.m=dragGetY_,__webpack_exports__.S=isOK,__webpack_exports__.s=isValidPoint,__webpack_exports__.J=floatFormat,__webpack_require__.d(__webpack_exports__,"M",function(){return DateAccessorsLocal}),__webpack_require__.d(__webpack_exports__,"L",function(){return DateAccessorsUTC}),__webpack_exports__.I=dateString_,__webpack_exports__.K=binarySearch,__webpack_exports__.v=dateParser,__webpack_exports__.a=update,__webpack_exports__.b=updateDeep,__webpack_exports__.B=isArrayLike,__webpack_exports__.A=isDateLike,__webpack_exports__.C=clone,__webpack_exports__.e=createCanvas,__webpack_exports__.h=getContextPixelRatio,__webpack_exports__.R=createIterator,__webpack_exports__.p=repeatAndCleanup,__webpack_exports__.E=isPixelChangingOptionList,__webpack_require__.d(__webpack_exports__,"u",function(){return Circles}),__webpack_exports__.y=detectLineDelimiter,__webpack_exports__.g=isNodeContainedBy,__webpack_exports__.t=toRGB_,__webpack_exports__.Q=isCanvasSupported,__webpack_exports__.z=parseFloat_,__webpack_exports__.P=numberValueFormatter,__webpack_exports__.D=numberAxisLabelFormatter,__webpack_exports__.x=dateAxisLabelFormatter,__webpack_exports__.w=dateValueFormatter;var __WEBPACK_IMPORTED_MODULE_0__dygraph_tickers__=__webpack_require__(4),_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},LOG_SCALE=10,LN_TEN=Math.log(LOG_SCALE),log10=function(x){return Math.log(x)/LN_TEN},logRangeFraction=function(r0,r1,pct){var logr0=log10(r0),logr1=log10(r1),exponent=logr0+pct*(logr1-logr0);return Math.pow(LOG_SCALE,exponent)},DASHED_LINE=[7,3],DOT_DASH_LINE=[7,2,2,2],HORIZONTAL=1,VERTICAL=2,getContext=function(canvas){return canvas.getContext("2d")},addEvent=function(elem,type,fn){elem.addEventListener(type,fn,!1)},DateAccessorsLocal={getFullYear:function(d){return d.getFullYear()},getMonth:function(d){return d.getMonth()},getDate:function(d){return d.getDate()},getHours:function(d){return d.getHours()},getMinutes:function(d){return d.getMinutes()},getSeconds:function(d){return d.getSeconds()},getMilliseconds:function(d){return d.getMilliseconds()},getDay:function(d){return d.getDay()},makeDate:function(y,m,d,hh,mm,ss,ms){return new Date(y,m,d,hh,mm,ss,ms)}},DateAccessorsUTC={getFullYear:function(d){return d.getUTCFullYear()},getMonth:function(d){return d.getUTCMonth()},getDate:function(d){return d.getUTCDate()},getHours:function(d){return d.getUTCHours()},getMinutes:function(d){return d.getUTCMinutes()},getSeconds:function(d){return d.getUTCSeconds()},getMilliseconds:function(d){return d.getUTCMilliseconds()},getDay:function(d){return d.getUTCDay()},makeDate:function(y,m,d,hh,mm,ss,ms){return new Date(Date.UTC(y,m,d,hh,mm,ss,ms))}};Iterator.prototype.next=function(){if(!this.hasNext)return null;for(var obj=this.peek,nextIdx=this.nextIdx_+1,found=!1;nextIdxy&&(low=y),highmaxY)&&(maxY=high),(null===minY||lowcontext.boundedDates[1]&&(minDate-=maxDate-context.boundedDates[1],maxDate=minDate+context.dateRange),g.getOptionForAxis("logscale","x")?g.dateWindow_=[Math.pow(__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.N,minDate),Math.pow(__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.N,maxDate)]:g.dateWindow_=[minDate,maxDate],context.is2DPan)for(var pixelsDragged=context.dragEndY-context.dragStartY,i=0;i=10&&context.dragDirection==__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.n){var left=Math.min(context.dragStartX,context.dragEndX),right=Math.max(context.dragStartX,context.dragEndX);left=Math.max(left,plotArea.x),right=Math.min(right,plotArea.x+plotArea.w),left=10&&context.dragDirection==__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.o){var top=Math.min(context.dragStartY,context.dragEndY),bottom=Math.max(context.dragStartY,context.dragEndY);top=Math.max(top,plotArea.y),bottom=Math.min(bottom,plotArea.y+plotArea.h),top1&&(context.startTimeForDoubleTapMs=null);for(var touches=[],i=0;i=2){context.initialPinchCenter={pageX:.5*(touches[0].pageX+touches[1].pageX),pageY:.5*(touches[0].pageY+touches[1].pageY),dataX:.5*(touches[0].dataX+touches[1].dataX),dataY:.5*(touches[0].dataY+touches[1].dataY)};var initialAngle=180/Math.PI*Math.atan2(context.initialPinchCenter.pageY-touches[0].pageY,touches[0].pageX-context.initialPinchCenter.pageX);initialAngle=Math.abs(initialAngle),initialAngle>90&&(initialAngle=90-initialAngle),context.touchDirections={x:initialAngle<67.5,y:initialAngle>22.5}}context.initialRange={x:g.xAxisRange(),y:g.yAxisRange()}},DygraphInteraction.moveTouch=function(event,g,context){context.startTimeForDoubleTapMs=null;var i,touches=[];for(i=0;i=2){var initHalfWidth=initialTouches[1].pageX-c_init.pageX;xScale=(touches[1].pageX-c_now.pageX)/initHalfWidth;var initHalfHeight=initialTouches[1].pageY-c_init.pageY;yScale=(touches[1].pageY-c_now.pageY)/initHalfHeight}xScale=Math.min(8,Math.max(.125,xScale)),yScale=Math.min(8,Math.max(.125,yScale));var didZoom=!1;if(context.touchDirections.x&&(g.dateWindow_=[c_init.dataX-swipe.dataX+(context.initialRange.x[0]-c_init.dataX)/xScale,c_init.dataX-swipe.dataX+(context.initialRange.x[1]-c_init.dataX)/xScale],didZoom=!0),context.touchDirections.y)for(i=0;i<1;i++){var axis=g.axes_[i],logscale=g.attributes_.getForAxis("logscale",i);logscale||(axis.valueRange=[c_init.dataY-swipe.dataY+(context.initialRange.y[0]-c_init.dataY)/yScale,c_init.dataY-swipe.dataY+(context.initialRange.y[1]-c_init.dataY)/yScale],didZoom=!0)}if(g.drawGraph_(!1),didZoom&&touches.length>1&&g.getFunctionOption("zoomCallback")){var viewWindow=g.xAxisRange();g.getFunctionOption("zoomCallback").call(g,viewWindow[0],viewWindow[1],g.yAxisRanges())}},DygraphInteraction.endTouch=function(event,g,context){if(0!==event.touches.length)DygraphInteraction.startTouch(event,g,context);else if(1==event.changedTouches.length){var now=(new Date).getTime(),t=event.changedTouches[0];context.startTimeForDoubleTapMs&&now-context.startTimeForDoubleTapMs<500&&context.doubleTapX&&Math.abs(context.doubleTapX-t.screenX)<50&&context.doubleTapY&&Math.abs(context.doubleTapY-t.screenY)<50?g.resetZoom():(context.startTimeForDoubleTapMs=now,context.doubleTapX=t.screenX,context.doubleTapY=t.screenY)}};var distanceFromInterval=function(x,left,right){return xright?x-right:0},distanceFromChart=function(event,g){var chartPos=__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.k(g.canvas_),box={left:chartPos.x,right:chartPos.x+g.canvas_.offsetWidth,top:chartPos.y,bottom:chartPos.y+g.canvas_.offsetHeight},pt={x:__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.q(event),y:__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.r(event)},dx=distanceFromInterval(pt.x,box.left,box.right),dy=distanceFromInterval(pt.y,box.top,box.bottom);return Math.max(dx,dy)};DygraphInteraction.defaultModel={mousedown:function(event,g,context){if(!event.button||2!=event.button){context.initializeMouseDown(event,g,context),event.altKey||event.shiftKey?DygraphInteraction.startPan(event,g,context):DygraphInteraction.startZoom(event,g,context);var mousemove=function(event){if(context.isZooming){distanceFromChart(event,g)<100?DygraphInteraction.moveZoom(event,g,context):null!==context.dragEndX&&(context.dragEndX=null,context.dragEndY=null,g.clearZoomRect_())}else context.isPanning&&DygraphInteraction.movePan(event,g,context)},mouseup=function mouseup(event){context.isZooming?null!==context.dragEndX?DygraphInteraction.endZoom(event,g,context):DygraphInteraction.maybeTreatMouseOpAsClick(event,g,context):context.isPanning&&DygraphInteraction.endPan(event,g,context),__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.i(document,"mousemove",mousemove),__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.i(document,"mouseup",mouseup),context.destroy()};g.addAndTrackEvent(document,"mousemove",mousemove),g.addAndTrackEvent(document,"mouseup",mouseup)}},willDestroyContextMyself:!0,touchstart:function(event,g,context){DygraphInteraction.startTouch(event,g,context)},touchmove:function(event,g,context){DygraphInteraction.moveTouch(event,g,context)},touchend:function(event,g,context){DygraphInteraction.endTouch(event,g,context)},dblclick:function(event,g,context){if(context.cancelNextDblclick)return void(context.cancelNextDblclick=!1);var e={canvasx:context.dragEndX,canvasy:context.dragEndY,cancelable:!0};g.cascadeEvents_("dblclick",e)||event.altKey||event.shiftKey||g.resetZoom()}},DygraphInteraction.nonInteractiveModel_={mousedown:function(event,g,context){context.initializeMouseDown(event,g,context)},mouseup:DygraphInteraction.maybeTreatMouseOpAsClick},DygraphInteraction.dragIsPanInteractionModel={mousedown:function(event,g,context){context.initializeMouseDown(event,g,context),DygraphInteraction.startPan(event,g,context)},mousemove:function(event,g,context){context.isPanning&&DygraphInteraction.movePan(event,g,context)},mouseup:function(event,g,context){context.isPanning&&DygraphInteraction.endPan(event,g,context)}},__webpack_exports__.a=DygraphInteraction},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"c",function(){return numericLinearTicks}),__webpack_require__.d(__webpack_exports__,"b",function(){return numericTicks}),__webpack_require__.d(__webpack_exports__,"a",function(){return dateTicker}),__webpack_require__.d(__webpack_exports__,"d",function(){return Granularity}),__webpack_require__.d(__webpack_exports__,"e",function(){return getDateAxis});var __WEBPACK_IMPORTED_MODULE_0__dygraph_utils__=__webpack_require__(0),numericLinearTicks=function(a,b,pixels,opts,dygraph,vals){return numericTicks(a,b,pixels,function(opt){return"logscale"!==opt&&opts(opt)},dygraph,vals)},numericTicks=function(a,b,pixels,opts,dygraph,vals){var i,j,tickV,nTicks,pixels_per_tick=opts("pixelsPerLabel"),ticks=[];if(vals)for(i=0;i=nTicks/4){for(var idx=maxIdx;idx>=minIdx;idx--){var tickValue=PREFERRED_LOG_TICK_VALUES[idx],pixel_coord=Math.log(tickValue/a)/Math.log(b/a)*pixels,tick={v:tickValue};null===lastDisplayed?lastDisplayed={tickValue:tickValue,pixel_coord:pixel_coord}:Math.abs(pixel_coord-lastDisplayed.pixel_coord)>=pixels_per_tick?lastDisplayed={tickValue:tickValue,pixel_coord:pixel_coord}:tick.label="",ticks.push(tick)}ticks.reverse()}}if(0===ticks.length){var mults,base,kmg2=opts("labelsKMG2");kmg2?(mults=[1,2,4,8,16,32,64,128,256],base=16):(mults=[1,2,5,10,20,50,100],base=10);var scale,low_val,high_val,max_ticks=Math.ceil(pixels/pixels_per_tick),units_per_tick=Math.abs(b-a)/max_ticks,base_power=Math.floor(Math.log(units_per_tick)/Math.log(base)),base_scale=Math.pow(base,base_power);for(j=0;jpixels_per_tick));j++);for(low_val>high_val&&(scale*=-1),i=0;i<=nTicks;i++)tickV=low_val+i*scale,ticks.push({v:tickV})}}var formatter=opts("axisLabelFormatter");for(i=0;i=0?getDateAxis(a,b,chosen,opts,dygraph):[]},Granularity={MILLISECONDLY:0,TWO_MILLISECONDLY:1,FIVE_MILLISECONDLY:2,TEN_MILLISECONDLY:3,FIFTY_MILLISECONDLY:4,HUNDRED_MILLISECONDLY:5,FIVE_HUNDRED_MILLISECONDLY:6,SECONDLY:7,TWO_SECONDLY:8,FIVE_SECONDLY:9,TEN_SECONDLY:10,THIRTY_SECONDLY:11,MINUTELY:12,TWO_MINUTELY:13,FIVE_MINUTELY:14,TEN_MINUTELY:15,THIRTY_MINUTELY:16,HOURLY:17,TWO_HOURLY:18,SIX_HOURLY:19,DAILY:20,TWO_DAILY:21,WEEKLY:22,MONTHLY:23,QUARTERLY:24,BIANNUAL:25,ANNUAL:26,DECADAL:27,CENTENNIAL:28,NUM_GRANULARITIES:29},DateField={DATEFIELD_Y:0,DATEFIELD_M:1,DATEFIELD_D:2,DATEFIELD_HH:3,DATEFIELD_MM:4,DATEFIELD_SS:5,DATEFIELD_MS:6,NUM_DATEFIELDS:7},TICK_PLACEMENT=[];TICK_PLACEMENT[Granularity.MILLISECONDLY]={datefield:DateField.DATEFIELD_MS,step:1,spacing:1},TICK_PLACEMENT[Granularity.TWO_MILLISECONDLY]={datefield:DateField.DATEFIELD_MS,step:2,spacing:2},TICK_PLACEMENT[Granularity.FIVE_MILLISECONDLY]={datefield:DateField.DATEFIELD_MS,step:5,spacing:5},TICK_PLACEMENT[Granularity.TEN_MILLISECONDLY]={datefield:DateField.DATEFIELD_MS,step:10,spacing:10},TICK_PLACEMENT[Granularity.FIFTY_MILLISECONDLY]={datefield:DateField.DATEFIELD_MS,step:50,spacing:50},TICK_PLACEMENT[Granularity.HUNDRED_MILLISECONDLY]={datefield:DateField.DATEFIELD_MS,step:100,spacing:100},TICK_PLACEMENT[Granularity.FIVE_HUNDRED_MILLISECONDLY]={datefield:DateField.DATEFIELD_MS,step:500,spacing:500},TICK_PLACEMENT[Granularity.SECONDLY]={datefield:DateField.DATEFIELD_SS,step:1,spacing:1e3},TICK_PLACEMENT[Granularity.TWO_SECONDLY]={datefield:DateField.DATEFIELD_SS,step:2,spacing:2e3},TICK_PLACEMENT[Granularity.FIVE_SECONDLY]={datefield:DateField.DATEFIELD_SS,step:5,spacing:5e3},TICK_PLACEMENT[Granularity.TEN_SECONDLY]={datefield:DateField.DATEFIELD_SS,step:10,spacing:1e4},TICK_PLACEMENT[Granularity.THIRTY_SECONDLY]={datefield:DateField.DATEFIELD_SS,step:30,spacing:3e4},TICK_PLACEMENT[Granularity.MINUTELY]={datefield:DateField.DATEFIELD_MM,step:1,spacing:6e4},TICK_PLACEMENT[Granularity.TWO_MINUTELY]={datefield:DateField.DATEFIELD_MM,step:2,spacing:12e4},TICK_PLACEMENT[Granularity.FIVE_MINUTELY]={datefield:DateField.DATEFIELD_MM,step:5,spacing:3e5},TICK_PLACEMENT[Granularity.TEN_MINUTELY]={datefield:DateField.DATEFIELD_MM,step:10,spacing:6e5},TICK_PLACEMENT[Granularity.THIRTY_MINUTELY]={datefield:DateField.DATEFIELD_MM,step:30,spacing:18e5},TICK_PLACEMENT[Granularity.HOURLY]={datefield:DateField.DATEFIELD_HH,step:1,spacing:36e5},TICK_PLACEMENT[Granularity.TWO_HOURLY]={datefield:DateField.DATEFIELD_HH,step:2,spacing:72e5},TICK_PLACEMENT[Granularity.SIX_HOURLY]={datefield:DateField.DATEFIELD_HH,step:6,spacing:216e5},TICK_PLACEMENT[Granularity.DAILY]={datefield:DateField.DATEFIELD_D,step:1,spacing:864e5},TICK_PLACEMENT[Granularity.TWO_DAILY]={datefield:DateField.DATEFIELD_D,step:2,spacing:1728e5},TICK_PLACEMENT[Granularity.WEEKLY]={datefield:DateField.DATEFIELD_D,step:7,spacing:6048e5},TICK_PLACEMENT[Granularity.MONTHLY]={datefield:DateField.DATEFIELD_M,step:1,spacing:2629817280},TICK_PLACEMENT[Granularity.QUARTERLY]={datefield:DateField.DATEFIELD_M,step:3,spacing:216e5*365.2524},TICK_PLACEMENT[Granularity.BIANNUAL]={datefield:DateField.DATEFIELD_M,step:6,spacing:432e5*365.2524},TICK_PLACEMENT[Granularity.ANNUAL]={datefield:DateField.DATEFIELD_Y,step:1,spacing:864e5*365.2524},TICK_PLACEMENT[Granularity.DECADAL]={datefield:DateField.DATEFIELD_Y,step:10,spacing:315578073600},TICK_PLACEMENT[Granularity.CENTENNIAL]={datefield:DateField.DATEFIELD_Y,step:100,spacing:3155780736e3};var PREFERRED_LOG_TICK_VALUES=function(){for(var vals=[],power=-39;power<=39;power++)for(var range=Math.pow(10,power),mult=1;mult<=9;mult++){var val=range*mult;vals.push(val)}return vals}(),pickDateTickGranularity=function(a,b,pixels,opts){for(var pixels_per_tick=opts("pixelsPerLabel"),i=0;i=pixels_per_tick)return i}return-1},numDateTicks=function(start_time,end_time,granularity){var spacing=TICK_PLACEMENT[granularity].spacing;return Math.round(1*(end_time-start_time)/spacing)},getDateAxis=function(start_time,end_time,granularity,opts,dg){var formatter=opts("axisLabelFormatter"),utc=opts("labelsUTC"),accessors=utc?__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.L:__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.M,datefield=TICK_PLACEMENT[granularity].datefield,step=TICK_PLACEMENT[granularity].step,spacing=TICK_PLACEMENT[granularity].spacing,start_date=new Date(start_time),date_array=[];date_array[DateField.DATEFIELD_Y]=accessors.getFullYear(start_date),date_array[DateField.DATEFIELD_M]=accessors.getMonth(start_date),date_array[DateField.DATEFIELD_D]=accessors.getDate(start_date),date_array[DateField.DATEFIELD_HH]=accessors.getHours(start_date),date_array[DateField.DATEFIELD_MM]=accessors.getMinutes(start_date),date_array[DateField.DATEFIELD_SS]=accessors.getSeconds(start_date),date_array[DateField.DATEFIELD_MS]=accessors.getMilliseconds(start_date);var start_date_offset=date_array[datefield]%step;granularity==Granularity.WEEKLY&&(start_date_offset=accessors.getDay(start_date)),date_array[datefield]-=start_date_offset;for(var df=datefield+1;df=Granularity.DAILY||accessors.getHours(tick_date)%step==0)&&ticks.push({v:tick_time,label:formatter.call(dg,tick_date,granularity,opts,dg)}),date_array[datefield]+=step,tick_date=accessors.makeDate.apply(null,date_array),tick_time=tick_date.getTime();return ticks}},function(module,__webpack_exports__,__webpack_require__){"use strict";function validateNativeFormat(data){var firstRow=data[0],firstX=firstRow[0];if("number"!=typeof firstX&&!__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.A(firstX))throw new Error("Expected number or date but got "+(void 0===firstX?"undefined":_typeof(firstX))+": "+firstX+".");for(var i=1;i=0;i--){var plugin=callback_plugin_pairs[i][0],callback=callback_plugin_pairs[i][1];if(callback.call(plugin,e),e.propagationStopped)break}return e.defaultPrevented},Dygraph.prototype.getPluginInstance_=function(type){for(var i=0;i=0;if(null===axis||void 0===axis)return isZoomedX||isZoomedY;if("y"===axis)return isZoomedY;throw new Error("axis parameter is ["+axis+"] must be null, 'x' or 'y'.")},Dygraph.prototype.toString=function(){var maindiv=this.maindiv_;return"[Dygraph "+(maindiv&&maindiv.id?maindiv.id:maindiv)+"]"},Dygraph.prototype.attr_=function(name,seriesName){return"undefined"!=typeof process&&"production"!="development"&&(void 0===__WEBPACK_IMPORTED_MODULE_7__dygraph_options_reference__.a?console.error("Must include options reference JS for testing"):__WEBPACK_IMPORTED_MODULE_7__dygraph_options_reference__.a.hasOwnProperty(name)||(console.error("Dygraphs is using property "+name+", which has no entry in the Dygraphs.OPTIONS_REFERENCE listing."),__WEBPACK_IMPORTED_MODULE_7__dygraph_options_reference__.a[name]=!0)),seriesName?this.attributes_.getForSeries(name,seriesName):this.attributes_.get(name)},Dygraph.prototype.getOption=function(name,opt_seriesName){return this.attr_(name,opt_seriesName)},Dygraph.prototype.getNumericOption=function(name,opt_seriesName){return this.getOption(name,opt_seriesName)},Dygraph.prototype.getStringOption=function(name,opt_seriesName){return this.getOption(name,opt_seriesName)},Dygraph.prototype.getBooleanOption=function(name,opt_seriesName){return this.getOption(name,opt_seriesName)},Dygraph.prototype.getFunctionOption=function(name,opt_seriesName){return this.getOption(name,opt_seriesName)},Dygraph.prototype.getOptionForAxis=function(name,axis){return this.attributes_.getForAxis(name,axis)},Dygraph.prototype.optionsViewForAxis_=function(axis){var self=this;return function(opt){var axis_opts=self.user_attrs_.axes;return axis_opts&&axis_opts[axis]&&axis_opts[axis].hasOwnProperty(opt)?axis_opts[axis][opt]:("x"!==axis||"logscale"!==opt)&&(void 0!==self.user_attrs_[opt]?self.user_attrs_[opt]:(axis_opts=self.attrs_.axes,axis_opts&&axis_opts[axis]&&axis_opts[axis].hasOwnProperty(opt)?axis_opts[axis][opt]:"y"==axis&&self.axes_[0].hasOwnProperty(opt)?self.axes_[0][opt]:"y2"==axis&&self.axes_[1].hasOwnProperty(opt)?self.axes_[1][opt]:self.attr_(opt)))}},Dygraph.prototype.rollPeriod=function(){return this.rollPeriod_},Dygraph.prototype.xAxisRange=function(){return this.dateWindow_?this.dateWindow_:this.xAxisExtremes()},Dygraph.prototype.xAxisExtremes=function(){var pad=this.getNumericOption("xRangePad")/this.plotter_.area.w;if(0===this.numRows())return[0-pad,1+pad];var left=this.rawData_[0][0],right=this.rawData_[this.rawData_.length-1][0];if(pad){var range=right-left;left-=range*pad,right+=range*pad}return[left,right]},Dygraph.prototype.yAxisExtremes=function(){var packed=this.gatherDatasets_(this.rolledSeries_,null),extremes=packed.extremes,saveAxes=this.axes_;this.computeYAxisRanges_(extremes);var newAxes=this.axes_;return this.axes_=saveAxes,newAxes.map(function(axis){return axis.extremeRange})},Dygraph.prototype.yAxisRange=function(idx){if(void 0===idx&&(idx=0),idx<0||idx>=this.axes_.length)return null;var axis=this.axes_[idx];return[axis.computedValueRange[0],axis.computedValueRange[1]]},Dygraph.prototype.yAxisRanges=function(){for(var ret=[],i=0;ithis.rawData_.length?null:col<0||col>this.rawData_[row].length?null:this.rawData_[row][col]},Dygraph.prototype.createInterface_=function(){var enclosing=this.maindiv_;this.graphDiv=document.createElement("div"),this.graphDiv.style.textAlign="left",this.graphDiv.style.position="relative",enclosing.appendChild(this.graphDiv),this.canvas_=__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.e(),this.canvas_.style.position="absolute",this.hidden_=this.createPlotKitCanvas_(this.canvas_),this.canvas_ctx_=__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.f(this.canvas_),this.hidden_ctx_=__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.f(this.hidden_),this.resizeElements_(),this.graphDiv.appendChild(this.hidden_),this.graphDiv.appendChild(this.canvas_),this.mouseEventElement_=this.createMouseEventElement_(),this.layout_=new __WEBPACK_IMPORTED_MODULE_0__dygraph_layout__.a(this);var dygraph=this;this.mouseMoveHandler_=function(e){dygraph.mouseMove_(e)},this.mouseOutHandler_=function(e){var target=e.target||e.fromElement,relatedTarget=e.relatedTarget||e.toElement;__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.g(target,dygraph.graphDiv)&&!__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.g(relatedTarget,dygraph.graphDiv)&&dygraph.mouseOut_(e)},this.addAndTrackEvent(window,"mouseout",this.mouseOutHandler_),this.addAndTrackEvent(this.mouseEventElement_,"mousemove",this.mouseMoveHandler_),this.resizeHandler_||(this.resizeHandler_=function(e){dygraph.resize()},this.addAndTrackEvent(window,"resize",this.resizeHandler_))},Dygraph.prototype.resizeElements_=function(){this.graphDiv.style.width=this.width_+"px",this.graphDiv.style.height=this.height_+"px";var pixelRatioOption=this.getNumericOption("pixelRatio"),canvasScale=pixelRatioOption||__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.h(this.canvas_ctx_);this.canvas_.width=this.width_*canvasScale,this.canvas_.height=this.height_*canvasScale,this.canvas_.style.width=this.width_+"px",this.canvas_.style.height=this.height_+"px",1!==canvasScale&&this.canvas_ctx_.scale(canvasScale,canvasScale);var hiddenScale=pixelRatioOption||__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.h(this.hidden_ctx_);this.hidden_.width=this.width_*hiddenScale,this.hidden_.height=this.height_*hiddenScale,this.hidden_.style.width=this.width_+"px",this.hidden_.style.height=this.height_+"px",1!==hiddenScale&&this.hidden_ctx_.scale(hiddenScale,hiddenScale)},Dygraph.prototype.destroy=function(){this.canvas_ctx_.restore(),this.hidden_ctx_.restore();for(var i=this.plugins_.length-1;i>=0;i--){var p=this.plugins_.pop();p.plugin.destroy&&p.plugin.destroy()}this.removeTrackedEvents_(),__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.i(window,"mouseout",this.mouseOutHandler_),__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.i(this.mouseEventElement_,"mousemove",this.mouseMoveHandler_),__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.i(window,"resize",this.resizeHandler_),this.resizeHandler_=null,function removeRecursive(node){for(;node.hasChildNodes();)removeRecursive(node.firstChild),node.removeChild(node.firstChild)}(this.maindiv_);var nullOut=function(obj){for(var n in obj)"object"===_typeof(obj[n])&&(obj[n]=null)};nullOut(this.layout_),nullOut(this.plotter_),nullOut(this)},Dygraph.prototype.createPlotKitCanvas_=function(canvas){var h=__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.e();return h.style.position="absolute",h.style.top=canvas.style.top,h.style.left=canvas.style.left,h.width=this.width_,h.height=this.height_,h.style.width=this.width_+"px",h.style.height=this.height_+"px",h},Dygraph.prototype.createMouseEventElement_=function(){return this.canvas_},Dygraph.prototype.setColors_=function(){var labels=this.getLabels(),num=labels.length-1;this.colors_=[],this.colorsMap_={};for(var sat=this.getNumericOption("colorSaturation")||1,val=this.getNumericOption("colorValue")||.5,half=Math.ceil(num/2),colors=this.getOption("colors"),visibility=this.visibility(),i=0;i=0;--setIdx)for(var points=this.layout_.points[setIdx],i=0;i=points.length)){var p1=points[rowIdx];if(__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.s(p1)){var py=p1.canvasy;if(domX>p1.canvasx&&rowIdx+10){var r=(domX-p1.canvasx)/dx;py+=r*(p2.canvasy-p1.canvasy)}}}else if(domX0){var p0=points[rowIdx-1];if(__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.s(p0)){var dx=p1.canvasx-p0.canvasx;if(dx>0){var r=(p1.canvasx-domX)/dx;py+=r*(p0.canvasy-p1.canvasy)}}}(0===setIdx||py=0){var maxCircleSize=0,labels=this.attr_("labels");for(i=1;imaxCircleSize&&(maxCircleSize=r)}var px=this.previousVerticalX_;ctx.clearRect(px-maxCircleSize-1,0,2*maxCircleSize+2,this.height_)}if(this.selPoints_.length>0){var canvasx=this.selPoints_[0].canvasx;for(ctx.save(),i=0;i=0){row!=this.lastRow_&&(changed=!0),this.lastRow_=row;for(var setIdx=0;setIdx=0&&setRow=0&&(changed=!0),this.lastRow_=-1;return this.selPoints_.length?this.lastx_=this.selPoints_[0].xval:this.lastx_=-1,void 0!==opt_seriesName&&(this.highlightSet_!==opt_seriesName&&(changed=!0),this.highlightSet_=opt_seriesName),void 0!==opt_locked&&(this.lockedSet_=opt_locked),changed&&this.updateSelection_(void 0),changed},Dygraph.prototype.mouseOut_=function(event){this.getFunctionOption("unhighlightCallback")&&this.getFunctionOption("unhighlightCallback").call(this,event),this.getBooleanOption("hideOverlayOnMouseOut")&&!this.lockedSet_&&this.clearSelection()},Dygraph.prototype.clearSelection=function(){if(this.cascadeEvents_("deselect",{}),this.lockedSet_=!1,this.fadeLevel)return void this.animateSelection_(-1);this.canvas_ctx_.clearRect(0,0,this.width_,this.height_),this.fadeLevel=0,this.selPoints_=[],this.lastx_=-1,this.lastRow_=-1,this.highlightSet_=null},Dygraph.prototype.getSelection=function(){if(!this.selPoints_||this.selPoints_.length<1)return-1;for(var setIdx=0;setIdx1&&(series=this.dataHandler_.rollingAverage(series,this.rollPeriod_,this.attributes_)),this.rolledSeries_.push(series)}this.drawGraph_();var end=new Date;this.drawingTimeMs_=end-start},Dygraph.PointType=void 0,Dygraph.stackPoints_=function(points,cumulativeYval,seriesExtremes,fillMethod){for(var lastXval=null,prevPoint=null,nextPoint=null,nextPointIdx=-1,i=0;i=idx))for(var j=idx;jseriesExtremes[1]&&(seriesExtremes[1]=stackedYval),stackedYval=1;seriesIdx--)if(this.visibility()[seriesIdx-1]){if(dateWindow){series=rolledSeries[seriesIdx];var low=dateWindow[0],high=dateWindow[1];for(firstIdx=null,lastIdx=null,sampleIdx=0;sampleIdx=low&&null===firstIdx&&(firstIdx=sampleIdx),series[sampleIdx][0]<=high&&(lastIdx=sampleIdx);null===firstIdx&&(firstIdx=0);for(var correctedFirstIdx=firstIdx,isInvalidValue=!0;isInvalidValue&&correctedFirstIdx>0;)correctedFirstIdx--,isInvalidValue=null===series[correctedFirstIdx][1];null===lastIdx&&(lastIdx=series.length-1);var correctedLastIdx=lastIdx;for(isInvalidValue=!0;isInvalidValue&&correctedLastIdx0;){var fn=this.readyFns_.pop();fn(this)}},Dygraph.prototype.computeYAxes_=function(){var axis,opts,v;for(this.axes_=[],axis=0;axis0&&(minY=0),maxY<0&&(maxY=0)),minY==1/0&&(minY=0),maxY==-1/0&&(maxY=1),span=maxY-minY,0===span&&(0!==maxY?span=Math.abs(maxY):(maxY=1,span=1));var maxAxisY=maxY,minAxisY=minY;ypadCompat&&(logscale?(maxAxisY=maxY+ypad*span,minAxisY=minY):(maxAxisY=maxY+ypad*span,minAxisY=minY-ypad*span,minAxisY<0&&minY>=0&&(minAxisY=0),maxAxisY>0&&maxY<=0&&(maxAxisY=0))),axis.extremeRange=[minAxisY,maxAxisY]}if(axis.valueRange){var y0=isNullUndefinedOrNaN(axis.valueRange[0])?axis.extremeRange[0]:axis.valueRange[0],y1=isNullUndefinedOrNaN(axis.valueRange[1])?axis.extremeRange[1]:axis.valueRange[1];axis.computedValueRange=[y0,y1]}else axis.computedValueRange=axis.extremeRange;if(!ypadCompat)if(logscale){y0=axis.computedValueRange[0],y1=axis.computedValueRange[1];var y0pct=ypad/(2*ypad-1),y1pct=(ypad-1)/(2*ypad-1);axis.computedValueRange[0]=__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.c(y0,y1,y0pct),axis.computedValueRange[1]=__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.c(y0,y1,y1pct)}else y0=axis.computedValueRange[0],y1=axis.computedValueRange[1],span=y1-y0,axis.computedValueRange[0]=y0-span*ypad,axis.computedValueRange[1]=y1+span*ypad;if(independentTicks){axis.independentTicks=independentTicks;var opts=this.optionsViewForAxis_("y"+(i?"2":"")),ticker=opts("ticker");axis.ticks=ticker(axis.computedValueRange[0],axis.computedValueRange[1],this.plotter_.area.h,opts,this),p_axis||(p_axis=axis)}}if(void 0===p_axis)throw'Configuration Error: At least one axis has to have the "independentTicks" option activated.';for(var i=0;i0&&"e"!=str[dashPos-1]&&"E"!=str[dashPos-1]||str.indexOf("/")>=0||isNaN(parseFloat(str))?isDate=!0:8==str.length&&str>"19700101"&&str<"20371231"&&(isDate=!0),this.setXAxisOptions_(isDate)},Dygraph.prototype.setXAxisOptions_=function(isDate){isDate?(this.attrs_.xValueParser=__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.v,this.attrs_.axes.x.valueFormatter=__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.w,this.attrs_.axes.x.ticker=__WEBPACK_IMPORTED_MODULE_4__dygraph_tickers__.a,this.attrs_.axes.x.axisLabelFormatter=__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.x):(this.attrs_.xValueParser=function(x){return parseFloat(x)},this.attrs_.axes.x.valueFormatter=function(x){return x},this.attrs_.axes.x.ticker=__WEBPACK_IMPORTED_MODULE_4__dygraph_tickers__.b,this.attrs_.axes.x.axisLabelFormatter=this.attrs_.axes.x.valueFormatter)},Dygraph.prototype.parseCSV_=function(data){var vals,j,ret=[],line_delimiter=__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.y(data),lines=data.split(line_delimiter||"\n"),delim=this.getStringOption("delimiter");-1==lines[0].indexOf(delim)&&lines[0].indexOf("\t")>=0&&(delim="\t");var start=0;"labels"in this.user_attrs_||(start=1,this.attrs_.labels=lines[0].split(delim),this.attributes_.reparseSeries());for(var xParser,defaultParserSet=!1,expectedCols=this.attr_("labels").length,outOfOrder=!1,i=start;i0&&fields[0]0;)shortText=String.fromCharCode(65+(num-1)%26)+shortText.toLowerCase(),num=Math.floor((num-1)/26);return shortText}(annotations.length),ann.text="";for(var k=0;k0&&row[0]0&&this.setAnnotations(annotations,!0),this.attributes_.reparseSeries()},Dygraph.prototype.cascadeDataDidUpdateEvent_=function(){this.cascadeEvents_("dataDidUpdate",{})},Dygraph.prototype.start_=function(){var data=this.file_;if("function"==typeof data&&(data=data()),__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.B(data))this.rawData_=this.parseArray_(data),this.cascadeDataDidUpdateEvent_(),this.predraw_();else if("object"==(void 0===data?"undefined":_typeof(data))&&"function"==typeof data.getColumnRange)this.parseDataTable_(data),this.cascadeDataDidUpdateEvent_(),this.predraw_();else if("string"==typeof data){var line_delimiter=__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.y(data);if(line_delimiter)this.loadedEvent_(data);else{var req;req=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");var caller=this;req.onreadystatechange=function(){4==req.readyState&&(200!==req.status&&0!==req.status||caller.loadedEvent_(req.responseText))},req.open("GET",data,!0),req.send(null)}}else console.error("Unknown data format: "+(void 0===data?"undefined":_typeof(data)))},Dygraph.prototype.updateOptions=function(input_attrs,block_redraw){void 0===block_redraw&&(block_redraw=!1);var file=input_attrs.file,attrs=Dygraph.copyUserAttrs_(input_attrs);"rollPeriod"in attrs&&(this.rollPeriod_=attrs.rollPeriod),"dateWindow"in attrs&&(this.dateWindow_=attrs.dateWindow);var requiresNewPoints=__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.E(this.attr_("labels"),attrs);__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.b(this.user_attrs_,attrs),this.attributes_.reparseSeries(),file?(this.cascadeEvents_("dataWillUpdate",{}),this.file_=file,block_redraw||this.start_()):block_redraw||(requiresNewPoints?this.predraw_():this.renderGraph_(!1))},Dygraph.copyUserAttrs_=function(attrs){var my_attrs={};for(var k in attrs)attrs.hasOwnProperty(k)&&"file"!=k&&attrs.hasOwnProperty(k)&&(my_attrs[k]=attrs[k]);return my_attrs},Dygraph.prototype.resize=function(width,height){if(!this.resize_lock){this.resize_lock=!0,null===width!=(null===height)&&(console.warn("Dygraph.resize() should be called with zero parameters or two non-NULL parameters. Pretending it was zero."),width=height=null);var old_width=this.width_,old_height=this.height_;width?(this.maindiv_.style.width=width+"px",this.maindiv_.style.height=height+"px",this.width_=width,this.height_=height):(this.width_=this.maindiv_.clientWidth,this.height_=this.maindiv_.clientHeight),old_width==this.width_&&old_height==this.height_||(this.resizeElements_(),this.predraw_()),this.resize_lock=!1}},Dygraph.prototype.adjustRoll=function(length){this.rollPeriod_=length,this.predraw_()},Dygraph.prototype.visibility=function(){for(this.getOption("visibility")||(this.attrs_.visibility=[]);this.getOption("visibility").length=x.length?console.warn("Invalid series number in setVisibility: "+i):x[i]=num[i]);else for(var i=0;i=x.length?console.warn("Invalid series number in setVisibility: "+i):x[i]=num[i]:num[i]<0||num[i]>=x.length?console.warn("Invalid series number in setVisibility: "+num[i]):x[num[i]]=value;this.predraw_()},Dygraph.prototype.size=function(){return{width:this.width_,height:this.height_}},Dygraph.prototype.setAnnotations=function(ann,suppressDraw){if(this.annotations_=ann,!this.layout_)return void console.warn("Tried to setAnnotations before dygraph was ready. Try setting them in a ready() block. See dygraphs.com/tests/annotation.html");this.layout_.setAnnotations(this.annotations_),suppressDraw||this.predraw_()},Dygraph.prototype.annotations=function(){return this.annotations_},Dygraph.prototype.getLabels=function(){var labels=this.attr_("labels");return labels?labels.slice():null},Dygraph.prototype.indexFromSetName=function(name){return this.setIndexByName_[name]},Dygraph.prototype.getRowForX=function(xVal){for(var low=0,high=this.numRows()-1;low<=high;){var idx=high+low>>1,x=this.getValue(idx,0);if(xxVal)high=idx-1;else{if(low==idx)return idx;high=idx}}return null},Dygraph.prototype.ready=function(callback){this.is_initial_draw_?this.readyFns_.push(callback):callback.call(this,this)},Dygraph.prototype.addAndTrackEvent=function(elem,type,fn){__WEBPACK_IMPORTED_MODULE_5__dygraph_utils__.F(elem,type,fn),this.registeredEvents_.push({elem:elem,type:type,fn:fn})},Dygraph.prototype.removeTrackedEvents_=function(){if(this.registeredEvents_)for(var idx=0;idxmaxY)&&(maxY=y),(null===minY||y=2,ctx=e.drawingContext;ctx.save(),stroking&&ctx.setLineDash&&ctx.setLineDash(strokePattern);var pointsOnLine=DygraphCanvasRenderer._drawSeries(e,iter,strokeWidth,pointSize,drawPoints,drawGapPoints,stepPlot,color);DygraphCanvasRenderer._drawPointsOnLine(e,pointsOnLine,drawPointCallback,color,pointSize),stroking&&ctx.setLineDash&&ctx.setLineDash([]),ctx.restore()},DygraphCanvasRenderer._drawSeries=function(e,iter,strokeWidth,pointSize,drawPoints,drawGapPoints,stepPlot,color){var isIsolated,point,prevCanvasX=null,prevCanvasY=null,nextCanvasY=null,pointsOnLine=[],first=!0,ctx=e.drawingContext;ctx.beginPath(),ctx.strokeStyle=color,ctx.lineWidth=strokeWidth;for(var arr=iter.array_,limit=iter.end_,predicate=iter.predicate_,i=iter.start_;i0;i--){var action=pendingActions[i];if(2==action[0]){var prevAction=pendingActions[i-1];prevAction[1]==action[1]&&prevAction[2]==action[2]&&pendingActions.splice(i,1)}}for(var i=0;i2&&!opt_losslessOnly){var startIdx=0;2==pendingActions[0][0]&&startIdx++;for(var minIdx=null,maxIdx=null,i=startIdx;ipendingActions[maxIdx][2]&&(maxIdx=i)}}var minAction=pendingActions[minIdx],maxAction=pendingActions[maxIdx];pendingActions.splice(startIdx,pendingActions.length-startIdx),minIdxmaxIdx?(pendingActions.push(maxAction),pendingActions.push(minAction)):pendingActions.push(minAction)}}},flushActions=function(opt_noLossyCompression){compressActions(opt_noLossyCompression);for(var i=0,len=pendingActions.length;i1,hasGapOnRight=rx-lastRoundedX>1;flushActions(hasGapOnLeft||hasGapOnRight),lastRoundedX=rx}pendingActions.push([action,x,y])};return{moveTo:function(x,y){addAction(2,x,y)},lineTo:function(x,y){addAction(1,x,y)},stroke:function(){flushActions(!0),context.stroke()},fill:function(){flushActions(!0),context.fill()},beginPath:function(){flushActions(!0),context.beginPath()},closePath:function(){flushActions(!0),context.closePath()},_count:function(){return actionCount}}},DygraphCanvasRenderer._fillPlotter=function(e){if(!e.singleSeriesName&&0===e.seriesIndex){for(var g=e.dygraph,setNames=g.getLabels().slice(1),i=setNames.length;i>=0;i--)g.visibility()[i]||setNames.splice(i,1);if(function(){for(var i=0;i=0;i--){var pt=pathBack[i];ctx.lineTo(pt[0],pt[1])}},setIdx=setCount-1;setIdx>=0;setIdx--){var ctx=e.drawingContext,setName=setNames[setIdx];if(g.getBooleanOption("fillGraph",setName)){var fillAlpha=g.getNumericOption("fillAlpha",setName),stepPlot=g.getBooleanOption("stepPlot",setName),color=colors[setIdx],axis=g.axisPropertiesForSeries(setName),axisY=1+axis.minyval*axis.yscale;axisY<0?axisY=0:axisY>1&&(axisY=1),axisY=area.h*axisY+area.y;var newYs,points=sets[setIdx],iter=__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.R(points,0,points.length,DygraphCanvasRenderer._getIteratorPredicate(g.getBooleanOption("connectSeparatedPoints",setName))),prevX=NaN,prevYs=[-1,-1],rgb=__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.t(color),err_color="rgba("+rgb.r+","+rgb.g+","+rgb.b+","+fillAlpha+")";ctx.fillStyle=err_color,ctx.beginPath();var last_x,is_first=!0;(points.length>2*g.width_||__WEBPACK_IMPORTED_MODULE_1__dygraph__.a.FORCE_FAST_PROXY)&&(ctx=DygraphCanvasRenderer._fastCanvasProxy(ctx));for(var point,pathBack=[];iter.hasNext;)if(point=iter.next(),__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.S(point.y)||stepPlot){if(stackedGraph){if(!is_first&&last_x==point.xval)continue;is_first=!1,last_x=point.xval,currBaseline=baseline[point.canvasx];var lastY;lastY=void 0===currBaseline?axisY:prevStepPlot?currBaseline[0]:currBaseline,newYs=[point.canvasy,lastY],stepPlot?-1===prevYs[0]?baseline[point.canvasx]=[point.canvasy,axisY]:baseline[point.canvasx]=[point.canvasy,prevYs[0]]:baseline[point.canvasx]=point.canvasy}else newYs=isNaN(point.canvasy)&&stepPlot?[area.y+area.h,axisY]:[point.canvasy,axisY];isNaN(prevX)?(ctx.moveTo(point.canvasx,newYs[1]),ctx.lineTo(point.canvasx,newYs[0])):(stepPlot?(ctx.lineTo(point.canvasx,prevYs[0]),ctx.lineTo(point.canvasx,newYs[0])):ctx.lineTo(point.canvasx,newYs[0]),stackedGraph&&(pathBack.push([prevX,prevYs[1]]),prevStepPlot&&currBaseline?pathBack.push([point.canvasx,currBaseline[1]]):pathBack.push([point.canvasx,newYs[1]]))),prevYs=newYs,prevX=point.canvasx}else traceBackPath(ctx,prevX,prevYs[1],pathBack),pathBack=[],prevX=NaN,null===point.y_stacked||isNaN(point.y_stacked)||(baseline[point.canvasx]=area.h*point.y_stacked+area.y);prevStepPlot=stepPlot,newYs&&point&&(traceBackPath(ctx,point.canvasx,newYs[1],pathBack),pathBack=[]),ctx.fill()}}}},__webpack_exports__.a=DygraphCanvasRenderer},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__dygraph_tickers__=__webpack_require__(4),__WEBPACK_IMPORTED_MODULE_1__dygraph_interaction_model__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_2__dygraph_canvas__=__webpack_require__(8),__WEBPACK_IMPORTED_MODULE_3__dygraph_utils__=__webpack_require__(0),DEFAULT_ATTRS={highlightCircleSize:3,highlightSeriesOpts:null,highlightSeriesBackgroundAlpha:.5,highlightSeriesBackgroundColor:"rgb(255, 255, 255)",labelsSeparateLines:!1,labelsShowZeroValues:!0,labelsKMB:!1,labelsKMG2:!1,showLabelsOnHighlight:!0,digitsAfterDecimal:2,maxNumberWidth:6,sigFigs:null,strokeWidth:1,strokeBorderWidth:0,strokeBorderColor:"white",axisTickSize:3,axisLabelFontSize:14,rightGap:5,showRoller:!1,xValueParser:void 0,delimiter:",",sigma:2,errorBars:!1,fractions:!1,wilsonInterval:!0,customBars:!1,fillGraph:!1,fillAlpha:.15,connectSeparatedPoints:!1,stackedGraph:!1,stackedGraphNaNFill:"all",hideOverlayOnMouseOut:!0,legend:"onmouseover",stepPlot:!1,xRangePad:0,yRangePad:null,drawAxesAtZero:!1,titleHeight:28,xLabelHeight:18,yLabelWidth:18,axisLineColor:"black",axisLineWidth:.3,gridLineWidth:.3,axisLabelWidth:50,gridLineColor:"rgb(128,128,128)",interactionModel:__WEBPACK_IMPORTED_MODULE_1__dygraph_interaction_model__.a.defaultModel,animatedZooms:!1,showRangeSelector:!1,rangeSelectorHeight:40,rangeSelectorPlotStrokeColor:"#808FAB",rangeSelectorPlotFillGradientColor:"white",rangeSelectorPlotFillColor:"#A7B1C4",rangeSelectorBackgroundStrokeColor:"gray",rangeSelectorBackgroundLineWidth:1,rangeSelectorPlotLineWidth:1.5,rangeSelectorForegroundStrokeColor:"black",rangeSelectorForegroundLineWidth:1,rangeSelectorAlpha:.6,showInRangeSelector:null,plotter:[__WEBPACK_IMPORTED_MODULE_2__dygraph_canvas__.a._fillPlotter,__WEBPACK_IMPORTED_MODULE_2__dygraph_canvas__.a._errorPlotter,__WEBPACK_IMPORTED_MODULE_2__dygraph_canvas__.a._linePlotter],plugins:[],axes:{x:{pixelsPerLabel:70,axisLabelWidth:60,axisLabelFormatter:__WEBPACK_IMPORTED_MODULE_3__dygraph_utils__.x,valueFormatter:__WEBPACK_IMPORTED_MODULE_3__dygraph_utils__.w,drawGrid:!0,drawAxis:!0,independentTicks:!0,ticker:__WEBPACK_IMPORTED_MODULE_0__dygraph_tickers__.a},y:{axisLabelWidth:50,pixelsPerLabel:30,valueFormatter:__WEBPACK_IMPORTED_MODULE_3__dygraph_utils__.P,axisLabelFormatter:__WEBPACK_IMPORTED_MODULE_3__dygraph_utils__.D,drawGrid:!0,drawAxis:!0,independentTicks:!0,ticker:__WEBPACK_IMPORTED_MODULE_0__dygraph_tickers__.b},y2:{axisLabelWidth:50,pixelsPerLabel:30,valueFormatter:__WEBPACK_IMPORTED_MODULE_3__dygraph_utils__.P,axisLabelFormatter:__WEBPACK_IMPORTED_MODULE_3__dygraph_utils__.D,drawAxis:!0,drawGrid:!1,independentTicks:!1,ticker:__WEBPACK_IMPORTED_MODULE_0__dygraph_tickers__.b}}};__webpack_exports__.a=DEFAULT_ATTRS},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__dygraph_utils__=__webpack_require__(0),DygraphLayout=function(dygraph){this.dygraph_=dygraph,this.points=[],this.setNames=[],this.annotations=[],this.yAxes_=null,this.xTicks_=null,this.yTicks_=null};DygraphLayout.prototype.addDataset=function(setname,set_xy){this.points.push(set_xy),this.setNames.push(setname)},DygraphLayout.prototype.getPlotArea=function(){return this.area_},DygraphLayout.prototype.computePlotArea=function(){var area={x:0,y:0};area.w=this.dygraph_.width_-area.x-this.dygraph_.getOption("rightGap"),area.h=this.dygraph_.height_;var e={chart_div:this.dygraph_.graphDiv,reserveSpaceLeft:function(px){var r={x:area.x,y:area.y,w:px,h:area.h};return area.x+=px,area.w-=px,r},reserveSpaceRight:function(px){var r={x:area.x+area.w-px,y:area.y,w:px,h:area.h};return area.w-=px,r},reserveSpaceTop:function(px){var r={x:area.x,y:area.y,w:area.w,h:px};return area.y+=px,area.h-=px,r},reserveSpaceBottom:function(px){var r={x:area.x,y:area.y+area.h-px,w:area.w,h:px};return area.h-=px,r},chartRect:function(){return{x:area.x,y:area.y,w:area.w,h:area.h}}};this.dygraph_.cascadeEvents_("layout",e),this.area_=area},DygraphLayout.prototype.setAnnotations=function(ann){this.annotations=[];for(var parse=this.dygraph_.getOption("xValueParser")||function(x){return x},i=0;i=0&&pos<1&&this.xticks.push({pos:pos,label:label,has_tick:has_tick});for(this.yticks=[],i=0;i0&&pos<=1&&this.yticks.push({axis:i,pos:pos,label:label,has_tick:has_tick})},DygraphLayout.prototype._evaluateAnnotations=function(){var i,annotations={};for(i=0;i number",description:"A function which parses x-values (i.e. the dependent series). Must return a number, even when the values are dates. In this case, millis since epoch are used. This is used primarily for parsing CSV data. *=Dygraphs is slightly more accepting in the dates which it will parse. See code for details."},stackedGraph:{default:"false",labels:["Data Line display"],type:"boolean",description:"If set, stack series on top of one another rather than drawing them independently. The first series specified in the input data will wind up on top of the chart and the last will be on bottom. NaN values are drawn as white areas without a line on top, see stackedGraphNaNFill for details."},stackedGraphNaNFill:{default:"all",labels:["Data Line display"],type:"string",description:'Controls handling of NaN values inside a stacked graph. NaN values are interpolated/extended for stacking purposes, but the actual point value remains NaN in the legend display. Valid option values are "all" (interpolate internally, repeat leftmost and rightmost value as needed), "inside" (interpolate internally only, use zero outside leftmost and rightmost value), and "none" (treat NaN as zero everywhere).'},pointSize:{default:"1",labels:["Data Line display"],type:"integer",description:'The size of the dot to draw on each point in pixels (see drawPoints). A dot is always drawn when a point is "isolated", i.e. there is a missing point on either side of it. This also controls the size of those dots.'},drawPoints:{default:"false",labels:["Data Line display"],type:"boolean",description:"Draw a small dot at each point, in addition to a line going through the point. This makes the individual data points easier to see, but can increase visual clutter in the chart. The small dot can be replaced with a custom rendering by supplying a drawPointCallback."},drawGapEdgePoints:{default:"false",labels:["Data Line display"],type:"boolean",description:"Draw points at the edges of gaps in the data. This improves visibility of small data segments or other data irregularities."},drawPointCallback:{default:"null",labels:["Data Line display"],type:"function(g, seriesName, canvasContext, cx, cy, color, pointSize)",parameters:[["g","the reference graph"],["seriesName","the name of the series"],["canvasContext","the canvas to draw on"],["cx","center x coordinate"],["cy","center y coordinate"],["color","series color"],["pointSize","the radius of the image."],["idx","the row-index of the point in the data."]],description:"Draw a custom item when drawPoints is enabled. Default is a small dot matching the series color. This method should constrain drawing to within pointSize pixels from (cx, cy). Also see drawHighlightPointCallback"},height:{default:"320",labels:["Overall display"],type:"integer",description:"Height, in pixels, of the chart. If the container div has been explicitly sized, this will be ignored."},zoomCallback:{default:"null",labels:["Callbacks"],type:"function(minDate, maxDate, yRanges)",parameters:[["minDate","milliseconds since epoch"],["maxDate","milliseconds since epoch."],["yRanges","is an array of [bottom, top] pairs, one for each y-axis."]],description:"A function to call when the zoom window is changed (either by zooming in or out). When animatedZooms is set, zoomCallback is called once at the end of the transition (it will not be called for intermediate frames)."},pointClickCallback:{snippet:"function(e, point){
  alert(point);
}",default:"null",labels:["Callbacks","Interactive Elements"],type:"function(e, point)",parameters:[["e","the event object for the click"],["point","the point that was clicked See Point properties for details"]],description:"A function to call when a data point is clicked. and the point that was clicked."},color:{default:"(see description)",labels:["Data Series Colors"],type:"string",example:"red",description:"A per-series color definition. Used in conjunction with, and overrides, the colors option."},colors:{default:"(see description)",labels:["Data Series Colors"],type:"array",example:"['red', '#00FF00']",description:'List of colors for the data series. These can be of the form "#AABBCC" or "rgb(255,100,200)" or "yellow", etc. If not specified, equally-spaced points around a color wheel are used. Overridden by the \'color\' option.'},connectSeparatedPoints:{default:"false",labels:["Data Line display"],type:"boolean",description:"Usually, when Dygraphs encounters a missing value in a data series, it interprets this as a gap and draws it as such. If, instead, the missing values represents an x-value for which only a different series has data, then you'll want to connect the dots by setting this to true. To explicitly include a gap with this option set, use a value of NaN."},highlightCallback:{default:"null",labels:["Callbacks"],type:"function(event, x, points, row, seriesName)",description:"When set, this callback gets called every time a new point is highlighted.",parameters:[["event","the JavaScript mousemove event"],["x","the x-coordinate of the highlighted points"],["points","an array of highlighted points: [ {name: 'series', yval: y-value}, … ]"],["row","integer index of the highlighted row in the data table, starting from 0"],["seriesName","name of the highlighted series, only present if highlightSeriesOpts is set."]]},drawHighlightPointCallback:{default:"null",labels:["Data Line display"],type:"function(g, seriesName, canvasContext, cx, cy, color, pointSize)",parameters:[["g","the reference graph"],["seriesName","the name of the series"],["canvasContext","the canvas to draw on"],["cx","center x coordinate"],["cy","center y coordinate"],["color","series color"],["pointSize","the radius of the image."],["idx","the row-index of the point in the data."]],description:"Draw a custom item when a point is highlighted. Default is a small dot matching the series color. This method should constrain drawing to within pointSize pixels from (cx, cy) Also see drawPointCallback"},highlightSeriesOpts:{default:"null",labels:["Interactive Elements"],type:"Object",description:"When set, the options from this object are applied to the timeseries closest to the mouse pointer for interactive highlighting. See also 'highlightCallback'. Example: highlightSeriesOpts: { strokeWidth: 3 }."},highlightSeriesBackgroundAlpha:{default:"0.5",labels:["Interactive Elements"],type:"float",description:"Fade the background while highlighting series. 1=fully visible background (disable fading), 0=hiddden background (show highlighted series only)."},highlightSeriesBackgroundColor:{default:"rgb(255, 255, 255)",labels:["Interactive Elements"],type:"string",description:"Sets the background color used to fade out the series in conjunction with 'highlightSeriesBackgroundAlpha'."},includeZero:{default:"false",labels:["Axis display"],type:"boolean",description:"Usually, dygraphs will use the range of the data plus some padding to set the range of the y-axis. If this option is set, the y-axis will always include zero, typically as the lowest value. This can be used to avoid exaggerating the variance in the data"},rollPeriod:{default:"1",labels:["Error Bars","Rolling Averages"],type:"integer >= 1",description:"Number of days over which to average data. Discussed extensively above."},unhighlightCallback:{default:"null",labels:["Callbacks"],type:"function(event)",parameters:[["event","the mouse event"]],description:"When set, this callback gets called every time the user stops highlighting any point by mousing out of the graph."},axisTickSize:{default:"3.0",labels:["Axis display"],type:"number",description:"The size of the line to display next to each tick mark on x- or y-axes."},labelsSeparateLines:{default:"false",labels:["Legend"],type:"boolean",description:"Put <br/> between lines in the label string. Often used in conjunction with labelsDiv."},valueFormatter:{default:"Depends on the type of your data.",labels:["Legend","Value display/formatting"],type:"function(num or millis, opts, seriesName, dygraph, row, col)",description:"Function to provide a custom display format for the values displayed on mouseover. This does not affect the values that appear on tick marks next to the axes. To format those, see axisLabelFormatter. This is usually set on a per-axis basis. .",parameters:[["num_or_millis","The value to be formatted. This is always a number. For date axes, it's millis since epoch. You can call new Date(millis) to get a Date object."],["opts","This is a function you can call to access various options (e.g. opts('labelsKMB')). It returns per-axis values for the option when available."],["seriesName","The name of the series from which the point came, e.g. 'X', 'Y', 'A', etc."],["dygraph","The dygraph object for which the formatting is being done"],["row","The row of the data from which this point comes. g.getValue(row, 0) will return the x-value for this point."],["col","The column of the data from which this point comes. g.getValue(row, col) will return the original y-value for this point. This can be used to get the full confidence interval for the point, or access un-rolled values for the point."]]},annotationMouseOverHandler:{default:"null",labels:["Annotations"],type:"function(annotation, point, dygraph, event)",description:"If provided, this function is called whenever the user mouses over an annotation."},annotationMouseOutHandler:{default:"null",labels:["Annotations"],type:"function(annotation, point, dygraph, event)",parameters:[["annotation","the annotation left"],["point","the point associated with the annotation"],["dygraph","the reference graph"],["event","the mouse event"]],description:"If provided, this function is called whenever the user mouses out of an annotation."},annotationClickHandler:{default:"null",labels:["Annotations"],type:"function(annotation, point, dygraph, event)",parameters:[["annotation","the annotation left"],["point","the point associated with the annotation"],["dygraph","the reference graph"],["event","the mouse event"]],description:"If provided, this function is called whenever the user clicks on an annotation."},annotationDblClickHandler:{default:"null",labels:["Annotations"],type:"function(annotation, point, dygraph, event)",parameters:[["annotation","the annotation left"],["point","the point associated with the annotation"],["dygraph","the reference graph"],["event","the mouse event"]],description:"If provided, this function is called whenever the user double-clicks on an annotation."},drawCallback:{default:"null",labels:["Callbacks"],type:"function(dygraph, is_initial)",parameters:[["dygraph","The graph being drawn"],["is_initial","True if this is the initial draw, false for subsequent draws."]],description:"When set, this callback gets called every time the dygraph is drawn. This includes the initial draw, after zooming and repeatedly while panning."},labelsKMG2:{default:"false",labels:["Value display/formatting"],type:"boolean",description:"Show k/M/G for kilo/Mega/Giga on y-axis. This is different than labelsKMB in that it uses base 2, not 10."},delimiter:{default:",",labels:["CSV parsing"],type:"string",description:"The delimiter to look for when separating fields of a CSV file. Setting this to a tab is not usually necessary, since tab-delimited data is auto-detected."},axisLabelFontSize:{default:"14",labels:["Axis display"],type:"integer",description:"Size of the font (in pixels) to use in the axis labels, both x- and y-axis."},underlayCallback:{default:"null",labels:["Callbacks"],type:"function(context, area, dygraph)",parameters:[["context","the canvas drawing context on which to draw"],["area","An object with {x,y,w,h} properties describing the drawing area."],["dygraph","the reference graph"]],description:"When set, this callback gets called before the chart is drawn. It details on how to use this."},width:{default:"480",labels:["Overall display"],type:"integer",description:"Width, in pixels, of the chart. If the container div has been explicitly sized, this will be ignored."},pixelRatio:{default:"(devicePixelRatio / context.backingStoreRatio)",labels:["Overall display"],type:"float",description:"Overrides the pixel ratio scaling factor for the canvas's 2d context. Ordinarily, this is set to the devicePixelRatio / (context.backingStoreRatio || 1), so on mobile devices, where the devicePixelRatio can be somewhere around 3, performance can be improved by overriding this value to something less precise, like 1, at the expense of resolution."},interactionModel:{default:"...",labels:["Interactive Elements"],type:"Object",description:"TODO(konigsberg): document this"},ticker:{default:"Dygraph.dateTicker or Dygraph.numericTicks",labels:["Axis display"],type:"function(min, max, pixels, opts, dygraph, vals) -> [{v: ..., label: ...}, ...]",parameters:[["min",""],["max",""],["pixels",""],["opts",""],["dygraph","the reference graph"],["vals",""]],description:"This lets you specify an arbitrary function to generate tick marks on an axis. The tick marks are an array of (value, label) pairs. The built-in functions go to great lengths to choose good tick marks so, if you set this option, you'll most likely want to call one of them and modify the result. See dygraph-tickers.js for an extensive discussion. This is set on a per-axis basis."},xAxisHeight:{default:"(null)",labels:["Axis display"],type:"integer",description:"Height, in pixels, of the x-axis. If not set explicitly, this is computed based on axisLabelFontSize and axisTickSize."},showLabelsOnHighlight:{default:"true",labels:["Interactive Elements","Legend"],type:"boolean",description:"Whether to show the legend upon mouseover."},axis:{default:"(none)",labels:["Axis display"],type:"string",description:"Set to either 'y1' or 'y2' to assign a series to a y-axis (primary or secondary). Must be set per-series."},pixelsPerLabel:{default:"70 (x-axis) or 30 (y-axes)",labels:["Axis display","Grid"],type:"integer",description:"Number of pixels to require between each x- and y-label. Larger values will yield a sparser axis with fewer ticks. This is set on a per-axis basis."},labelsDiv:{default:"null",labels:["Legend"],type:"DOM element or string",example:"document.getElementById('foo')or'foo'",description:"Show data labels in an external div, rather than on the graph. This value can either be a div element or a div id."},fractions:{default:"false",labels:["CSV parsing","Error Bars"],type:"boolean",description:'When set, attempt to parse each cell in the CSV file as "a/b", where a and b are integers. The ratio will be plotted. This allows computation of Wilson confidence intervals (see below).'},logscale:{default:"false",labels:["Axis display"],type:"boolean",description:"When set for the y-axis or x-axis, the graph shows that axis in log scale. Any values less than or equal to zero are not displayed. Showing log scale with ranges that go below zero will result in an unviewable graph.\n\n Not compatible with showZero. connectSeparatedPoints is ignored. This is ignored for date-based x-axes."},strokeWidth:{default:"1.0",labels:["Data Line display"],type:"float",example:"0.5, 2.0",description:"The width of the lines connecting data points. This can be used to increase the contrast or some graphs."},strokePattern:{default:"null",labels:["Data Line display"],type:"array",example:"[10, 2, 5, 2]",description:"A custom pattern array where the even index is a draw and odd is a space in pixels. If null then it draws a solid line. The array should have a even length as any odd lengthed array could be expressed as a smaller even length array. This is used to create dashed lines."},strokeBorderWidth:{default:"null",labels:["Data Line display"],type:"float",example:"1.0",description:"Draw a border around graph lines to make crossing lines more easily distinguishable. Useful for graphs with many lines."},strokeBorderColor:{default:"white",labels:["Data Line display"],type:"string",example:"red, #ccffdd",description:"Color for the line border used if strokeBorderWidth is set."},wilsonInterval:{default:"true",labels:["Error Bars"],type:"boolean",description:'Use in conjunction with the "fractions" option. Instead of plotting +/- N standard deviations, dygraphs will compute a Wilson confidence interval and plot that. This has more reasonable behavior for ratios close to 0 or 1.'},fillGraph:{default:"false",labels:["Data Line display"],type:"boolean",description:"Should the area underneath the graph be filled? This option is not compatible with error bars. This may be set on a per-series basis."},highlightCircleSize:{default:"3",labels:["Interactive Elements"],type:"integer",description:"The size in pixels of the dot drawn over highlighted points."},gridLineColor:{default:"rgb(128,128,128)",labels:["Grid"],type:"red, blue",description:"The color of the gridlines. This may be set on a per-axis basis to define each axis' grid separately."},gridLinePattern:{default:"null",labels:["Grid"],type:"array",example:"[10, 2, 5, 2]",description:"A custom pattern array where the even index is a draw and odd is a space in pixels. If null then it draws a solid line. The array should have a even length as any odd lengthed array could be expressed as a smaller even length array. This is used to create dashed gridlines."},visibility:{default:"[true, true, ...]",labels:["Data Line display"],type:"Array of booleans",description:"Which series should initially be visible? Once the Dygraph has been constructed, you can access and modify the visibility of each series using the visibility and setVisibility methods."},valueRange:{default:"Full range of the input is shown",labels:["Axis display"],type:"Array of two numbers",example:"[10, 110]",description:"Explicitly set the vertical range of the graph to [low, high]. This may be set on a per-axis basis to define each y-axis separately. If either limit is unspecified, it will be calculated automatically (e.g. [null, 30] to automatically calculate just the lower bound)"},colorSaturation:{default:"1.0",labels:["Data Series Colors"],type:"float (0.0 - 1.0)",description:"If colors is not specified, saturation of the automatically-generated data series colors."},hideOverlayOnMouseOut:{default:"true",labels:["Interactive Elements","Legend"],type:"boolean",description:"Whether to hide the legend when the mouse leaves the chart area."},legend:{default:"onmouseover",labels:["Legend"],type:"string",description:'When to display the legend. By default, it only appears when a user mouses over the chart. Set it to "always" to always display a legend of some sort. When set to "follow", legend follows highlighted points.'},legendFormatter:{default:"null",labels:["Legend"],type:"function(data): string",params:[["data",'An object containing information about the selection (or lack of a selection). This includes formatted values and series information. See here for sample values.']],description:'Set this to supply a custom formatter for the legend. See this comment and the legendFormatter demo for usage.'},labelsShowZeroValues:{default:"true",labels:["Legend"],type:"boolean",description:"Show zero value labels in the labelsDiv."},stepPlot:{default:"false",labels:["Data Line display"],type:"boolean",description:"When set, display the graph as a step plot instead of a line plot. This option may either be set for the whole graph or for single series."},labelsUTC:{default:"false",labels:["Value display/formatting","Axis display"],type:"boolean",description:"Show date/time labels according to UTC (instead of local time)."},labelsKMB:{default:"false",labels:["Value display/formatting"],type:"boolean",description:"Show K/M/B for thousands/millions/billions on y-axis."},rightGap:{default:"5",labels:["Overall display"],type:"integer",description:"Number of pixels to leave blank at the right edge of the Dygraph. This makes it easier to highlight the right-most data point."},drawAxesAtZero:{default:"false",labels:["Axis display"],type:"boolean",description:"When set, draw the X axis at the Y=0 position and the Y axis at the X=0 position if those positions are inside the graph's visible area. Otherwise, draw the axes at the bottom or left graph edge as usual."},xRangePad:{default:"0",labels:["Axis display"],type:"float",description:"Add the specified amount of extra space (in pixels) around the X-axis value range to ensure points at the edges remain visible."},yRangePad:{default:"null",labels:["Axis display"],type:"float",description:"If set, add the specified amount of extra space (in pixels) around the Y-axis value range to ensure points at the edges remain visible. If unset, use the traditional Y padding algorithm."},axisLabelFormatter:{default:"Depends on the data type",labels:["Axis display"],type:"function(number or Date, granularity, opts, dygraph)",parameters:[["number or date","Either a number (for a numeric axis) or a Date object (for a date axis)"],["granularity","specifies how fine-grained the axis is. For date axes, this is a reference to the time granularity enumeration, defined in dygraph-tickers.js, e.g. Dygraph.WEEKLY."],["opts","a function which provides access to various options on the dygraph, e.g. opts('labelsKMB')."],["dygraph","the referenced graph"]],description:"Function to call to format the tick values that appear along an axis. This is usually set on a per-axis basis."},clickCallback:{snippet:"function(e, date_millis){
  alert(new Date(date_millis));
}",default:"null",labels:["Callbacks"],type:"function(e, x, points)",parameters:[["e","The event object for the click"],["x","The x value that was clicked (for dates, this is milliseconds since epoch)"],["points","The closest points along that date. See Point properties for details."]],description:"A function to call when the canvas is clicked."},labels:{default:'["X", "Y1", "Y2", ...]*',labels:["Legend"],type:"array",description:"A name for each data series, including the independent (X) series. For CSV files and DataTable objections, this is determined by context. For raw data, this must be specified. If it is not, default values are supplied and a warning is logged."},dateWindow:{default:"Full range of the input is shown",labels:["Axis display"],type:"Array of two numbers",example:"[
  Date.parse('2006-01-01'),
  (new Date()).valueOf()
]",description:"Initially zoom in on a section of the graph. Is of the form [earliest, latest], where earliest/latest are milliseconds since epoch. If the data for the x-axis is numeric, the values in dateWindow must also be numbers."},showRoller:{default:"false",labels:["Interactive Elements","Rolling Averages"],type:"boolean",description:"If the rolling average period text box should be shown."},sigma:{default:"2.0",labels:["Error Bars"],type:"float",description:"When errorBars is set, shade this many standard deviations above/below each point."},customBars:{default:"false",labels:["CSV parsing","Error Bars"],type:"boolean",description:'When set, parse each CSV cell as "low;middle;high". Error bars will be drawn for each point between low and high, with the series itself going through middle.'},colorValue:{default:"1.0",labels:["Data Series Colors"],type:"float (0.0 - 1.0)",description:"If colors is not specified, value of the data series colors, as in hue/saturation/value. (0.0-1.0, default 0.5)"},errorBars:{default:"false",labels:["CSV parsing","Error Bars"],type:"boolean",description:"Does the data contain standard deviations? Setting this to true alters the input format (see above)."},displayAnnotations:{default:"false",labels:["Annotations"],type:"boolean",description:"Only applies when Dygraphs is used as a GViz chart. Causes string columns following a data series to be interpreted as annotations on points in that series. This is the same format used by Google's AnnotatedTimeLine chart."},panEdgeFraction:{default:"null",labels:["Axis display","Interactive Elements"],type:"float",description:"A value representing the farthest a graph may be panned, in percent of the display. For example, a value of 0.1 means that the graph can only be panned 10% passed the edges of the displayed values. null means no bounds."},title:{labels:["Chart labels"],type:"string",default:"null",description:"Text to display above the chart. You can supply any HTML for this value, not just text. If you wish to style it using CSS, use the 'dygraph-label' or 'dygraph-title' classes."},titleHeight:{default:"18",labels:["Chart labels"],type:"integer",description:"Height of the chart title, in pixels. This also controls the default font size of the title. If you style the title on your own, this controls how much space is set aside above the chart for the title's div."},xlabel:{labels:["Chart labels"],type:"string",default:"null",description:"Text to display below the chart's x-axis. You can supply any HTML for this value, not just text. If you wish to style it using CSS, use the 'dygraph-label' or 'dygraph-xlabel' classes."},xLabelHeight:{labels:["Chart labels"],type:"integer",default:"18",description:"Height of the x-axis label, in pixels. This also controls the default font size of the x-axis label. If you style the label on your own, this controls how much space is set aside below the chart for the x-axis label's div."},ylabel:{labels:["Chart labels"],type:"string",default:"null",description:"Text to display to the left of the chart's y-axis. You can supply any HTML for this value, not just text. If you wish to style it using CSS, use the 'dygraph-label' or 'dygraph-ylabel' classes. The text will be rotated 90 degrees by default, so CSS rules may behave in unintuitive ways. No additional space is set aside for a y-axis label. If you need more space, increase the width of the y-axis tick labels using the yAxisLabelWidth option. If you need a wider div for the y-axis label, either style it that way with CSS (but remember that it's rotated, so width is controlled by the 'height' property) or set the yLabelWidth option."},y2label:{labels:["Chart labels"],type:"string",default:"null",description:"Text to display to the right of the chart's secondary y-axis. This label is only displayed if a secondary y-axis is present. See this test for an example of how to do this. The comments for the 'ylabel' option generally apply here as well. This label gets a 'dygraph-y2label' instead of a 'dygraph-ylabel' class."},yLabelWidth:{labels:["Chart labels"],type:"integer",default:"18",description:"Width of the div which contains the y-axis label. Since the y-axis label appears rotated 90 degrees, this actually affects the height of its div."},drawGrid:{default:"true for x and y, false for y2",labels:["Grid"],type:"boolean",description:"Whether to display gridlines in the chart. This may be set on a per-axis basis to define the visibility of each axis' grid separately."},independentTicks:{default:"true for y, false for y2",labels:["Axis display","Grid"],type:"boolean",description:"Only valid for y and y2, has no effect on x: This option defines whether the y axes should align their ticks or if they should be independent. Possible combinations: 1.) y=true, y2=false (default): y is the primary axis and the y2 ticks are aligned to the the ones of y. (only 1 grid) 2.) y=false, y2=true: y2 is the primary axis and the y ticks are aligned to the the ones of y2. (only 1 grid) 3.) y=true, y2=true: Both axis are independent and have their own ticks. (2 grids) 4.) y=false, y2=false: Invalid configuration causes an error."},drawAxis:{default:"true for x and y, false for y2",labels:["Axis display"],type:"boolean",description:"Whether to draw the specified axis. This may be set on a per-axis basis to define the visibility of each axis separately. Setting this to false also prevents axis ticks from being drawn and reclaims the space for the chart grid/lines."},gridLineWidth:{default:"0.3",labels:["Grid"],type:"float",description:"Thickness (in pixels) of the gridlines drawn under the chart. The vertical/horizontal gridlines can be turned off entirely by using the drawGrid option. This may be set on a per-axis basis to define each axis' grid separately."},axisLineWidth:{default:"0.3",labels:["Axis display"],type:"float",description:"Thickness (in pixels) of the x- and y-axis lines."},axisLineColor:{default:"black",labels:["Axis display"],type:"string",description:"Color of the x- and y-axis lines. Accepts any value which the HTML canvas strokeStyle attribute understands, e.g. 'black' or 'rgb(0, 100, 255)'."},fillAlpha:{default:"0.15",labels:["Error Bars","Data Series Colors"],type:"float (0.0 - 1.0)",description:"Error bars (or custom bars) for each series are drawn in the same color as the series, but with partial transparency. This sets the transparency. A value of 0.0 means that the error bars will not be drawn, whereas a value of 1.0 means that the error bars will be as dark as the line for the series itself. This can be used to produce chart lines whose thickness varies at each point."},axisLabelWidth:{default:"50 (y-axis), 60 (x-axis)",labels:["Axis display","Chart labels"],type:"integer",description:"Width (in pixels) of the containing divs for x- and y-axis labels. For the y-axis, this also controls the width of the y-axis. Note that for the x-axis, this is independent from pixelsPerLabel, which controls the spacing between labels."},sigFigs:{default:"null",labels:["Value display/formatting"],type:"integer",description:"By default, dygraphs displays numbers with a fixed number of digits after the decimal point. If you'd prefer to have a fixed number of significant figures, set this option to that number of sig figs. A value of 2, for instance, would cause 1 to be display as 1.0 and 1234 to be displayed as 1.23e+3."},digitsAfterDecimal:{default:"2",labels:["Value display/formatting"],type:"integer",description:"Unless it's run in scientific mode (see the sigFigs option), dygraphs displays numbers with digitsAfterDecimal digits after the decimal point. Trailing zeros are not displayed, so with a value of 2 you'll get '0', '0.1', '0.12', '123.45' but not '123.456' (it will be rounded to '123.46'). Numbers with absolute value less than 0.1^digitsAfterDecimal (i.e. those which would show up as '0.00') will be displayed in scientific notation."},maxNumberWidth:{default:"6",labels:["Value display/formatting"],type:"integer",description:"When displaying numbers in normal (not scientific) mode, large numbers will be displayed with many trailing zeros (e.g. 100000000 instead of 1e9). This can lead to unwieldy y-axis labels. If there are more than maxNumberWidth digits to the left of the decimal in a number, dygraphs will switch to scientific notation, even when not operating in scientific mode. If you'd like to see all those digits, set this to something large, like 20 or 30."},file:{default:"(set when constructed)",labels:["Data"],type:"string (URL of CSV or CSV), GViz DataTable or 2D Array",description:"Sets the data being displayed in the chart. This can only be set when calling updateOptions; it cannot be set from the constructor. For a full description of valid data formats, see the Data Formats page."},timingName:{default:"null",labels:["Debugging","Deprecated"],type:"string",description:"Set this option to log timing information. The value of the option will be logged along with the timimg, so that you can distinguish multiple dygraphs on the same page."},showRangeSelector:{default:"false",labels:["Range Selector"],type:"boolean",description:"Show or hide the range selector widget."},rangeSelectorHeight:{default:"40",labels:["Range Selector"],type:"integer",description:"Height, in pixels, of the range selector widget. This option can only be specified at Dygraph creation time."},rangeSelectorPlotStrokeColor:{default:"#808FAB",labels:["Range Selector"],type:"string",description:'The range selector mini plot stroke color. This can be of the form "#AABBCC" or "rgb(255,100,200)" or "yellow". You can also specify null or "" to turn off stroke.'},rangeSelectorPlotFillColor:{default:"#A7B1C4",labels:["Range Selector"],type:"string",description:'The range selector mini plot fill color. This can be of the form "#AABBCC" or "rgb(255,100,200)" or "yellow". You can also specify null or "" to turn off fill.'},rangeSelectorPlotFillGradientColor:{default:"white",labels:["Range Selector"],type:"string",description:'The top color for the range selector mini plot fill color gradient. This can be of the form "#AABBCC" or "rgb(255,100,200)" or "rgba(255,100,200,42)" or "yellow". You can also specify null or "" to disable the gradient and fill with one single color.'},rangeSelectorBackgroundStrokeColor:{default:"gray",labels:["Range Selector"],type:"string",description:'The color of the lines below and on both sides of the range selector mini plot. This can be of the form "#AABBCC" or "rgb(255,100,200)" or "yellow".'},rangeSelectorBackgroundLineWidth:{default:"1",labels:["Range Selector"],type:"float",description:"The width of the lines below and on both sides of the range selector mini plot."},rangeSelectorPlotLineWidth:{default:"1.5",labels:["Range Selector"],type:"float",description:"The width of the range selector mini plot line."},rangeSelectorForegroundStrokeColor:{default:"black",labels:["Range Selector"],type:"string",description:'The color of the lines in the interactive layer of the range selector. This can be of the form "#AABBCC" or "rgb(255,100,200)" or "yellow".'},rangeSelectorForegroundLineWidth:{default:"1",labels:["Range Selector"],type:"float",description:"The width the lines in the interactive layer of the range selector."},rangeSelectorAlpha:{default:"0.6",labels:["Range Selector"],type:"float (0.0 - 1.0)",description:"The transparency of the veil that is drawn over the unselected portions of the range selector mini plot. A value of 0 represents full transparency and the unselected portions of the mini plot will appear as normal. A value of 1 represents full opacity and the unselected portions of the mini plot will be hidden."},showInRangeSelector:{default:"null",labels:["Range Selector"],type:"boolean",description:"Mark this series for inclusion in the range selector. The mini plot curve will be an average of all such series. If this is not specified for any series, the default behavior is to average all the visible series. Setting it for one series will result in that series being charted alone in the range selector. Once it's set for a single series, it needs to be set for all series which should be included (regardless of visibility)."},animatedZooms:{default:"false",labels:["Interactive Elements"],type:"boolean",description:"Set this option to animate the transition between zoom windows. Applies to programmatic and interactive zooms. Note that if you also set a drawCallback, it will be called several times on each zoom. If you set a zoomCallback, it will only be called after the animation is complete."},plotter:{default:"[DygraphCanvasRenderer.Plotters.fillPlotter, DygraphCanvasRenderer.Plotters.errorPlotter, DygraphCanvasRenderer.Plotters.linePlotter]",labels:["Data Line display"],type:"array or function",description:"A function (or array of functions) which plot each data series on the chart. TODO(danvk): more details! May be set per-series."},axes:{default:"null",labels:["Configuration"],type:"Object",description:"Defines per-axis options. Valid keys are 'x', 'y' and 'y2'. Only some options may be set on a per-axis basis. If an option may be set in this way, it will be noted on this page. See also documentation on per-series and per-axis options."},series:{default:"null",labels:["Series"],type:"Object",description:"Defines per-series options. Its keys match the y-axis label names, and the values are dictionaries themselves that contain options specific to that series."},plugins:{default:"[]",labels:["Configuration"],type:"Array",description:"Defines per-graph plugins. Useful for per-graph customization"},dataHandler:{default:"(depends on data)",labels:["Data"],type:"Dygraph.DataHandler",description:"Custom DataHandler. This is an advanced customization. See http://bit.ly/151E7Aq."}};var i,warn=function(msg){window.console&&window.console.warn(msg)},flds=["type","default","description"],valid_cats=["Annotations","Axis display","Chart labels","CSV parsing","Callbacks","Data","Data Line display","Data Series Colors","Error Bars","Grid","Interactive Elements","Range Selector","Legend","Overall display","Rolling Averages","Series","Value display/formatting","Zooming","Debugging","Configuration","Deprecated"],cats={};for(i=0;i=0){var prev=originalData[i-rollPeriod];null===prev[1]||isNaN(prev[1])||(low-=prev[2][0],mid-=prev[1],high-=prev[2][1],count-=1)}rollingData[i]=count?[originalData[i][0],1*mid/count,[1*low/count,1*high/count]]:[originalData[i][0],null,[null,null]]}return rollingData},__webpack_exports__.a=CustomBarsHandler},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__bars__=__webpack_require__(1),ErrorBarsHandler=function(){};ErrorBarsHandler.prototype=new __WEBPACK_IMPORTED_MODULE_0__bars__.a,ErrorBarsHandler.prototype.extractSeries=function(rawData,i,options){for(var x,y,variance,point,series=[],sigma=options.get("sigma"),logScale=options.get("logscale"),j=0;j=0&&(num-=originalData[i-rollPeriod][2][2],den-=originalData[i-rollPeriod][2][3]);var date=originalData[i][0],value=den?num/den:0;if(wilsonInterval)if(den){var p=value<0?0:value,n=den,pm=sigma*Math.sqrt(p*(1-p)/n+sigma*sigma/(4*n*n)),denom=1+sigma*sigma/den;low=(p+sigma*sigma/(2*den)-pm)/denom,high=(p+sigma*sigma/(2*den)+pm)/denom,rollingData[i]=[date,100*p,[100*low,100*high]]}else rollingData[i]=[date,0,[0,0]];else stddev=den?sigma*Math.sqrt(value*(1-value)/den):1,rollingData[i]=[date,100*value,[100*(value-stddev),100*(value+stddev)]]}return rollingData},__webpack_exports__.a=FractionsBarsHandler},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_1__default__=(__webpack_require__(2),__webpack_require__(7)),DefaultFractionHandler=function(){};DefaultFractionHandler.prototype=new __WEBPACK_IMPORTED_MODULE_1__default__.a,DefaultFractionHandler.prototype.extractSeries=function(rawData,i,options){for(var x,y,point,num,den,value,series=[],logScale=options.get("logscale"),j=0;j=0&&(num-=originalData[i-rollPeriod][2][0],den-=originalData[i-rollPeriod][2][1]);var date=originalData[i][0],value=den?num/den:0;rollingData[i]=[date,100*value]}return rollingData},__webpack_exports__.a=DefaultFractionHandler},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__dygraph__=__webpack_require__(5),GVizChart=function(container){this.container=container};GVizChart.prototype.draw=function(data,options){this.container.innerHTML="",void 0!==this.date_graph&&this.date_graph.destroy(),this.date_graph=new __WEBPACK_IMPORTED_MODULE_0__dygraph__.a(this.container,data,options)},GVizChart.prototype.setSelection=function(selection_array){var row=!1;selection_array.length&&(row=selection_array[0].row),this.date_graph.setSelection(row)},GVizChart.prototype.getSelection=function(){var selection=[],row=this.date_graph.getSelection();if(row<0)return selection;for(var points=this.date_graph.layout_.points,setIdx=0;setIdx1&&__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.a(this.yAxes_[1].options,axis_opts.y2||{}),__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.a(this.xAxis_.options,axis_opts.x||{}),"undefined"!=typeof process&&"production"!="development"&&this.validateOptions_()}},DygraphOptions.prototype.get=function(name){var result=this.getGlobalUser_(name);return null!==result?result:this.getGlobalDefault_(name)},DygraphOptions.prototype.getGlobalUser_=function(name){return this.user_.hasOwnProperty(name)?this.user_[name]:null},DygraphOptions.prototype.getGlobalDefault_=function(name){return this.global_.hasOwnProperty(name)?this.global_[name]:__WEBPACK_IMPORTED_MODULE_1__dygraph_default_attrs__.a.hasOwnProperty(name)?__WEBPACK_IMPORTED_MODULE_1__dygraph_default_attrs__.a[name]:null},DygraphOptions.prototype.getForAxis=function(name,axis){var axisIdx,axisString;if("number"==typeof axis)axisIdx=axis,axisString=0===axisIdx?"y":"y2";else{if("y1"==axis&&(axis="y"),"y"==axis)axisIdx=0;else if("y2"==axis)axisIdx=1;else{if("x"!=axis)throw"Unknown axis "+axis;axisIdx=-1}axisString=axis}var userAxis=-1==axisIdx?this.xAxis_:this.yAxes_[axisIdx];if(userAxis){var axisOptions=userAxis.options;if(axisOptions.hasOwnProperty(name))return axisOptions[name]}if("x"!==axis||"logscale"!==name){var result=this.getGlobalUser_(name);if(null!==result)return result}var defaultAxisOptions=__WEBPACK_IMPORTED_MODULE_1__dygraph_default_attrs__.a.axes[axisString];return defaultAxisOptions.hasOwnProperty(name)?defaultAxisOptions[name]:this.getGlobalDefault_(name)},DygraphOptions.prototype.getForSeries=function(name,series){if(series===this.dygraph_.getHighlightSeries()&&this.highlightSeries_.hasOwnProperty(name))return this.highlightSeries_[name];if(!this.series_.hasOwnProperty(series))throw"Unknown series: "+series;var seriesObj=this.series_[series],seriesOptions=seriesObj.options;return seriesOptions.hasOwnProperty(name)?seriesOptions[name]:this.getForAxis(name,seriesObj.yAxis)},DygraphOptions.prototype.numAxes=function(){return this.yAxes_.length},DygraphOptions.prototype.axisForSeries=function(series){return this.series_[series].yAxis},DygraphOptions.prototype.axisOptions=function(yAxis){return this.yAxes_[yAxis].options},DygraphOptions.prototype.seriesForAxis=function(yAxis){return this.yAxes_[yAxis].series},DygraphOptions.prototype.seriesNames=function(){return this.labels_},"undefined"!=typeof process&&"production"!="development"){DygraphOptions.prototype.validateOptions_=function(){if(void 0===__WEBPACK_IMPORTED_MODULE_2__dygraph_options_reference__.a)throw"Called validateOptions_ in prod build.";for(var that=this,optionsDicts=[this.xAxis_.options,this.yAxes_[0].options,this.yAxes_[1]&&this.yAxes_[1].options,this.global_,this.user_,this.highlightSeries_],names=this.seriesNames(),i=0;i=0?console.warn("Use new-style per-series options (saw "+optionName+" as top-level options key). See http://bit.ly/1tceaJs"):console.warn("Unknown option "+optionName+" (full list of options at dygraphs.com/options.html"),"invalid option "+optionName}},DygraphOptions.resetWarnings_=function(){WARNINGS={}}}__webpack_exports__.a=DygraphOptions},function(module,__webpack_exports__,__webpack_require__){"use strict";/** + * @license + * Copyright 2012 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ +var annotations=function(){this.annotations_=[]};annotations.prototype.toString=function(){return"Annotations Plugin"},annotations.prototype.activate=function(g){return{clearChart:this.clearChart,didDrawChart:this.didDrawChart}},annotations.prototype.detachLabels=function(){for(var i=0;iarea.x+area.w||p.canvasyarea.y+area.h)){var a=p.annotation,tick_height=6;a.hasOwnProperty("tickHeight")&&(tick_height=a.tickHeight);var div=document.createElement("div");div.style.fontSize=g.getOption("axisLabelFontSize")+"px";var className="dygraph-annotation";a.hasOwnProperty("icon")||(className+=" dygraphDefaultAnnotation dygraph-default-annotation"),a.hasOwnProperty("cssClass")&&(className+=" "+a.cssClass),div.className=className;var width=a.hasOwnProperty("width")?a.width:16,height=a.hasOwnProperty("height")?a.height:16;if(a.hasOwnProperty("icon")){var img=document.createElement("img");img.src=a.icon,img.width=width,img.height=height,div.appendChild(img)}else p.annotation.hasOwnProperty("shortText")&&div.appendChild(document.createTextNode(p.annotation.shortText));var left=p.canvasx-width/2;div.style.left=left+"px";var divTop=0;if(a.attachAtBottom){var y=area.y+area.h-height-tick_height;xToUsedHeight[left]?y-=xToUsedHeight[left]:xToUsedHeight[left]=0,xToUsedHeight[left]+=tick_height+height,divTop=y}else divTop=p.canvasy-height-tick_height;div.style.top=divTop+"px",div.style.width=width+"px",div.style.height=height+"px",div.title=p.annotation.text,div.style.color=g.colorsMap_[p.name],div.style.borderColor=g.colorsMap_[p.name],a.div=div,g.addAndTrackEvent(div,"click",bindEvt("clickHandler","annotationClickHandler",p)),g.addAndTrackEvent(div,"mouseover",bindEvt("mouseOverHandler","annotationMouseOverHandler",p)),g.addAndTrackEvent(div,"mouseout",bindEvt("mouseOutHandler","annotationMouseOutHandler",p)),g.addAndTrackEvent(div,"dblclick",bindEvt("dblClickHandler","annotationDblClickHandler",p)),containerDiv.appendChild(div),this.annotations_.push(div);var ctx=e.drawingContext;if(ctx.save(),ctx.strokeStyle=a.hasOwnProperty("tickColor")?a.tickColor:g.colorsMap_[p.name],ctx.lineWidth=a.hasOwnProperty("tickWidth")?a.tickWidth:g.getOption("strokeWidth"),ctx.beginPath(),a.attachAtBottom){var y=divTop+height;ctx.moveTo(p.canvasx,y),ctx.lineTo(p.canvasx,y+tick_height)}else ctx.moveTo(p.canvasx,p.canvasy),ctx.lineTo(p.canvasx,p.canvasy-2-tick_height);ctx.closePath(),ctx.stroke(),ctx.restore()}}},annotations.prototype.destroy=function(){this.detachLabels()},__webpack_exports__.a=annotations},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__dygraph_utils__=__webpack_require__(0),axes=function(){this.xlabels_=[],this.ylabels_=[]};axes.prototype.toString=function(){return"Axes Plugin"},axes.prototype.activate=function(g){return{layout:this.layout,clearChart:this.clearChart,willDrawChart:this.willDrawChart}},axes.prototype.layout=function(e){var g=e.dygraph;if(g.getOptionForAxis("drawAxis","y")){var w=g.getOptionForAxis("axisLabelWidth","y")+2*g.getOptionForAxis("axisTickSize","y");e.reserveSpaceLeft(w)}if(g.getOptionForAxis("drawAxis","x")){var h;h=g.getOption("xAxisHeight")?g.getOption("xAxisHeight"):g.getOptionForAxis("axisLabelFontSize","x")+2*g.getOptionForAxis("axisTickSize","x"),e.reserveSpaceBottom(h)}if(2==g.numAxes()){if(g.getOptionForAxis("drawAxis","y2")){var w=g.getOptionForAxis("axisLabelWidth","y2")+2*g.getOptionForAxis("axisTickSize","y2");e.reserveSpaceRight(w)}}else g.numAxes()>2&&g.error("Only two y-axes are supported at this time. (Trying to use "+g.numAxes()+")")},axes.prototype.detachLabels=function(){function removeArray(ary){for(var i=0;i0){var num_axes=g.numAxes(),getOptions=[makeOptionGetter("y"),makeOptionGetter("y2")];layout.yticks.forEach(function(tick){if(void 0!==tick.label){x=area.x;var prec_axis="y1",getAxisOption=getOptions[0];1==tick.axis&&(x=area.x+area.w,-1,prec_axis="y2",getAxisOption=getOptions[1]);var fontSize=getAxisOption("axisLabelFontSize");y=area.y+tick.pos*area.h,label=makeDiv(tick.label,"y",2==num_axes?prec_axis:null);var top=y-fontSize/2;top<0&&(top=0),top+fontSize+3>canvasHeight?label.style.bottom="0":label.style.top=top+"px",0===tick.axis?(label.style.left=area.x-getAxisOption("axisLabelWidth")-getAxisOption("axisTickSize")+"px",label.style.textAlign="right"):1==tick.axis&&(label.style.left=area.x+area.w+getAxisOption("axisTickSize")+"px",label.style.textAlign="left"),label.style.width=getAxisOption("axisLabelWidth")+"px",containerDiv.appendChild(label),_this.ylabels_.push(label)}});var bottomTick=this.ylabels_[0],fontSize=g.getOptionForAxis("axisLabelFontSize","y");parseInt(bottomTick.style.top,10)+fontSize>canvasHeight-fontSize&&(bottomTick.style.top=parseInt(bottomTick.style.top,10)-fontSize/2+"px")}var axisX;if(g.getOption("drawAxesAtZero")){var r=g.toPercentXCoord(0);(r>1||r<0||isNaN(r))&&(r=0),axisX=halfUp(area.x+r*area.w)}else axisX=halfUp(area.x);context.strokeStyle=g.getOptionForAxis("axisLineColor","y"),context.lineWidth=g.getOptionForAxis("axisLineWidth","y"),context.beginPath(),context.moveTo(axisX,halfDown(area.y)),context.lineTo(axisX,halfDown(area.y+area.h)),context.closePath(),context.stroke(),2==g.numAxes()&&(context.strokeStyle=g.getOptionForAxis("axisLineColor","y2"),context.lineWidth=g.getOptionForAxis("axisLineWidth","y2"),context.beginPath(),context.moveTo(halfDown(area.x+area.w),halfDown(area.y)),context.lineTo(halfDown(area.x+area.w),halfDown(area.y+area.h)),context.closePath(),context.stroke())}if(g.getOptionForAxis("drawAxis","x")){if(layout.xticks){var getAxisOption=makeOptionGetter("x");layout.xticks.forEach(function(tick){if(void 0!==tick.label){x=area.x+tick.pos*area.w,y=area.y+area.h,label=makeDiv(tick.label,"x"),label.style.textAlign="center",label.style.top=y+getAxisOption("axisTickSize")+"px";var left=x-getAxisOption("axisLabelWidth")/2;left+getAxisOption("axisLabelWidth")>canvasWidth&&(left=canvasWidth-getAxisOption("axisLabelWidth"),label.style.textAlign="right"),left<0&&(left=0,label.style.textAlign="left"),label.style.left=left+"px",label.style.width=getAxisOption("axisLabelWidth")+"px",containerDiv.appendChild(label),_this.xlabels_.push(label)}})}context.strokeStyle=g.getOptionForAxis("axisLineColor","x"),context.lineWidth=g.getOptionForAxis("axisLineWidth","x"),context.beginPath();var axisY;if(g.getOption("drawAxesAtZero")){var r=g.toPercentYCoord(0,0);(r>1||r<0)&&(r=1),axisY=halfDown(area.y+r*area.h)}else axisY=halfDown(area.y+area.h);context.moveTo(halfUp(area.x),axisY),context.lineTo(halfUp(area.x+area.w),axisY),context.closePath(),context.stroke()}context.restore()}},__webpack_exports__.a=axes},function(module,__webpack_exports__,__webpack_require__){"use strict";/** + * @license + * Copyright 2012 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ +var chart_labels=function(){this.title_div_=null,this.xlabel_div_=null,this.ylabel_div_=null,this.y2label_div_=null};chart_labels.prototype.toString=function(){return"ChartLabels Plugin"},chart_labels.prototype.activate=function(g){return{layout:this.layout,didDrawChart:this.didDrawChart}};var createDivInRect=function(r){var div=document.createElement("div");return div.style.position="absolute",div.style.left=r.x+"px",div.style.top=r.y+"px",div.style.width=r.w+"px",div.style.height=r.h+"px",div};chart_labels.prototype.detachLabels_=function(){for(var els=[this.title_div_,this.xlabel_div_,this.ylabel_div_,this.y2label_div_],i=0;i=2);ticks=layout.yticks,ctx.save(),ticks.forEach(function(tick){if(tick.has_tick){var axis=tick.axis;drawGrid[axis]&&(ctx.save(),stroking[axis]&&ctx.setLineDash&&ctx.setLineDash(strokePattern[axis]),ctx.strokeStyle=strokeStyles[axis],ctx.lineWidth=lineWidths[axis],x=halfUp(area.x),y=halfDown(area.y+tick.pos*area.h),ctx.beginPath(),ctx.moveTo(x,y),ctx.lineTo(x+area.w,y),ctx.stroke(),ctx.restore())}}),ctx.restore()}if(g.getOptionForAxis("drawGrid","x")){ticks=layout.xticks,ctx.save();var strokePattern=g.getOptionForAxis("gridLinePattern","x"),stroking=strokePattern&&strokePattern.length>=2;stroking&&ctx.setLineDash&&ctx.setLineDash(strokePattern),ctx.strokeStyle=g.getOptionForAxis("gridLineColor","x"),ctx.lineWidth=g.getOptionForAxis("gridLineWidth","x"),ticks.forEach(function(tick){tick.has_tick&&(x=halfUp(area.x+tick.pos*area.w),y=halfDown(area.y+area.h),ctx.beginPath(),ctx.moveTo(x,y),ctx.lineTo(x,area.y),ctx.closePath(),ctx.stroke())}),stroking&&ctx.setLineDash&&ctx.setLineDash([]),ctx.restore()}},grid.prototype.destroy=function(){},__webpack_exports__.a=grid},function(module,__webpack_exports__,__webpack_require__){"use strict";function generateLegendDashHTML(strokePattern,color,oneEmWidth){if(!strokePattern||strokePattern.length<=1)return'
';var i,j,paddingLeft,marginRight,loop,strokePixelLength=0,segmentLoop=0,normalizedPattern=[];for(i=0;i<=strokePattern.length;i++)strokePixelLength+=strokePattern[i%strokePattern.length];if((loop=Math.floor(oneEmWidth/(strokePixelLength-strokePattern[0])))>1){for(i=0;i';return dash}var __WEBPACK_IMPORTED_MODULE_0__dygraph_utils__=__webpack_require__(0),Legend=function(){this.legend_div_=null,this.is_generated_div_=!1};Legend.prototype.toString=function(){return"Legend Plugin"},Legend.prototype.activate=function(g){var div,userLabelsDiv=g.getOption("labelsDiv");return userLabelsDiv&&null!==userLabelsDiv?div="string"==typeof userLabelsDiv||userLabelsDiv instanceof String?document.getElementById(userLabelsDiv):userLabelsDiv:(div=document.createElement("div"),div.className="dygraph-legend",g.graphDiv.appendChild(div),this.is_generated_div_=!0),this.legend_div_=div,this.one_em_width_=10,{select:this.select,deselect:this.deselect,predraw:this.predraw,didDrawChart:this.didDrawChart}};var calculateEmWidthInDiv=function(div){var sizeSpan=document.createElement("span");sizeSpan.setAttribute("style","margin: 0; padding: 0 0 0 1em; border: 0;"),div.appendChild(sizeSpan);var oneEmWidth=sizeSpan.offsetWidth;return div.removeChild(sizeSpan),oneEmWidth},escapeHTML=function(str){return str.replace(/&/g,"&").replace(/"/g,""").replace(//g,">")};Legend.prototype.select=function(e){var xValue=e.selectedX,points=e.selectedPoints,row=e.selectedRow,legendMode=e.dygraph.getOption("legend");if("never"===legendMode)return void(this.legend_div_.style.display="none");if("follow"===legendMode){var area=e.dygraph.plotter_.area,labelsDivWidth=this.legend_div_.offsetWidth,yAxisLabelWidth=e.dygraph.getOptionForAxis("axisLabelWidth","y"),leftLegend=points[0].x*area.w+50,topLegend=points[0].y*area.h-50;leftLegend+labelsDivWidth+1>area.w&&(leftLegend=leftLegend-100-labelsDivWidth-(yAxisLabelWidth-area.x)),e.dygraph.graphDiv.appendChild(this.legend_div_),this.legend_div_.style.left=yAxisLabelWidth+leftLegend+"px",this.legend_div_.style.top=topLegend+"px"}var html=Legend.generateLegendHTML(e.dygraph,xValue,points,this.one_em_width_,row);this.legend_div_.innerHTML=html,this.legend_div_.style.display=""},Legend.prototype.deselect=function(e){"always"!==e.dygraph.getOption("legend")&&(this.legend_div_.style.display="none");var oneEmWidth=calculateEmWidthInDiv(this.legend_div_);this.one_em_width_=oneEmWidth;var html=Legend.generateLegendHTML(e.dygraph,void 0,void 0,oneEmWidth,null);this.legend_div_.innerHTML=html},Legend.prototype.didDrawChart=function(e){this.deselect(e)},Legend.prototype.predraw=function(e){if(this.is_generated_div_){e.dygraph.graphDiv.appendChild(this.legend_div_);var area=e.dygraph.getArea(),labelsDivWidth=this.legend_div_.offsetWidth;this.legend_div_.style.left=area.x+area.w-labelsDivWidth-1+"px",this.legend_div_.style.top=area.y+"px"}},Legend.prototype.destroy=function(){this.legend_div_=null},Legend.generateLegendHTML=function(g,x,sel_points,oneEmWidth,row){var data={dygraph:g,x:x,series:[]},labelToSeries={},labels=g.getLabels();if(labels)for(var i=1;i":" "),html+=""+series.dashHTML+" "+series.labelHTML+"")}return html}html=data.xHTML+":";for(var i=0;i");html+=" "+series.labelHTML+": "+series.yHTML+""}}return html},__webpack_exports__.a=Legend},function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0__dygraph_utils__=__webpack_require__(0),__WEBPACK_IMPORTED_MODULE_1__dygraph_interaction_model__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_2__iframe_tarp__=__webpack_require__(12),rangeSelector=function(){this.hasTouchInterface_="undefined"!=typeof TouchEvent,this.isMobileDevice_=/mobile|android/gi.test(navigator.appVersion),this.interfaceCreated_=!1};rangeSelector.prototype.toString=function(){return"RangeSelector Plugin"},rangeSelector.prototype.activate=function(dygraph){return this.dygraph_=dygraph,this.getOption_("showRangeSelector")&&this.createInterface_(),{layout:this.reserveSpace_,predraw:this.renderStaticLayer_,didDrawChart:this.renderInteractiveLayer_}},rangeSelector.prototype.destroy=function(){this.bgcanvas_=null,this.fgcanvas_=null,this.leftZoomHandle_=null,this.rightZoomHandle_=null},rangeSelector.prototype.getOption_=function(name,opt_series){return this.dygraph_.getOption(name,opt_series)},rangeSelector.prototype.setDefaultOption_=function(name,value){this.dygraph_.attrs_[name]=value},rangeSelector.prototype.createInterface_=function(){this.createCanvases_(),this.createZoomHandles_(),this.initInteraction_(),this.getOption_("animatedZooms")&&(console.warn("Animated zooms and range selector are not compatible; disabling animatedZooms."),this.dygraph_.updateOptions({animatedZooms:!1},!0)),this.interfaceCreated_=!0,this.addToGraph_()},rangeSelector.prototype.addToGraph_=function(){var graphDiv=this.graphDiv_=this.dygraph_.graphDiv;graphDiv.appendChild(this.bgcanvas_),graphDiv.appendChild(this.fgcanvas_),graphDiv.appendChild(this.leftZoomHandle_),graphDiv.appendChild(this.rightZoomHandle_)},rangeSelector.prototype.removeFromGraph_=function(){var graphDiv=this.graphDiv_;graphDiv.removeChild(this.bgcanvas_),graphDiv.removeChild(this.fgcanvas_),graphDiv.removeChild(this.leftZoomHandle_),graphDiv.removeChild(this.rightZoomHandle_),this.graphDiv_=null},rangeSelector.prototype.reserveSpace_=function(e){this.getOption_("showRangeSelector")&&e.reserveSpaceBottom(this.getOption_("rangeSelectorHeight")+4)},rangeSelector.prototype.renderStaticLayer_=function(){this.updateVisibility_()&&(this.resize_(),this.drawStaticLayer_())},rangeSelector.prototype.renderInteractiveLayer_=function(){this.updateVisibility_()&&!this.isChangingRange_&&(this.placeZoomHandles_(),this.drawInteractiveLayer_())},rangeSelector.prototype.updateVisibility_=function(){var enabled=this.getOption_("showRangeSelector");if(enabled)this.interfaceCreated_?this.graphDiv_&&this.graphDiv_.parentNode||this.addToGraph_():this.createInterface_();else if(this.graphDiv_){this.removeFromGraph_();var dygraph=this.dygraph_;setTimeout(function(){dygraph.width_=0,dygraph.resize()},1)}return enabled},rangeSelector.prototype.resize_=function(){function setElementRect(canvas,context,rect,pixelRatioOption){var canvasScale=pixelRatioOption||__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.h(context);canvas.style.top=rect.y+"px",canvas.style.left=rect.x+"px",canvas.width=rect.w*canvasScale,canvas.height=rect.h*canvasScale,canvas.style.width=rect.w+"px",canvas.style.height=rect.h+"px",1!=canvasScale&&context.scale(canvasScale,canvasScale)}var plotArea=this.dygraph_.layout_.getPlotArea(),xAxisLabelHeight=0;this.dygraph_.getOptionForAxis("drawAxis","x")&&(xAxisLabelHeight=this.getOption_("xAxisHeight")||this.getOption_("axisLabelFontSize")+2*this.getOption_("axisTickSize")),this.canvasRect_={x:plotArea.x,y:plotArea.y+plotArea.h+xAxisLabelHeight+4,w:plotArea.w,h:this.getOption_("rangeSelectorHeight")};var pixelRatioOption=this.dygraph_.getNumericOption("pixelRatio");setElementRect(this.bgcanvas_,this.bgcanvas_ctx_,this.canvasRect_,pixelRatioOption),setElementRect(this.fgcanvas_,this.fgcanvas_ctx_,this.canvasRect_,pixelRatioOption)},rangeSelector.prototype.createCanvases_=function(){this.bgcanvas_=__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.e(),this.bgcanvas_.className="dygraph-rangesel-bgcanvas",this.bgcanvas_.style.position="absolute",this.bgcanvas_.style.zIndex=9,this.bgcanvas_ctx_=__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.f(this.bgcanvas_),this.fgcanvas_=__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.e(),this.fgcanvas_.className="dygraph-rangesel-fgcanvas",this.fgcanvas_.style.position="absolute",this.fgcanvas_.style.zIndex=9,this.fgcanvas_.style.cursor="default",this.fgcanvas_ctx_=__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.f(this.fgcanvas_)},rangeSelector.prototype.createZoomHandles_=function(){var img=new Image;img.className="dygraph-rangesel-zoomhandle",img.style.position="absolute",img.style.zIndex=10,img.style.visibility="hidden",img.style.cursor="col-resize",img.width=9,img.height=16,img.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAQCAYAAADESFVDAAAAAXNSR0IArs4c6QAAAAZiS0dEANAAzwDP4Z7KegAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAAd0SU1FB9sHGw0cMqdt1UwAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAaElEQVQoz+3SsRFAQBCF4Z9WJM8KCDVwownl6YXsTmCUsyKGkZzcl7zkz3YLkypgAnreFmDEpHkIwVOMfpdi9CEEN2nGpFdwD03yEqDtOgCaun7sqSTDH32I1pQA2Pb9sZecAxc5r3IAb21d6878xsAAAAAASUVORK5CYII=",this.isMobileDevice_&&(img.width*=2,img.height*=2),this.leftZoomHandle_=img,this.rightZoomHandle_=img.cloneNode(!1)},rangeSelector.prototype.initInteraction_=function(){var toXDataWindow,onZoomStart,onZoom,_onZoomEnd,doZoom,isMouseInPanZone,onPanStart,onPan,_onPanEnd,doPan,onCanvasHover,onZoomHandleTouchEvent,onCanvasTouchEvent,addTouchEvents,self=this,topElem=document,clientXLast=0,handle=null,isZooming=!1,isPanning=!1,dynamic=!this.isMobileDevice_,tarp=new __WEBPACK_IMPORTED_MODULE_2__iframe_tarp__.a;toXDataWindow=function(zoomHandleStatus){var xDataLimits=self.dygraph_.xAxisExtremes(),fact=(xDataLimits[1]-xDataLimits[0])/self.canvasRect_.w;return[xDataLimits[0]+(zoomHandleStatus.leftHandlePos-self.canvasRect_.x)*fact,xDataLimits[0]+(zoomHandleStatus.rightHandlePos-self.canvasRect_.x)*fact]},onZoomStart=function(e){return __WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.O(e),isZooming=!0,clientXLast=e.clientX,handle=e.target?e.target:e.srcElement,"mousedown"!==e.type&&"dragstart"!==e.type||(__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.F(topElem,"mousemove",onZoom),__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.F(topElem,"mouseup",_onZoomEnd)),self.fgcanvas_.style.cursor="col-resize",tarp.cover(),!0},onZoom=function(e){if(!isZooming)return!1;__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.O(e);var delX=e.clientX-clientXLast;if(Math.abs(delX)<4)return!0;clientXLast=e.clientX;var newPos,zoomHandleStatus=self.getZoomHandleStatus_();handle==self.leftZoomHandle_?(newPos=zoomHandleStatus.leftHandlePos+delX,newPos=Math.min(newPos,zoomHandleStatus.rightHandlePos-handle.width-3),newPos=Math.max(newPos,self.canvasRect_.x)):(newPos=zoomHandleStatus.rightHandlePos+delX,newPos=Math.min(newPos,self.canvasRect_.x+self.canvasRect_.w),newPos=Math.max(newPos,zoomHandleStatus.leftHandlePos+handle.width+3));var halfHandleWidth=handle.width/2;return handle.style.left=newPos-halfHandleWidth+"px",self.drawInteractiveLayer_(),dynamic&&doZoom(),!0},_onZoomEnd=function(e){return!!isZooming&&(isZooming=!1,tarp.uncover(),__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.i(topElem,"mousemove",onZoom),__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.i(topElem,"mouseup",_onZoomEnd),self.fgcanvas_.style.cursor="default",dynamic||doZoom(),!0)},doZoom=function(){try{var zoomHandleStatus=self.getZoomHandleStatus_();if(self.isChangingRange_=!0,zoomHandleStatus.isZoomed){var xDataWindow=toXDataWindow(zoomHandleStatus);self.dygraph_.doZoomXDates_(xDataWindow[0],xDataWindow[1])}else self.dygraph_.resetZoom()}finally{self.isChangingRange_=!1}},isMouseInPanZone=function(e){var rect=self.leftZoomHandle_.getBoundingClientRect(),leftHandleClientX=rect.left+rect.width/2;rect=self.rightZoomHandle_.getBoundingClientRect();var rightHandleClientX=rect.left+rect.width/2;return e.clientX>leftHandleClientX&&e.clientX=self.canvasRect_.x+self.canvasRect_.w?(rightHandlePos=self.canvasRect_.x+self.canvasRect_.w,leftHandlePos=rightHandlePos-rangeSize):(leftHandlePos+=delX,rightHandlePos+=delX);var halfHandleWidth=self.leftZoomHandle_.width/2;return self.leftZoomHandle_.style.left=leftHandlePos-halfHandleWidth+"px",self.rightZoomHandle_.style.left=rightHandlePos-halfHandleWidth+"px",self.drawInteractiveLayer_(),dynamic&&doPan(),!0},_onPanEnd=function(e){return!!isPanning&&(isPanning=!1,__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.i(topElem,"mousemove",onPan),__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.i(topElem,"mouseup",_onPanEnd),dynamic||doPan(),!0)},doPan=function(){try{self.isChangingRange_=!0,self.dygraph_.dateWindow_=toXDataWindow(self.getZoomHandleStatus_()),self.dygraph_.drawGraph_(!1)}finally{self.isChangingRange_=!1}},onCanvasHover=function(e){if(!isZooming&&!isPanning){var cursor=isMouseInPanZone(e)?"move":"default";cursor!=self.fgcanvas_.style.cursor&&(self.fgcanvas_.style.cursor=cursor)}},onZoomHandleTouchEvent=function(e){"touchstart"==e.type&&1==e.targetTouches.length?onZoomStart(e.targetTouches[0])&&__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.O(e):"touchmove"==e.type&&1==e.targetTouches.length?onZoom(e.targetTouches[0])&&__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.O(e):_onZoomEnd(e)},onCanvasTouchEvent=function(e){"touchstart"==e.type&&1==e.targetTouches.length?onPanStart(e.targetTouches[0])&&__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.O(e):"touchmove"==e.type&&1==e.targetTouches.length?onPan(e.targetTouches[0])&&__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.O(e):_onPanEnd(e)},addTouchEvents=function(elem,fn){for(var types=["touchstart","touchend","touchmove","touchcancel"],i=0;i1&&(series=dataHandler.rollingAverage(series,g.rollPeriod(),options)),rolledSeries.push(series)}var combinedSeries=[];for(i=0;i0)&&(yMin=Math.min(yMin,yVal),yMax=Math.max(yMax,yVal))}if(logscale)for(yMax=__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.d(yMax),yMax+=.25*yMax,yMin=__WEBPACK_IMPORTED_MODULE_0__dygraph_utils__.d(yMin),i=0;ithis.canvasRect_.x||rightHandlePos+10&&oldVal.length>0&&val[0].length!==oldVal[0].length&&(this.waitingForUpdate=!0),this.waitingForUpdate||this.$data._graph.updateOptions({file:val})}},graphOptions:{handler:function(val,oldVal){console.debug("graphOptions update, was waiting : ",this.waitingForUpdate),this.waitingForUpdate?(this.updateGraph(),this.waitingForUpdate=!1):this.$data._graph.updateOptions(val)}}}}},function(module,exports){module.exports=function(rawScriptExports,compiledTemplate,scopeId,cssModules){var esModule,scriptExports=rawScriptExports=rawScriptExports||{},type=typeof rawScriptExports.default;"object"!==type&&"function"!==type||(esModule=rawScriptExports,scriptExports=rawScriptExports.default);var options="function"==typeof scriptExports?scriptExports.options:scriptExports;if(compiledTemplate&&(options.render=compiledTemplate.render,options.staticRenderFns=compiledTemplate.staticRenderFns),scopeId&&(options._scopeId=scopeId),cssModules){var computed=options.computed||(options.computed={});Object.keys(cssModules).forEach(function(key){var module=cssModules[key];computed[key]=function(){return module}})}return{esModule:esModule,exports:scriptExports,options:options}}}]); +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js"), __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) + +/***/ }), + +/***/ "./node_modules/vue-dygraphs/index.js": +/*!********************************************!*\ + !*** ./node_modules/vue-dygraphs/index.js ***! + \********************************************/ +/*! no static exports found */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _dist_vue_dygraphs_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dist/vue-dygraphs.common */ "./node_modules/vue-dygraphs/dist/vue-dygraphs.common.js"); +/* harmony import */ var _dist_vue_dygraphs_common__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_dist_vue_dygraphs_common__WEBPACK_IMPORTED_MODULE_0__); +/* harmony reexport (default from non-harmony) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _dist_vue_dygraphs_common__WEBPACK_IMPORTED_MODULE_0___default.a; }); +/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _dist_vue_dygraphs_common__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _dist_vue_dygraphs_common__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); + + + + /***/ }), /***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/ExampleComponent.vue?vue&type=template&id=299e239e&": @@ -74761,6 +74817,7 @@ module.exports = function(module) { __webpack_require__.r(__webpack_exports__); /* harmony import */ var vuejs_thermometer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuejs-thermometer */ "./node_modules/vuejs-thermometer/dist/VueThermometer.common.js"); /* harmony import */ var vuejs_thermometer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vuejs_thermometer__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var vue_dygraphs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-dygraphs */ "./node_modules/vue-dygraphs/index.js"); /** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when @@ -74788,7 +74845,9 @@ Vue.component('example-component', __webpack_require__(/*! ./components/ExampleC */ -Vue.use(vuejs_thermometer__WEBPACK_IMPORTED_MODULE_0___default.a); //(function () { +Vue.use(vuejs_thermometer__WEBPACK_IMPORTED_MODULE_0___default.a); + +Vue.use(vue_dygraphs__WEBPACK_IMPORTED_MODULE_1__["default"]); //(function () { var app = new Vue({ el: '#app', @@ -74799,7 +74858,36 @@ var app = new Vue({ humidity: null, pressure: null, voltage: null, - time: null + time: null, + temp_options: { + legend: 'always', + title: 'Teplotný graf', + xlabel: 'Dátum', + labels: ['Dátum', 'Teplota'], + ylabel: 'Stupeň', + fillGraph: true + }, + hum_options: { + legend: 'always', + title: 'Vlhkosť graf', + xlabel: 'Dátum', + labels: ['Dátum', 'Vlhkosť'], + ylabel: 'Percent', + fillGraph: true + }, + p_options: { + legend: 'always', + title: 'Tlak graf', + xlabel: 'Dátum', + labels: ['Dátum', 'Tlak'], + ylabel: 'Tlak', + fillGraph: true + }, + series: { + "temperature": [], + "humidity": [], + "pressure": [] + } }, mounted: function mounted() { console.log('MOUNTED'); @@ -74815,6 +74903,7 @@ var app = new Vue({ axios.get('/data', { params: {} }).then(function (response) { + console.log("GET DATA"); console.log(response.data.temperature); app.temperature = response.data.temperature; app.humidity = response.data.humidity; @@ -74824,6 +74913,25 @@ var app = new Vue({ })["catch"](function (error) { console.log(error); }); + var vts = ["temperature", "humidity", "pressure"]; + + for (var t in vts) { + console.log("t=", vts[t]); + axios.get('/data/get', { + params: { + type: vts[t] + } + }).then(function (response) { + console.log("GET DATA"); + console.log(response.config.params.type); + var data = response.data.map(function (x) { + return [moment(x[0]).toDate(), x[1]]; + }); + app.series[response.config.params.type] = data; + })["catch"](function (error) { + console.log(error); + }); + } } } }); // })(); diff --git a/resources/js/app.js b/resources/js/app.js index 93dd770..88f835a 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -29,7 +29,10 @@ Vue.component('example-component', require('./components/ExampleComponent.vue'). */ import VueThermometer from 'vuejs-thermometer' -Vue.use(VueThermometer) +Vue.use(VueThermometer); + +import VueDygraphs from 'vue-dygraphs'; +Vue.use(VueDygraphs); //(function () { var app = new Vue({ @@ -41,7 +44,32 @@ Vue.use(VueThermometer) humidity: null, pressure: null, voltage: null, - time: null + time: null, + temp_options: { + legend: 'always', + title: 'Teplotný graf', + xlabel: 'Dátum', + labels: ['Dátum','Teplota'], + ylabel: 'Stupeň', + fillGraph: true + }, + hum_options: { + legend: 'always', + title: 'Vlhkosť graf', + xlabel: 'Dátum', + labels: ['Dátum','Vlhkosť'], + ylabel: 'Percent', + fillGraph: true + }, + p_options: { + legend: 'always', + title: 'Tlak graf', + xlabel: 'Dátum', + labels: ['Dátum','Tlak'], + ylabel: 'Tlak', + fillGraph: true + }, + series: { "temperature" : [], "humidity" : [], "pressure": [] }, }, mounted: function () { console.log('MOUNTED'); @@ -74,6 +102,24 @@ Vue.use(VueThermometer) console.log(error); }); + let vts = ["temperature","humidity","pressure"]; + for (var t in vts) { + console.log("t=",vts[t]); + axios.get('/data/get', { + params: { + type: vts[t], + } + }) + .then(function (response) { + console.log("GET DATA"); + console.log(response.config.params.type); + let data = response.data.map( x => [moment(x[0]).toDate(),x[1]] ); + app.series[response.config.params.type] = data; + }) + .catch(function (error) { + console.log(error); + }); + } }, } diff --git a/resources/sass/app.scss b/resources/sass/app.scss index 3193ffa..f50ca83 100644 --- a/resources/sass/app.scss +++ b/resources/sass/app.scss @@ -6,3 +6,6 @@ // Bootstrap @import '~bootstrap/scss/bootstrap'; + +// dyGraphs +@import '~dygraphs/dist/dygraph'; diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 4e74f43..3744854 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -16,12 +16,10 @@ color: #636b6f; font-family: 'Nunito', sans-serif; font-weight: 200; - height: 100vh; margin: 0; } .full-height { - height: 100vh; } .flex-center { @@ -42,6 +40,7 @@ .content { text-align: center; + width: 90%; } .title { @@ -99,9 +98,14 @@
  • Tlak: @{{pressure}} khPa
  • Napätie: @{{voltage}} V
  • Čas: @{{time}}
  • + + + + + diff --git a/routes/web.php b/routes/web.php index f770a16..0d2a70e 100644 --- a/routes/web.php +++ b/routes/web.php @@ -16,4 +16,5 @@ Route::get('/', function () { }); Route::get('/data',"MeasurementController@index"); +Route::get('/data/get',"MeasurementController@get"); diff --git a/yarn.lock b/yarn.lock index 16ab3c4..132b7a7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2544,6 +2544,11 @@ duplexify@^3.4.2, duplexify@^3.6.0: readable-stream "^2.0.0" stream-shift "^1.0.0" +dygraphs@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/dygraphs/-/dygraphs-2.1.0.tgz#2fbfd2c803ead02307df3faf8d4dd3ef55cb2075" + integrity sha1-L7/SyAPq0CMH3z+vjU3T71XLIHU= + ee-first@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" @@ -6733,6 +6738,13 @@ vm-browserify@^1.0.1: resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0" integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ== +vue-dygraphs@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/vue-dygraphs/-/vue-dygraphs-0.1.2.tgz#a812bd4156242bfc5539ce84e74b836176a30f67" + integrity sha512-kC+3amRRf9GIMN1wpM0eIsmq2v7zzLYwaVjqKUgs3HDJQR9MCQkhqW64KDy1eXf4YhuGczL6YVKtHKDciX4UQw== + dependencies: + dygraphs "^2.1.0" + vue-hot-reload-api@^2.3.0: version "2.3.4" resolved "https://registry.yarnpkg.com/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz#532955cc1eb208a3d990b3a9f9a70574657e08f2"