$(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: [[1343779200000,6.42663],[1343865600000,6.41841],[1343952000000,6.42207],[1344038400000,6.41588],[1344124800000,6.41588],[1344211200000,6.41588],[1344297600000,6.43756],[1344384000000,6.44498],[1344470400000,6.41312],[1344556800000,6.41537],[1344643200000,6.40757],[1344729600000,6.40757],[1344816000000,6.40757],[1344902400000,6.42261],[1344988800000,6.41434],[1345075200000,6.3919],[1345161600000,6.38972],[1345248000000,6.38168],[1345334400000,6.38168],[1345420800000,6.38168],[1345507200000,6.37078],[1345593600000,6.39399],[1345680000000,6.38537],[1345766400000,6.41443],[1345852800000,6.41443],[1345939200000,6.41443],[1346025600000,6.41443],[1346112000000,6.39012],[1346198400000,6.3826],[1346284800000,6.37539],[1346371200000,6.37975]], 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: [[1343779200000, 6.426627],[1343779200000, 6.426627],[1343865600000, 6.418408],[1343952000000, 6.422073],[1344038400000, 6.415882],[1344124800000, 6.415882],[1344211200000, 6.415882],[1344297600000, 6.437563],[1344384000000, 6.444981],[1344470400000, 6.413115],[1344556800000, 6.415366],[1344643200000, 6.407568],[1344729600000, 6.407568],[1344816000000, 6.407568],[1344902400000, 6.422612],[1344988800000, 6.414341],[1345075200000, 6.391901],[1345161600000, 6.389717],[1345248000000, 6.381675],[1345334400000, 6.381675],[1345420800000, 6.381675],[1345507200000, 6.370781],[1345593600000, 6.393988],[1345680000000, 6.385372],[1345766400000, 6.414432],[1345852800000, 6.414432],[1345939200000, 6.414432],[1346025600000, 6.414432],[1346112000000, 6.390116],[1346198400000, 6.382599],[1346284800000, 6.375393],[1346371200000, 6.379753]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });