$(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: [[1267401600000,5.67964],[1267488000000,5.67985],[1267574400000,5.68923],[1267660800000,5.70089],[1267747200000,5.71082],[1267833600000,5.70596],[1267920000000,5.70596],[1268006400000,5.70596],[1268092800000,5.70596],[1268179200000,5.69979],[1268265600000,5.70711],[1268352000000,5.70769],[1268438400000,5.72621],[1268524800000,5.72621],[1268611200000,5.72621],[1268697600000,5.70984],[1268784000000,5.71466],[1268870400000,5.72491],[1268956800000,5.72228],[1269043200000,5.70426],[1269129600000,5.70426],[1269216000000,5.70426],[1269302400000,5.66262],[1269388800000,5.67223],[1269475200000,5.64795],[1269561600000,5.64489],[1269648000000,5.64562],[1269734400000,5.64562],[1269820800000,5.64562],[1269907200000,5.66504],[1269993600000,5.66425]], 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: [[1267401600000, 5.679639],[1267401600000, 5.679639],[1267488000000, 5.679846],[1267574400000, 5.689234],[1267660800000, 5.700887],[1267747200000, 5.710819],[1267833600000, 5.705955],[1267920000000, 5.705955],[1268006400000, 5.705955],[1268092800000, 5.705955],[1268179200000, 5.699794],[1268265600000, 5.707106],[1268352000000, 5.707689],[1268438400000, 5.726206],[1268524800000, 5.726206],[1268611200000, 5.726206],[1268697600000, 5.709844],[1268784000000, 5.714657],[1268870400000, 5.724908],[1268956800000, 5.722277],[1269043200000, 5.704263],[1269129600000, 5.704263],[1269216000000, 5.704263],[1269302400000, 5.662618],[1269388800000, 5.672229],[1269475200000, 5.647955],[1269561600000, 5.644894],[1269648000000, 5.645622],[1269734400000, 5.645622],[1269820800000, 5.645622],[1269907200000, 5.665040],[1269993600000, 5.664255]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });