$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1175385600000,9.47667],[1175472000000,9.47667],[1175558400000,9.53097],[1175644800000,9.52257],[1175731200000,9.51964],[1175817600000,9.54539],[1175904000000,9.54539],[1175990400000,9.54539],[1176076800000,9.54539],[1176163200000,9.54539],[1176249600000,9.60631],[1176336000000,9.60466],[1176422400000,9.63428],[1176508800000,9.68215],[1176595200000,9.68215],[1176681600000,9.68215],[1176768000000,9.73226],[1176854400000,9.72877],[1176940800000,9.73918],[1177027200000,9.75363],[1177113600000,9.77526],[1177200000000,9.77526],[1177286400000,9.77526],[1177372800000,9.7581],[1177459200000,9.80545],[1177545600000,9.84678],[1177632000000,9.83806],[1177718400000,9.87065],[1177804800000,9.87065],[1177891200000,9.87065]], 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: [[1175385600000, 9.476666],[1175385600000, 9.476666],[1175472000000, 9.476666],[1175558400000, 9.530966],[1175644800000, 9.522572],[1175731200000, 9.519639],[1175817600000, 9.545392],[1175904000000, 9.545392],[1175990400000, 9.545392],[1176076800000, 9.545392],[1176163200000, 9.545392],[1176249600000, 9.606305],[1176336000000, 9.604663],[1176422400000, 9.634275],[1176508800000, 9.682148],[1176595200000, 9.682148],[1176681600000, 9.682148],[1176768000000, 9.732257],[1176854400000, 9.728772],[1176940800000, 9.739183],[1177027200000, 9.753628],[1177113600000, 9.775260],[1177200000000, 9.775260],[1177286400000, 9.775260],[1177372800000, 9.758103],[1177459200000, 9.805447],[1177545600000, 9.846779],[1177632000000, 9.838057],[1177718400000, 9.870652],[1177804800000, 9.870652],[1177891200000, 9.870652]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });