$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1146441600000,4.02927],[1146528000000,4.02927],[1146614400000,4.02927],[1146700800000,4.07995],[1146787200000,4.07208],[1146873600000,4.10339],[1146960000000,4.10339],[1147046400000,4.10339],[1147132800000,4.10339],[1147219200000,4.10339],[1147305600000,4.13918],[1147392000000,4.11851],[1147478400000,4.20855],[1147564800000,4.20855],[1147651200000,4.20855],[1147737600000,4.17637],[1147824000000,4.16914],[1147910400000,4.19217],[1147996800000,4.16243],[1148083200000,4.14327],[1148169600000,4.14327],[1148256000000,4.14327],[1148342400000,4.1526],[1148428800000,4.1791],[1148515200000,4.18451],[1148601600000,4.14017],[1148688000000,4.14554],[1148774400000,4.14554],[1148860800000,4.14554],[1148947200000,4.1255],[1149033600000,4.16021]], 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: [[1146441600000, 4.029266],[1146441600000, 4.029266],[1146528000000, 4.029266],[1146614400000, 4.029266],[1146700800000, 4.079953],[1146787200000, 4.072080],[1146873600000, 4.103388],[1146960000000, 4.103388],[1147046400000, 4.103388],[1147132800000, 4.103388],[1147219200000, 4.103388],[1147305600000, 4.139180],[1147392000000, 4.118509],[1147478400000, 4.208551],[1147564800000, 4.208551],[1147651200000, 4.208551],[1147737600000, 4.176369],[1147824000000, 4.169137],[1147910400000, 4.192170],[1147996800000, 4.162428],[1148083200000, 4.143265],[1148169600000, 4.143265],[1148256000000, 4.143265],[1148342400000, 4.152598],[1148428800000, 4.179097],[1148515200000, 4.184509],[1148601600000, 4.140169],[1148688000000, 4.145542],[1148774400000, 4.145542],[1148860800000, 4.145542],[1148947200000, 4.125498],[1149033600000, 4.160215]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });