$(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: [[1054425600000,0.17366],[1054512000000,0.17366],[1054598400000,0.17405],[1054684800000,0.17347],[1054771200000,0.17338],[1054857600000,0.17448],[1054944000000,0.17448],[1055030400000,0.17448],[1055116800000,0.17448],[1055203200000,0.17448],[1055289600000,0.17452],[1055376000000,0.17478],[1055462400000,0.17478],[1055548800000,0.17478],[1055635200000,0.17478],[1055721600000,0.17478],[1055808000000,0.17478],[1055894400000,0.17554],[1055980800000,0.17554],[1056067200000,0.17554],[1056153600000,0.17554],[1056240000000,0.17554],[1056326400000,0.17554],[1056412800000,0.17569],[1056499200000,0.17571],[1056585600000,0.17577],[1056672000000,0.17577],[1056758400000,0.17577],[1056844800000,0.17577],[1056931200000,0.17577]], 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: [[1054425600000, 0.173660],[1054425600000, 0.173660],[1054512000000, 0.173660],[1054598400000, 0.174050],[1054684800000, 0.173470],[1054771200000, 0.173380],[1054857600000, 0.174480],[1054944000000, 0.174480],[1055030400000, 0.174480],[1055116800000, 0.174480],[1055203200000, 0.174480],[1055289600000, 0.174520],[1055376000000, 0.174780],[1055462400000, 0.174780],[1055548800000, 0.174780],[1055635200000, 0.174780],[1055721600000, 0.174780],[1055808000000, 0.174780],[1055894400000, 0.175540],[1055980800000, 0.175540],[1056067200000, 0.175540],[1056153600000, 0.175540],[1056240000000, 0.175540],[1056326400000, 0.175540],[1056412800000, 0.175690],[1056499200000, 0.175710],[1056585600000, 0.175770],[1056672000000, 0.175770],[1056758400000, 0.175770],[1056844800000, 0.175770],[1056931200000, 0.175770]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });