$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1243814400000,2.39948],[1243900800000,2.4254],[1243987200000,2.41488],[1244073600000,2.40267],[1244160000000,2.3741],[1244246400000,2.37591],[1244332800000,2.37591],[1244419200000,2.37591],[1244505600000,2.37591],[1244592000000,2.37278],[1244678400000,2.40377],[1244764800000,2.37216],[1244851200000,2.37972],[1244937600000,2.37972],[1245024000000,2.37972],[1245110400000,2.32916],[1245196800000,2.33357],[1245283200000,2.32862],[1245369600000,2.32659],[1245456000000,2.35095],[1245542400000,2.35095],[1245628800000,2.35095],[1245715200000,2.33172],[1245801600000,2.34015],[1245888000000,2.35989],[1245974400000,2.35477],[1246060800000,2.39307],[1246147200000,2.39307],[1246233600000,2.39307],[1246320000000,2.39307]], 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: [[1243814400000, 2.399482],[1243814400000, 2.399482],[1243900800000, 2.425399],[1243987200000, 2.414879],[1244073600000, 2.402668],[1244160000000, 2.374097],[1244246400000, 2.375912],[1244332800000, 2.375912],[1244419200000, 2.375912],[1244505600000, 2.375912],[1244592000000, 2.372781],[1244678400000, 2.403768],[1244764800000, 2.372158],[1244851200000, 2.379720],[1244937600000, 2.379720],[1245024000000, 2.379720],[1245110400000, 2.329162],[1245196800000, 2.333569],[1245283200000, 2.328621],[1245369600000, 2.326587],[1245456000000, 2.350952],[1245542400000, 2.350952],[1245628800000, 2.350952],[1245715200000, 2.331717],[1245801600000, 2.340151],[1245888000000, 2.359887],[1245974400000, 2.354767],[1246060800000, 2.393074],[1246147200000, 2.393074],[1246233600000, 2.393074],[1246320000000, 2.393074]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });