$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1448928000000,0.08131],[1449014400000,0.081391],[1449100800000,0.080632],[1449187200000,0.07924],[1449273600000,0.082343],[1449360000000,0.082343],[1449446400000,0.082343],[1449532800000,0.081282],[1449619200000,0.079223],[1449705600000,0.079598],[1449792000000,0.080768],[1449878400000,0.082507],[1449964800000,0.082507],[1450051200000,0.082507],[1450137600000,0.082468],[1450224000000,0.081431],[1450310400000,0.081267],[1450396800000,0.080589],[1450483200000,0.081193],[1450569600000,0.081193],[1450656000000,0.081193],[1450742400000,0.081376],[1450828800000,0.080742],[1450915200000,0.079733],[1451001600000,0.079577],[1451088000000,0.080177],[1451174400000,0.080177],[1451260800000,0.080177],[1451347200000,0.08308],[1451433600000,0.082911],[1451520000000,0.08374]], 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.081310],[1448928000000, 0.081310],[1449014400000, 0.081391],[1449100800000, 0.080632],[1449187200000, 0.079240],[1449273600000, 0.082343],[1449360000000, 0.082343],[1449446400000, 0.082343],[1449532800000, 0.081282],[1449619200000, 0.079223],[1449705600000, 0.079598],[1449792000000, 0.080768],[1449878400000, 0.082507],[1449964800000, 0.082507],[1450051200000, 0.082507],[1450137600000, 0.082468],[1450224000000, 0.081431],[1450310400000, 0.081267],[1450396800000, 0.080589],[1450483200000, 0.081193],[1450569600000, 0.081193],[1450656000000, 0.081193],[1450742400000, 0.081376],[1450828800000, 0.080742],[1450915200000, 0.079733],[1451001600000, 0.079577],[1451088000000, 0.080177],[1451174400000, 0.080177],[1451260800000, 0.080177],[1451347200000, 0.083080],[1451433600000, 0.082911],[1451520000000, 0.083740]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });