$(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: [[1448928000000,0.35884],[1449014400000,0.35983],[1449100800000,0.35432],[1449187200000,0.3407],[1449273600000,0.34947],[1449360000000,0.34947],[1449446400000,0.34947],[1449532800000,0.34227],[1449619200000,0.33063],[1449705600000,0.33085],[1449792000000,0.33762],[1449878400000,0.34492],[1449964800000,0.34492],[1450051200000,0.34492],[1450137600000,0.33908],[1450224000000,0.3311],[1450310400000,0.33407],[1450396800000,0.33278],[1450483200000,0.33014],[1450569600000,0.33014],[1450656000000,0.33014],[1450742400000,0.33005],[1450828800000,0.32546],[1450915200000,0.32421],[1451001600000,0.33035],[1451088000000,0.32927],[1451174400000,0.32927],[1451260800000,0.32927],[1451347200000,0.33633],[1451433600000,0.32812],[1451520000000,0.32931]], 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.358840],[1448928000000, 0.358840],[1449014400000, 0.359830],[1449100800000, 0.354320],[1449187200000, 0.340700],[1449273600000, 0.349470],[1449360000000, 0.349470],[1449446400000, 0.349470],[1449532800000, 0.342270],[1449619200000, 0.330630],[1449705600000, 0.330850],[1449792000000, 0.337620],[1449878400000, 0.344920],[1449964800000, 0.344920],[1450051200000, 0.344920],[1450137600000, 0.339080],[1450224000000, 0.331100],[1450310400000, 0.334070],[1450396800000, 0.332780],[1450483200000, 0.330140],[1450569600000, 0.330140],[1450656000000, 0.330140],[1450742400000, 0.330050],[1450828800000, 0.325460],[1450915200000, 0.324210],[1451001600000, 0.330350],[1451088000000, 0.329270],[1451174400000, 0.329270],[1451260800000, 0.329270],[1451347200000, 0.336330],[1451433600000, 0.328120],[1451520000000, 0.329310]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });