$(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: [[1283299200000,2.49167],[1283385600000,2.53013],[1283472000000,2.54568],[1283558400000,2.56816],[1283644800000,2.56816],[1283731200000,2.56816],[1283817600000,2.58842],[1283904000000,2.5598],[1283990400000,2.54088],[1284076800000,2.5534],[1284163200000,2.55813],[1284249600000,2.55813],[1284336000000,2.55813],[1284422400000,2.57047],[1284508800000,2.57991],[1284595200000,2.61357],[1284681600000,2.62841],[1284768000000,2.61029],[1284854400000,2.61029],[1284940800000,2.61029],[1285027200000,2.62228],[1285113600000,2.63371],[1285200000000,2.68507],[1285286400000,2.65234],[1285372800000,2.66783],[1285459200000,2.66783],[1285545600000,2.66783],[1285632000000,2.70021],[1285718400000,2.6789],[1285804800000,2.71018]], 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: [[1283299200000, 2.491674],[1283299200000, 2.491674],[1283385600000, 2.530130],[1283472000000, 2.545679],[1283558400000, 2.568164],[1283644800000, 2.568164],[1283731200000, 2.568164],[1283817600000, 2.588416],[1283904000000, 2.559805],[1283990400000, 2.540878],[1284076800000, 2.553397],[1284163200000, 2.558133],[1284249600000, 2.558133],[1284336000000, 2.558133],[1284422400000, 2.570471],[1284508800000, 2.579905],[1284595200000, 2.613575],[1284681600000, 2.628411],[1284768000000, 2.610286],[1284854400000, 2.610286],[1284940800000, 2.610286],[1285027200000, 2.622284],[1285113600000, 2.633711],[1285200000000, 2.685074],[1285286400000, 2.652337],[1285372800000, 2.667829],[1285459200000, 2.667829],[1285545600000, 2.667829],[1285632000000, 2.700211],[1285718400000, 2.678899],[1285804800000, 2.710179]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });