$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1228089600000,4.55187],[1228176000000,4.66755],[1228262400000,4.73158],[1228348800000,4.82432],[1228435200000,4.82126],[1228521600000,4.82738],[1228608000000,4.82738],[1228694400000,4.82738],[1228780800000,4.90234],[1228867200000,4.93699],[1228953600000,4.98145],[1229040000000,5.02122],[1229126400000,5.01565],[1229212800000,5.01565],[1229299200000,5.01565],[1229385600000,5.19091],[1229472000000,5.24546],[1229558400000,5.39609],[1229644800000,5.51516],[1229731200000,5.40265],[1229817600000,5.40265],[1229904000000,5.40265],[1229990400000,5.43352],[1230076800000,5.39587],[1230163200000,5.40067],[1230249600000,5.40067],[1230336000000,5.33828],[1230422400000,5.33828],[1230508800000,5.33828],[1230595200000,5.3516],[1230681600000,5.34094]], 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, 4.551871],[1228089600000, 4.551871],[1228176000000, 4.667548],[1228262400000, 4.731585],[1228348800000, 4.824319],[1228435200000, 4.821260],[1228521600000, 4.827379],[1228608000000, 4.827379],[1228694400000, 4.827379],[1228780800000, 4.902343],[1228867200000, 4.936992],[1228953600000, 4.981453],[1229040000000, 5.021217],[1229126400000, 5.015655],[1229212800000, 5.015655],[1229299200000, 5.015655],[1229385600000, 5.190906],[1229472000000, 5.245461],[1229558400000, 5.396087],[1229644800000, 5.515160],[1229731200000, 5.402650],[1229817600000, 5.402650],[1229904000000, 5.402650],[1229990400000, 5.433521],[1230076800000, 5.395868],[1230163200000, 5.400671],[1230249600000, 5.400671],[1230336000000, 5.338275],[1230422400000, 5.338275],[1230508800000, 5.338275],[1230595200000, 5.351598],[1230681600000, 5.340940]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });