$(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: [[1338508800000,0.00095],[1338595200000,0.00095],[1338681600000,0.00095],[1338768000000,0.00095],[1338854400000,0.00095],[1338940800000,0.00095],[1339027200000,0.00095],[1339113600000,0.00097],[1339200000000,0.00097],[1339286400000,0.00097],[1339372800000,0.00097],[1339459200000,0.00097],[1339545600000,0.00097],[1339632000000,0.00095],[1339718400000,0.00096],[1339804800000,0.00096],[1339891200000,0.00096],[1339977600000,0.00096],[1340064000000,0.00097],[1340150400000,0.00096],[1340236800000,0.00097],[1340323200000,0.00097],[1340409600000,0.00096],[1340496000000,0.00096],[1340582400000,0.00096],[1340668800000,0.00096],[1340755200000,0.00096],[1340841600000,0.00096],[1340928000000,0.00096],[1341014400000,0.00096]], 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: [[1338508800000, 0.000950],[1338508800000, 0.000950],[1338595200000, 0.000950],[1338681600000, 0.000950],[1338768000000, 0.000950],[1338854400000, 0.000950],[1338940800000, 0.000950],[1339027200000, 0.000950],[1339113600000, 0.000970],[1339200000000, 0.000970],[1339286400000, 0.000970],[1339372800000, 0.000970],[1339459200000, 0.000970],[1339545600000, 0.000970],[1339632000000, 0.000950],[1339718400000, 0.000960],[1339804800000, 0.000960],[1339891200000, 0.000960],[1339977600000, 0.000960],[1340064000000, 0.000970],[1340150400000, 0.000960],[1340236800000, 0.000970],[1340323200000, 0.000970],[1340409600000, 0.000960],[1340496000000, 0.000960],[1340582400000, 0.000960],[1340668800000, 0.000960],[1340755200000, 0.000960],[1340841600000, 0.000960],[1340928000000, 0.000960],[1341014400000, 0.000960]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });