$(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: [[1175385600000,1.73932],[1175472000000,1.73932],[1175558400000,1.7512],[1175644800000,1.75052],[1175731200000,1.75091],[1175817600000,1.75938],[1175904000000,1.75938],[1175990400000,1.75938],[1176076800000,1.75938],[1176163200000,1.75938],[1176249600000,1.76368],[1176336000000,1.76995],[1176422400000,1.77382],[1176508800000,1.78053],[1176595200000,1.78053],[1176681600000,1.78053],[1176768000000,1.79223],[1176854400000,1.79299],[1176940800000,1.80062],[1177027200000,1.8029],[1177113600000,1.81212],[1177200000000,1.81212],[1177286400000,1.81212],[1177372800000,1.81128],[1177459200000,1.81108],[1177545600000,1.82039],[1177632000000,1.81909],[1177718400000,1.82335],[1177804800000,1.82335],[1177891200000,1.82335]], 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: [[1175385600000, 1.739317],[1175385600000, 1.739317],[1175472000000, 1.739317],[1175558400000, 1.751201],[1175644800000, 1.750516],[1175731200000, 1.750911],[1175817600000, 1.759376],[1175904000000, 1.759376],[1175990400000, 1.759376],[1176076800000, 1.759376],[1176163200000, 1.759376],[1176249600000, 1.763684],[1176336000000, 1.769954],[1176422400000, 1.773822],[1176508800000, 1.780526],[1176595200000, 1.780526],[1176681600000, 1.780526],[1176768000000, 1.792234],[1176854400000, 1.792994],[1176940800000, 1.800616],[1177027200000, 1.802899],[1177113600000, 1.812124],[1177200000000, 1.812124],[1177286400000, 1.812124],[1177372800000, 1.811282],[1177459200000, 1.811077],[1177545600000, 1.820395],[1177632000000, 1.819092],[1177718400000, 1.823351],[1177804800000, 1.823351],[1177891200000, 1.823351]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });