$(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: [[1212969600000,2.2373],[1213056000000,2.26119],[1213142400000,2.22754],[1213228800000,2.2317],[1213315200000,2.20666],[1213401600000,2.19733],[1213488000000,2.19733],[1213574400000,2.19733],[1213660800000,2.19733],[1213747200000,2.2214],[1213833600000,2.22605],[1213920000000,2.23065],[1214006400000,2.24907],[1214092800000,2.24907],[1214179200000,2.24907],[1214265600000,2.23805],[1214352000000,2.24282],[1214438400000,2.25331],[1214524800000,2.27322],[1214611200000,2.26784],[1214697600000,2.26784],[1214784000000,2.26784]], 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, 2.237301],[1212969600000, 2.237301],[1213056000000, 2.261186],[1213142400000, 2.227544],[1213228800000, 2.231695],[1213315200000, 2.206656],[1213401600000, 2.197330],[1213488000000, 2.197330],[1213574400000, 2.197330],[1213660800000, 2.197330],[1213747200000, 2.221401],[1213833600000, 2.226050],[1213920000000, 2.230649],[1214006400000, 2.249074],[1214092800000, 2.249074],[1214179200000, 2.249074],[1214265600000, 2.238046],[1214352000000, 2.242822],[1214438400000, 2.253313],[1214524800000, 2.273224],[1214611200000, 2.267841],[1214697600000, 2.267841],[1214784000000, 2.267841]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });