$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1438387200000,2.57397],[1438473600000,2.57397],[1438560000000,2.57397],[1438646400000,2.64239],[1438732800000,2.64699],[1438819200000,2.6091],[1438905600000,2.5909],[1438992000000,2.5522],[1439078400000,2.5522],[1439164800000,2.5522],[1439251200000,2.5819],[1439337600000,2.60101],[1439424000000,2.6284],[1439510400000,2.61933],[1439596800000,2.65997],[1439683200000,2.65997],[1439769600000,2.65997],[1439856000000,2.66866],[1439942400000,2.66819],[1440028800000,2.65742],[1440115200000,2.66851],[1440201600000,2.68758],[1440288000000,2.68758],[1440374400000,2.68758],[1440460800000,null],[1440547200000,2.77259],[1440633600000,2.57099],[1440720000000,2.55828],[1440806400000,2.55586],[1440892800000,2.55586],[1440979200000,2.55586]], 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: [[1438387200000, 2.573973],[1438387200000, 2.573973],[1438473600000, 2.573973],[1438560000000, 2.573973],[1438646400000, 2.642388],[1438732800000, 2.646994],[1438819200000, 2.609097],[1438905600000, 2.590897],[1438992000000, 2.552200],[1439078400000, 2.552200],[1439164800000, 2.552200],[1439251200000, 2.581896],[1439337600000, 2.601007],[1439424000000, 2.628405],[1439510400000, 2.619328],[1439596800000, 2.659971],[1439683200000, 2.659971],[1439769600000, 2.659971],[1439856000000, 2.668655],[1439942400000, 2.668192],[1440028800000, 2.657424],[1440115200000, 2.668509],[1440201600000, 2.687582],[1440288000000, 2.687582],[1440374400000, 2.687582],[1440547200000, 2.772594],[1440633600000, 2.570994],[1440720000000, 2.558275],[1440806400000, 2.555862],[1440892800000, 2.555862],[1440979200000, 2.555862]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });