$(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: 'Курс BYN, грн'}, 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: 'Курс BYN', data: [[1448928000000,0.00132],[1449014400000,0.00132],[1449100800000,0.00131],[1449187200000,0.00127],[1449273600000,0.00131],[1449360000000,0.00131],[1449446400000,0.00131],[1449532800000,0.00129],[1449619200000,0.00125],[1449705600000,0.00125],[1449792000000,0.00128],[1449878400000,0.00131],[1449964800000,0.00131],[1450051200000,0.00131],[1450137600000,0.0013],[1450224000000,0.00128],[1450310400000,0.00128],[1450396800000,0.00128],[1450483200000,0.00128],[1450569600000,0.00128],[1450656000000,0.00128],[1450742400000,0.00128],[1450828800000,0.00126],[1450915200000,0.00125],[1451001600000,0.00126],[1451088000000,0.00127],[1451174400000,0.00127],[1451260800000,0.00127],[1451347200000,0.0013],[1451433600000,0.00128],[1451520000000,0.00129]], 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: [[1448928000000, 0.001320],[1448928000000, 0.001320],[1449014400000, 0.001320],[1449100800000, 0.001310],[1449187200000, 0.001270],[1449273600000, 0.001310],[1449360000000, 0.001310],[1449446400000, 0.001310],[1449532800000, 0.001290],[1449619200000, 0.001250],[1449705600000, 0.001250],[1449792000000, 0.001280],[1449878400000, 0.001310],[1449964800000, 0.001310],[1450051200000, 0.001310],[1450137600000, 0.001300],[1450224000000, 0.001280],[1450310400000, 0.001280],[1450396800000, 0.001280],[1450483200000, 0.001280],[1450569600000, 0.001280],[1450656000000, 0.001280],[1450742400000, 0.001280],[1450828800000, 0.001260],[1450915200000, 0.001250],[1451001600000, 0.001260],[1451088000000, 0.001270],[1451174400000, 0.001270],[1451260800000, 0.001270],[1451347200000, 0.001300],[1451433600000, 0.001280],[1451520000000, 0.001290]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });