$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1283299200000,9.81177],[1283385600000,9.81346],[1283472000000,9.82925],[1283558400000,9.84219],[1283644800000,9.84219],[1283731200000,9.84219],[1283817600000,9.84342],[1283904000000,9.84097],[1283990400000,9.83852],[1284076800000,9.83852],[1284163200000,9.83852],[1284249600000,9.83852],[1284336000000,9.83852],[1284422400000,9.83974],[1284508800000,9.85218],[1284595200000,9.85588],[1284681600000,9.85588],[1284768000000,9.85833],[1284854400000,9.85833],[1284940800000,9.85833],[1285027200000,9.85833],[1285113600000,9.85956],[1285200000000,9.86202],[1285286400000,9.85828],[1285372800000,9.84981],[1285459200000,9.84981],[1285545600000,9.84981],[1285632000000,9.85615],[1285718400000,9.85615],[1285804800000,9.8586]], 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, 9.811769],[1283299200000, 9.811769],[1283385600000, 9.813464],[1283472000000, 9.829247],[1283558400000, 9.842190],[1283644800000, 9.842190],[1283731200000, 9.842190],[1283817600000, 9.843415],[1283904000000, 9.840966],[1283990400000, 9.838517],[1284076800000, 9.838517],[1284163200000, 9.838517],[1284249600000, 9.838517],[1284336000000, 9.838517],[1284422400000, 9.839741],[1284508800000, 9.852184],[1284595200000, 9.855881],[1284681600000, 9.855881],[1284768000000, 9.858334],[1284854400000, 9.858334],[1284940800000, 9.858334],[1285027200000, 9.858334],[1285113600000, 9.859562],[1285200000000, 9.862017],[1285286400000, 9.858281],[1285372800000, 9.849813],[1285459200000, 9.849813],[1285545600000, 9.849813],[1285632000000, 9.856146],[1285718400000, 9.856146],[1285804800000, 9.858602]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });