$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1283299200000,7.8867],[1283385600000,7.8861],[1283472000000,7.8978],[1283558400000,7.9082],[1283644800000,7.9082],[1283731200000,7.9082],[1283817600000,7.9082],[1283904000000,7.9082],[1283990400000,7.9082],[1284076800000,7.9082],[1284163200000,7.9082],[1284249600000,7.9082],[1284336000000,7.9082],[1284422400000,7.9082],[1284508800000,7.9182],[1284595200000,7.9192],[1284681600000,7.9192],[1284768000000,7.9192],[1284854400000,7.9192],[1284940800000,7.9192],[1285027200000,7.9192],[1285113600000,7.9192],[1285200000000,7.9192],[1285286400000,7.9162],[1285372800000,7.9094],[1285459200000,7.9094],[1285545600000,7.9094],[1285632000000,7.9135],[1285718400000,7.9135],[1285804800000,7.9135]], 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: [[1283299200000, 7.886700],[1283299200000, 7.886700],[1283385600000, 7.886100],[1283472000000, 7.897800],[1283558400000, 7.908200],[1283644800000, 7.908200],[1283731200000, 7.908200],[1283817600000, 7.908200],[1283904000000, 7.908200],[1283990400000, 7.908200],[1284076800000, 7.908200],[1284163200000, 7.908200],[1284249600000, 7.908200],[1284336000000, 7.908200],[1284422400000, 7.908200],[1284508800000, 7.918200],[1284595200000, 7.919200],[1284681600000, 7.919200],[1284768000000, 7.919200],[1284854400000, 7.919200],[1284940800000, 7.919200],[1285027200000, 7.919200],[1285113600000, 7.919200],[1285200000000, 7.919200],[1285286400000, 7.916200],[1285372800000, 7.909400],[1285459200000, 7.909400],[1285545600000, 7.909400],[1285632000000, 7.913500],[1285718400000, 7.913500],[1285804800000, 7.913500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });