$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1501545600000,1.16262],[1501632000000,1.16877],[1501718400000,1.17277],[1501804800000,1.18238],[1501891200000,1.17655],[1501977600000,1.17655],[1502064000000,1.17655],[1502150400000,1.16474],[1502236800000,1.16254],[1502323200000,1.15357],[1502409600000,1.15236],[1502496000000,1.15584],[1502582400000,1.15584],[1502668800000,1.15584],[1502755200000,1.15769],[1502841600000,1.14997],[1502928000000,1.14981],[1503014400000,1.14697],[1503100800000,1.14623],[1503187200000,1.14623],[1503273600000,1.14623],[1503360000000,null],[1503446400000,1.14861],[1503532800000,1.15377],[1503619200000,1.15377],[1503705600000,1.15377],[1503792000000,1.15377],[1503878400000,1.15377],[1503964800000,1.16572],[1504051200000,1.17247],[1504137600000,1.1703]], 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: [[1501545600000, 1.162618],[1501545600000, 1.162618],[1501632000000, 1.168773],[1501718400000, 1.172767],[1501804800000, 1.182380],[1501891200000, 1.176552],[1501977600000, 1.176552],[1502064000000, 1.176552],[1502150400000, 1.164744],[1502236800000, 1.162541],[1502323200000, 1.153571],[1502409600000, 1.152360],[1502496000000, 1.155840],[1502582400000, 1.155840],[1502668800000, 1.155840],[1502755200000, 1.157689],[1502841600000, 1.149974],[1502928000000, 1.149810],[1503014400000, 1.146965],[1503100800000, 1.146228],[1503187200000, 1.146228],[1503273600000, 1.146228],[1503446400000, 1.148610],[1503532800000, 1.153775],[1503619200000, 1.153775],[1503705600000, 1.153775],[1503792000000, 1.153775],[1503878400000, 1.153775],[1503964800000, 1.165717],[1504051200000, 1.172474],[1504137600000, 1.170305]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });