$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1425168000000,7.56459],[1425254400000,7.56459],[1425340800000,7.27014],[1425427200000,6.70456],[1425513600000,6.38443],[1425600000000,6.15571],[1425686400000,6.12236],[1425772800000,6.12236],[1425859200000,6.12236],[1425945600000,6.12236],[1426032000000,5.73201],[1426118400000,5.59455],[1426204800000,5.51185],[1426291200000,5.54522],[1426377600000,5.54522],[1426464000000,5.54522],[1426550400000,5.54073],[1426636800000,5.6893],[1426723200000,5.98573],[1426809600000,5.97573],[1426896000000,5.99705],[1426982400000,5.99705],[1427068800000,5.99705],[1427155200000,6.04436],[1427241600000,6.16564],[1427328000000,6.27141],[1427414400000,6.31838],[1427500800000,6.32948],[1427587200000,6.32948],[1427673600000,6.32948],[1427760000000,6.21048]], 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: [[1425168000000, 7.564590],[1425168000000, 7.564590],[1425254400000, 7.564590],[1425340800000, 7.270138],[1425427200000, 6.704558],[1425513600000, 6.384432],[1425600000000, 6.155713],[1425686400000, 6.122361],[1425772800000, 6.122361],[1425859200000, 6.122361],[1425945600000, 6.122361],[1426032000000, 5.732008],[1426118400000, 5.594552],[1426204800000, 5.511845],[1426291200000, 5.545218],[1426377600000, 5.545218],[1426464000000, 5.545218],[1426550400000, 5.540732],[1426636800000, 5.689304],[1426723200000, 5.985730],[1426809600000, 5.975731],[1426896000000, 5.997049],[1426982400000, 5.997049],[1427068800000, 5.997049],[1427155200000, 6.044365],[1427241600000, 6.165642],[1427328000000, 6.271410],[1427414400000, 6.318378],[1427500800000, 6.329476],[1427587200000, 6.329476],[1427673600000, 6.329476],[1427760000000, 6.210482]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });