$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1380585600000,0.24606],[1380672000000,0.24749],[1380758400000,0.24748],[1380844800000,0.24881],[1380931200000,0.249],[1381017600000,0.249],[1381104000000,0.249],[1381190400000,0.24751],[1381276800000,0.24747],[1381363200000,0.24699],[1381449600000,0.24699],[1381536000000,0.24813],[1381622400000,0.24813],[1381708800000,0.24813],[1381795200000,0.24772],[1381881600000,0.24771],[1381968000000,0.2478],[1382054400000,0.24915],[1382140800000,0.25099],[1382227200000,0.25099],[1382313600000,0.25099],[1382400000000,0.25055],[1382486400000,0.25029],[1382572800000,0.25179],[1382659200000,0.25245],[1382745600000,0.25232],[1382832000000,0.25232],[1382918400000,0.25232],[1383004800000,0.25126],[1383091200000,0.25022],[1383177600000,0.2493]], 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: [[1380585600000, 0.246060],[1380585600000, 0.246060],[1380672000000, 0.247490],[1380758400000, 0.247480],[1380844800000, 0.248810],[1380931200000, 0.249000],[1381017600000, 0.249000],[1381104000000, 0.249000],[1381190400000, 0.247510],[1381276800000, 0.247470],[1381363200000, 0.246990],[1381449600000, 0.246990],[1381536000000, 0.248130],[1381622400000, 0.248130],[1381708800000, 0.248130],[1381795200000, 0.247720],[1381881600000, 0.247710],[1381968000000, 0.247800],[1382054400000, 0.249150],[1382140800000, 0.250990],[1382227200000, 0.250990],[1382313600000, 0.250990],[1382400000000, 0.250550],[1382486400000, 0.250290],[1382572800000, 0.251790],[1382659200000, 0.252450],[1382745600000, 0.252320],[1382832000000, 0.252320],[1382918400000, 0.252320],[1383004800000, 0.251260],[1383091200000, 0.250220],[1383177600000, 0.249300]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });