$(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: [[1341100800000,6.25583],[1341187200000,6.25583],[1341273600000,6.30676],[1341360000000,6.32708],[1341446400000,6.32312],[1341532800000,6.3278],[1341619200000,6.30204],[1341705600000,6.30244],[1341792000000,6.30244],[1341878400000,6.2861],[1341964800000,6.30662],[1342051200000,6.32261],[1342137600000,6.28519],[1342224000000,6.30019],[1342310400000,6.30019],[1342396800000,6.30019],[1342483200000,6.30953],[1342569600000,6.33508],[1342656000000,6.34317],[1342742400000,6.37603],[1342828800000,6.3602],[1342915200000,6.3602],[1343001600000,6.3602],[1343088000000,6.33879],[1343174400000,6.34704],[1343260800000,6.35439],[1343347200000,6.38981],[1343433600000,6.38994],[1343520000000,6.38994],[1343606400000,6.38994],[1343692800000,6.41094]], 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: [[1341100800000, 6.255828],[1341100800000, 6.255828],[1341187200000, 6.255828],[1341273600000, 6.306758],[1341360000000, 6.327081],[1341446400000, 6.323117],[1341532800000, 6.327799],[1341619200000, 6.302043],[1341705600000, 6.302437],[1341792000000, 6.302437],[1341878400000, 6.286095],[1341964800000, 6.306616],[1342051200000, 6.322613],[1342137600000, 6.285191],[1342224000000, 6.300194],[1342310400000, 6.300194],[1342396800000, 6.300194],[1342483200000, 6.309527],[1342569600000, 6.335078],[1342656000000, 6.343173],[1342742400000, 6.376030],[1342828800000, 6.360201],[1342915200000, 6.360201],[1343001600000, 6.360201],[1343088000000, 6.338788],[1343174400000, 6.347043],[1343260800000, 6.354390],[1343347200000, 6.389814],[1343433600000, 6.389938],[1343520000000, 6.389938],[1343606400000, 6.389938],[1343692800000, 6.410943]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });