$(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: [[1228089600000,2.31886],[1228176000000,2.34221],[1228262400000,2.3982],[1228348800000,2.41993],[1228435200000,2.4052],[1228521600000,2.39835],[1228608000000,2.39835],[1228694400000,2.39835],[1228780800000,2.44644],[1228867200000,2.43212],[1228953600000,2.44163],[1229040000000,2.48183],[1229126400000,2.51796],[1229212800000,2.51796],[1229299200000,2.51796],[1229385600000,2.58837],[1229472000000,2.61219],[1229558400000,2.70445],[1229644800000,2.76354],[1229731200000,2.69028],[1229817600000,2.69028],[1229904000000,2.69028],[1229990400000,2.68849],[1230076800000,2.65841],[1230163200000,2.66987],[1230249600000,2.66987],[1230336000000,2.63903],[1230422400000,2.63903],[1230508800000,2.63903],[1230595200000,2.65408],[1230681600000,2.61798]], 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: [[1228089600000, 2.318864],[1228089600000, 2.318864],[1228176000000, 2.342212],[1228262400000, 2.398201],[1228348800000, 2.419927],[1228435200000, 2.405200],[1228521600000, 2.398350],[1228608000000, 2.398350],[1228694400000, 2.398350],[1228780800000, 2.446443],[1228867200000, 2.432117],[1228953600000, 2.441625],[1229040000000, 2.481828],[1229126400000, 2.517962],[1229212800000, 2.517962],[1229299200000, 2.517962],[1229385600000, 2.588371],[1229472000000, 2.612189],[1229558400000, 2.704445],[1229644800000, 2.763536],[1229731200000, 2.690275],[1229817600000, 2.690275],[1229904000000, 2.690275],[1229990400000, 2.688491],[1230076800000, 2.658414],[1230163200000, 2.669871],[1230249600000, 2.669871],[1230336000000, 2.639026],[1230422400000, 2.639026],[1230508800000, 2.639026],[1230595200000, 2.654082],[1230681600000, 2.617981]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });