$(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: [[962409600000,0.1938],[962496000000,0.1938],[962582400000,0.1938],[962668800000,0.194],[962755200000,0.19401],[962841600000,0.19402],[962928000000,0.19416],[963014400000,0.1943],[963100800000,0.1943],[963187200000,0.1943],[963273600000,0.19444],[963360000000,0.19479],[963446400000,0.19494],[963532800000,0.19515],[963619200000,0.1952],[963705600000,0.1952],[963792000000,0.1952],[963878400000,0.19542],[963964800000,0.19556],[964051200000,0.19599],[964137600000,0.19663],[964224000000,0.19678],[964310400000,0.19678],[964396800000,0.19678],[964483200000,0.19678],[964569600000,0.19677],[964656000000,0.19677],[964742400000,0.19635],[964828800000,0.19564],[964915200000,0.19564],[965001600000,0.19564]], 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: [[962409600000, 0.193800],[962409600000, 0.193800],[962496000000, 0.193800],[962582400000, 0.193800],[962668800000, 0.194000],[962755200000, 0.194010],[962841600000, 0.194020],[962928000000, 0.194160],[963014400000, 0.194300],[963100800000, 0.194300],[963187200000, 0.194300],[963273600000, 0.194440],[963360000000, 0.194790],[963446400000, 0.194940],[963532800000, 0.195150],[963619200000, 0.195200],[963705600000, 0.195200],[963792000000, 0.195200],[963878400000, 0.195420],[963964800000, 0.195560],[964051200000, 0.195990],[964137600000, 0.196630],[964224000000, 0.196780],[964310400000, 0.196780],[964396800000, 0.196780],[964483200000, 0.196780],[964569600000, 0.196770],[964656000000, 0.196770],[964742400000, 0.196350],[964828800000, 0.195640],[964915200000, 0.195640],[965001600000, 0.195640]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });