$(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: [[1212969600000,1.01433],[1213056000000,1.02597],[1213142400000,1.00975],[1213228800000,1.00947],[1213315200000,1.00352],[1213401600000,0.998371],[1213488000000,0.998371],[1213574400000,0.998371],[1213660800000,0.998371],[1213747200000,1.00732],[1213833600000,1.00805],[1213920000000,1.00711],[1214006400000,1.01507],[1214092800000,1.01507],[1214179200000,1.01507],[1214265600000,1.00924],[1214352000000,1.01222],[1214438400000,1.0143],[1214524800000,1.02265],[1214611200000,1.02387],[1214697600000,1.02387],[1214784000000,1.02387]], 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: [[1212969600000, 1.014332],[1212969600000, 1.014332],[1213056000000, 1.025974],[1213142400000, 1.009751],[1213228800000, 1.009470],[1213315200000, 1.003523],[1213401600000, 0.998371],[1213488000000, 0.998371],[1213574400000, 0.998371],[1213660800000, 0.998371],[1213747200000, 1.007321],[1213833600000, 1.008053],[1213920000000, 1.007113],[1214006400000, 1.015069],[1214092800000, 1.015069],[1214179200000, 1.015069],[1214265600000, 1.009241],[1214352000000, 1.012215],[1214438400000, 1.014299],[1214524800000, 1.022645],[1214611200000, 1.023873],[1214697600000, 1.023873],[1214784000000, 1.023873]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });