$(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: [[1151712000000,5.63868],[1151798400000,5.63868],[1151884800000,5.63868],[1151971200000,5.64057],[1152057600000,5.64309],[1152144000000,5.64309],[1152230400000,5.64435],[1152316800000,5.64814],[1152403200000,5.64814],[1152489600000,5.64814],[1152576000000,5.65193],[1152662400000,5.65193],[1152748800000,5.65573],[1152835200000,5.65953],[1152921600000,5.66334],[1153008000000,5.66334],[1153094400000,5.66334],[1153180800000,5.6697],[1153267200000,5.67352],[1153353600000,5.67543],[1153440000000,5.67798],[1153526400000,5.68182],[1153612800000,5.68182],[1153699200000,5.68182],[1153785600000,5.68182],[1153872000000,5.6831],[1153958400000,5.68182],[1154044800000,5.6831],[1154131200000,5.6831],[1154217600000,5.6831],[1154304000000,5.6831]], 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: [[1151712000000, 5.638678],[1151712000000, 5.638678],[1151798400000, 5.638678],[1151884800000, 5.638678],[1151971200000, 5.640567],[1152057600000, 5.643089],[1152144000000, 5.643089],[1152230400000, 5.644350],[1152316800000, 5.648138],[1152403200000, 5.648138],[1152489600000, 5.648138],[1152576000000, 5.651931],[1152662400000, 5.651931],[1152748800000, 5.655729],[1152835200000, 5.659532],[1152921600000, 5.663340],[1153008000000, 5.663340],[1153094400000, 5.663340],[1153180800000, 5.669698],[1153267200000, 5.673520],[1153353600000, 5.675433],[1153440000000, 5.677985],[1153526400000, 5.681818],[1153612800000, 5.681818],[1153699200000, 5.681818],[1153785600000, 5.681818],[1153872000000, 5.683097],[1153958400000, 5.681818],[1154044800000, 5.683097],[1154131200000, 5.683097],[1154217600000, 5.683097],[1154304000000, 5.683097]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });