$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1259625600000,5.22196],[1259712000000,5.31415],[1259798400000,5.33006],[1259884800000,5.39012],[1259971200000,5.38678],[1260057600000,5.38678],[1260144000000,5.38678],[1260230400000,5.33409],[1260316800000,5.30409],[1260403200000,5.31929],[1260489600000,5.34247],[1260576000000,5.34056],[1260662400000,5.34056],[1260748800000,5.34056],[1260835200000,5.30772],[1260921600000,5.27184],[1261008000000,5.28323],[1261094400000,5.24591],[1261180800000,5.23915],[1261267200000,5.23915],[1261353600000,5.23915],[1261440000000,5.23081],[1261526400000,5.22017],[1261612800000,5.22178],[1261699200000,5.26194],[1261785600000,5.26161],[1261872000000,5.26161],[1261958400000,5.26161],[1262044800000,5.26867],[1262131200000,5.28584],[1262217600000,5.27842]], 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: [[1259625600000, 5.221963],[1259625600000, 5.221963],[1259712000000, 5.314147],[1259798400000, 5.330061],[1259884800000, 5.390122],[1259971200000, 5.386778],[1260057600000, 5.386778],[1260144000000, 5.386778],[1260230400000, 5.334090],[1260316800000, 5.304092],[1260403200000, 5.319291],[1260489600000, 5.342468],[1260576000000, 5.340565],[1260662400000, 5.340565],[1260748800000, 5.340565],[1260835200000, 5.307717],[1260921600000, 5.271840],[1261008000000, 5.283228],[1261094400000, 5.245914],[1261180800000, 5.239151],[1261267200000, 5.239151],[1261353600000, 5.239151],[1261440000000, 5.230813],[1261526400000, 5.220174],[1261612800000, 5.221776],[1261699200000, 5.261938],[1261785600000, 5.261608],[1261872000000, 5.261608],[1261958400000, 5.261608],[1262044800000, 5.268670],[1262131200000, 5.285842],[1262217600000, 5.278420]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });