$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1288569600000,3.17489],[1288656000000,3.1934],[1288742400000,3.21491],[1288828800000,3.2144],[1288915200000,3.26723],[1289001600000,3.22841],[1289088000000,3.22841],[1289174400000,3.22841],[1289260800000,3.19094],[1289347200000,3.19494],[1289433600000,3.15456],[1289520000000,3.14277],[1289606400000,3.14887],[1289692800000,3.14887],[1289779200000,3.14887],[1289865600000,3.13053],[1289952000000,3.1285],[1290038400000,3.09917],[1290124800000,3.13733],[1290211200000,3.14354],[1290297600000,3.14354],[1290384000000,3.14354],[1290470400000,3.13733],[1290556800000,3.10262],[1290643200000,3.06691],[1290729600000,3.06277],[1290816000000,3.04043],[1290902400000,3.04043],[1290988800000,3.04043],[1291075200000,3.02227]], 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: [[1288569600000, 3.174894],[1288569600000, 3.174894],[1288656000000, 3.193405],[1288742400000, 3.214908],[1288828800000, 3.214396],[1288915200000, 3.267234],[1289001600000, 3.228413],[1289088000000, 3.228413],[1289174400000, 3.228413],[1289260800000, 3.190938],[1289347200000, 3.194935],[1289433600000, 3.154562],[1289520000000, 3.142771],[1289606400000, 3.148868],[1289692800000, 3.148868],[1289779200000, 3.148868],[1289865600000, 3.130531],[1289952000000, 3.128497],[1290038400000, 3.099170],[1290124800000, 3.137332],[1290211200000, 3.143539],[1290297600000, 3.143539],[1290384000000, 3.143539],[1290470400000, 3.137332],[1290556800000, 3.102618],[1290643200000, 3.066911],[1290729600000, 3.062773],[1290816000000, 3.040432],[1290902400000, 3.040432],[1290988800000, 3.040432],[1291075200000, 3.022270]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });