$(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: [[1509494400000,0.100315],[1509580800000,0.100116],[1509667200000,0.100874],[1509753600000,0.101293],[1509840000000,0.101293],[1509926400000,0.101293],[1510012800000,0.100015],[1510099200000,0.099456],[1510185600000,0.098994],[1510272000000,0.098973],[1510358400000,0.099047],[1510444800000,0.099047],[1510531200000,0.099047],[1510617600000,0.098944],[1510704000000,0.099753],[1510790400000,0.100461],[1510876800000,0.099723],[1510963200000,0.100313],[1511049600000,0.100313],[1511136000000,0.100313],[1511222400000,0.099836],[1511308800000,0.099203],[1511395200000,0.099854],[1511481600000,0.101662],[1511568000000,0.102509],[1511654400000,0.102509],[1511740800000,0.102509],[1511827200000,0.103051],[1511913600000,0.102721],[1512000000000,0.102537]], 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: [[1509494400000, 0.100315],[1509494400000, 0.100315],[1509580800000, 0.100116],[1509667200000, 0.100874],[1509753600000, 0.101293],[1509840000000, 0.101293],[1509926400000, 0.101293],[1510012800000, 0.100015],[1510099200000, 0.099456],[1510185600000, 0.098994],[1510272000000, 0.098973],[1510358400000, 0.099047],[1510444800000, 0.099047],[1510531200000, 0.099047],[1510617600000, 0.098944],[1510704000000, 0.099753],[1510790400000, 0.100461],[1510876800000, 0.099723],[1510963200000, 0.100313],[1511049600000, 0.100313],[1511136000000, 0.100313],[1511222400000, 0.099836],[1511308800000, 0.099203],[1511395200000, 0.099854],[1511481600000, 0.101662],[1511568000000, 0.102509],[1511654400000, 0.102509],[1511740800000, 0.102509],[1511827200000, 0.103051],[1511913600000, 0.102721],[1512000000000, 0.102537]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });