$(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: [[1046476800000,0.16896],[1046563200000,0.16896],[1046649600000,0.16896],[1046736000000,0.16884],[1046822400000,0.16886],[1046908800000,0.16886],[1046995200000,0.16902],[1047081600000,0.16902],[1047168000000,0.16902],[1047254400000,0.16902],[1047340800000,0.16931],[1047427200000,0.16931],[1047513600000,0.16967],[1047600000000,0.16999],[1047686400000,0.16999],[1047772800000,0.16999],[1047859200000,0.16996],[1047945600000,0.16996],[1048032000000,0.1699],[1048118400000,0.1699],[1048204800000,0.16999],[1048291200000,0.16999],[1048377600000,0.16999],[1048464000000,0.17],[1048550400000,0.17],[1048636800000,0.16998],[1048723200000,0.17],[1048809600000,0.17],[1048896000000,0.17],[1048982400000,0.17],[1049068800000,0.16999]], 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: [[1046476800000, 0.168960],[1046476800000, 0.168960],[1046563200000, 0.168960],[1046649600000, 0.168960],[1046736000000, 0.168840],[1046822400000, 0.168860],[1046908800000, 0.168860],[1046995200000, 0.169020],[1047081600000, 0.169020],[1047168000000, 0.169020],[1047254400000, 0.169020],[1047340800000, 0.169310],[1047427200000, 0.169310],[1047513600000, 0.169670],[1047600000000, 0.169990],[1047686400000, 0.169990],[1047772800000, 0.169990],[1047859200000, 0.169960],[1047945600000, 0.169960],[1048032000000, 0.169900],[1048118400000, 0.169900],[1048204800000, 0.169990],[1048291200000, 0.169990],[1048377600000, 0.169990],[1048464000000, 0.170000],[1048550400000, 0.170000],[1048636800000, 0.169980],[1048723200000, 0.170000],[1048809600000, 0.170000],[1048896000000, 0.170000],[1048982400000, 0.170000],[1049068800000, 0.169990]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });