$(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: [[1328054400000,6.38517],[1328140800000,6.3812],[1328227200000,6.40291],[1328313600000,6.41086],[1328400000000,6.41086],[1328486400000,6.41086],[1328572800000,6.39156],[1328659200000,6.40006],[1328745600000,6.42036],[1328832000000,6.41587],[1328918400000,6.33476],[1329004800000,6.33476],[1329091200000,6.33476],[1329177600000,6.36921],[1329264000000,6.31804],[1329350400000,6.3332],[1329436800000,6.28675],[1329523200000,6.355],[1329609600000,6.355],[1329696000000,6.355],[1329782400000,6.38134],[1329868800000,6.35703],[1329955200000,6.34803],[1330041600000,6.35824],[1330128000000,6.36061],[1330214400000,6.36061],[1330300800000,6.36061],[1330387200000,6.33861],[1330473600000,6.37855]], 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: [[1328054400000, 6.385169],[1328054400000, 6.385169],[1328140800000, 6.381201],[1328227200000, 6.402909],[1328313600000, 6.410856],[1328400000000, 6.410856],[1328486400000, 6.410856],[1328572800000, 6.391564],[1328659200000, 6.400057],[1328745600000, 6.420360],[1328832000000, 6.415868],[1328918400000, 6.334764],[1329004800000, 6.334764],[1329091200000, 6.334764],[1329177600000, 6.369208],[1329264000000, 6.318035],[1329350400000, 6.333204],[1329436800000, 6.286754],[1329523200000, 6.354999],[1329609600000, 6.354999],[1329696000000, 6.354999],[1329782400000, 6.381341],[1329868800000, 6.357034],[1329955200000, 6.348032],[1330041600000, 6.358239],[1330128000000, 6.360606],[1330214400000, 6.360606],[1330300800000, 6.360606],[1330387200000, 6.338606],[1330473600000, 6.378551]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });