$(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: [[1112313600000,1.6776],[1112400000000,1.67412],[1112486400000,1.67412],[1112572800000,1.67412],[1112659200000,1.65449],[1112745600000,1.63778],[1112832000000,1.6436],[1112918400000,1.65928],[1113004800000,1.6433],[1113091200000,1.6433],[1113177600000,1.6433],[1113264000000,1.67187],[1113350400000,1.6764],[1113436800000,1.66311],[1113523200000,1.63477],[1113609600000,1.62617],[1113696000000,1.62617],[1113782400000,1.62617],[1113868800000,1.61484],[1113955200000,1.60281],[1114041600000,1.58495],[1114128000000,1.58133],[1114214400000,1.57912],[1114300800000,1.57912],[1114387200000,1.57912],[1114473600000,1.55778],[1114560000000,1.55881],[1114646400000,1.54622],[1114732800000,1.52581],[1114819200000,1.53185]], 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: [[1112313600000, 1.677597],[1112313600000, 1.677597],[1112400000000, 1.674119],[1112486400000, 1.674119],[1112572800000, 1.674119],[1112659200000, 1.654488],[1112745600000, 1.637783],[1112832000000, 1.643605],[1112918400000, 1.659282],[1113004800000, 1.643302],[1113091200000, 1.643302],[1113177600000, 1.643302],[1113264000000, 1.671866],[1113350400000, 1.676403],[1113436800000, 1.663107],[1113523200000, 1.634769],[1113609600000, 1.626167],[1113696000000, 1.626167],[1113782400000, 1.626167],[1113868800000, 1.614843],[1113955200000, 1.602805],[1114041600000, 1.584950],[1114128000000, 1.581327],[1114214400000, 1.579121],[1114300800000, 1.579121],[1114387200000, 1.579121],[1114473600000, 1.557783],[1114560000000, 1.558807],[1114646400000, 1.546224],[1114732800000, 1.525807],[1114819200000, 1.531847]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });