$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс HUF, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс HUF', data: [[1112313600000,0.0276932],[1112400000000,0.027677],[1112486400000,0.027677],[1112572800000,0.027677],[1112659200000,0.0274988],[1112745600000,0.0273341],[1112832000000,0.0274386],[1112918400000,0.0276643],[1113004800000,0.0274663],[1113091200000,0.0274663],[1113177600000,0.0274663],[1113264000000,0.0277969],[1113350400000,0.0278069],[1113436800000,0.0276158],[1113523200000,0.0272945],[1113609600000,0.0271903],[1113696000000,0.0271903],[1113782400000,0.0271903],[1113868800000,0.0272418],[1113955200000,0.0269366],[1114041600000,0.0265469],[1114128000000,0.0265685],[1114214400000,0.0265057],[1114300800000,0.0265057],[1114387200000,0.0265057],[1114473600000,0.0261934],[1114560000000,0.0263026],[1114646400000,0.0261486],[1114732800000,0.025852],[1114819200000,0.025913]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1112313600000, 0.027693],[1112313600000, 0.027693],[1112400000000, 0.027677],[1112486400000, 0.027677],[1112572800000, 0.027677],[1112659200000, 0.027499],[1112745600000, 0.027334],[1112832000000, 0.027439],[1112918400000, 0.027664],[1113004800000, 0.027466],[1113091200000, 0.027466],[1113177600000, 0.027466],[1113264000000, 0.027797],[1113350400000, 0.027807],[1113436800000, 0.027616],[1113523200000, 0.027294],[1113609600000, 0.027190],[1113696000000, 0.027190],[1113782400000, 0.027190],[1113868800000, 0.027242],[1113955200000, 0.026937],[1114041600000, 0.026547],[1114128000000, 0.026568],[1114214400000, 0.026506],[1114300800000, 0.026506],[1114387200000, 0.026506],[1114473600000, 0.026193],[1114560000000, 0.026303],[1114646400000, 0.026149],[1114732800000, 0.025852],[1114819200000, 0.025913]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });