$(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: [[1318032000000,4.31389],[1318118400000,4.31389],[1318204800000,4.31389],[1318291200000,4.34866],[1318377600000,4.3264],[1318464000000,4.35787],[1318550400000,4.34903],[1318636800000,4.33699],[1318723200000,4.33699],[1318809600000,4.33699],[1318896000000,4.30639],[1318982400000,4.2661],[1319068800000,4.30191],[1319155200000,4.28551],[1319241600000,4.31344],[1319328000000,4.31344],[1319414400000,4.31344],[1319500800000,4.37617],[1319587200000,4.44852],[1319673600000,4.51986],[1319760000000,4.51573]], 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: [[1318032000000, 4.313890],[1318032000000, 4.313890],[1318118400000, 4.313890],[1318204800000, 4.313890],[1318291200000, 4.348658],[1318377600000, 4.326402],[1318464000000, 4.357867],[1318550400000, 4.349028],[1318636800000, 4.336989],[1318723200000, 4.336989],[1318809600000, 4.336989],[1318896000000, 4.306390],[1318982400000, 4.266101],[1319068800000, 4.301907],[1319155200000, 4.285511],[1319241600000, 4.313437],[1319328000000, 4.313437],[1319414400000, 4.313437],[1319500800000, 4.376165],[1319587200000, 4.448517],[1319673600000, 4.519857],[1319760000000, 4.515732]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });