$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1257033600000,13.236],[1257120000000,13.236],[1257206400000,13.0778],[1257292800000,13.0686],[1257379200000,13.2393],[1257465600000,13.3074],[1257552000000,13.258],[1257638400000,13.258],[1257724800000,13.258],[1257811200000,13.3975],[1257897600000,13.3072],[1257984000000,13.3096],[1258070400000,13.2285],[1258156800000,13.3391],[1258243200000,13.3391],[1258329600000,13.3391],[1258416000000,13.3676],[1258502400000,13.4111],[1258588800000,13.4367],[1258675200000,13.2858],[1258761600000,13.1649],[1258848000000,13.1649],[1258934400000,13.1649],[1259020800000,13.2772],[1259107200000,13.2435],[1259193600000,13.336],[1259280000000,13.2033],[1259366400000,13.0964],[1259452800000,13.0964],[1259539200000,13.0964]], 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: [[1257033600000, 13.235961],[1257033600000, 13.235961],[1257120000000, 13.235961],[1257206400000, 13.077791],[1257292800000, 13.068555],[1257379200000, 13.239309],[1257465600000, 13.307401],[1257552000000, 13.258032],[1257638400000, 13.258032],[1257724800000, 13.258032],[1257811200000, 13.397488],[1257897600000, 13.307182],[1257984000000, 13.309635],[1258070400000, 13.228469],[1258156800000, 13.339077],[1258243200000, 13.339077],[1258329600000, 13.339077],[1258416000000, 13.367574],[1258502400000, 13.411082],[1258588800000, 13.436750],[1258675200000, 13.285828],[1258761600000, 13.164861],[1258848000000, 13.164861],[1258934400000, 13.164861],[1259020800000, 13.277193],[1259107200000, 13.243529],[1259193600000, 13.336038],[1259280000000, 13.203255],[1259366400000, 13.096366],[1259452800000, 13.096366],[1259539200000, 13.096366]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });