$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1414800000000,2.19147],[1414886400000,2.19147],[1414972800000,2.19147],[1415059200000,2.17875],[1415145600000,2.17399],[1415232000000,2.2693],[1415318400000,2.34013],[1415404800000,2.4344],[1415491200000,2.4344],[1415577600000,2.4344],[1415664000000,2.46644],[1415750400000,2.64725],[1415836800000,2.62998],[1415923200000,2.60678],[1416009600000,2.57951],[1416096000000,2.57951],[1416182400000,2.57951],[1416268800000,null],[1416355200000,2.56188],[1416441600000,2.5553],[1416528000000,2.55049],[1416614400000,2.54298],[1416700800000,2.54298],[1416787200000,2.54298],[1416873600000,2.51415],[1416960000000,2.50334],[1417046400000,2.50051],[1417132800000,2.5097],[1417219200000,2.51107],[1417305600000,2.51107]], 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: [[1414800000000, 2.191470],[1414800000000, 2.191470],[1414886400000, 2.191470],[1414972800000, 2.191470],[1415059200000, 2.178754],[1415145600000, 2.173987],[1415232000000, 2.269298],[1415318400000, 2.340134],[1415404800000, 2.434402],[1415491200000, 2.434402],[1415577600000, 2.434402],[1415664000000, 2.466442],[1415750400000, 2.647253],[1415836800000, 2.629983],[1415923200000, 2.606785],[1416009600000, 2.579505],[1416096000000, 2.579505],[1416182400000, 2.579505],[1416355200000, 2.561883],[1416441600000, 2.555303],[1416528000000, 2.550490],[1416614400000, 2.542979],[1416700800000, 2.542979],[1416787200000, 2.542979],[1416873600000, 2.514146],[1416960000000, 2.503339],[1417046400000, 2.500508],[1417132800000, 2.509703],[1417219200000, 2.511075],[1417305600000, 2.511075]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });