$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1259625600000,0.27479],[1259712000000,0.27382],[1259798400000,0.275],[1259884800000,0.27323],[1259971200000,0.27344],[1260057600000,0.27344],[1260144000000,0.27344],[1260230400000,0.27044],[1260316800000,0.26453],[1260403200000,0.25967],[1260489600000,0.26077],[1260576000000,0.26424],[1260662400000,0.26424],[1260748800000,0.26424],[1260835200000,0.26559],[1260921600000,0.26517],[1261008000000,0.26393],[1261094400000,0.26183],[1261180800000,0.25945],[1261267200000,0.25945],[1261353600000,0.25945],[1261440000000,0.26086],[1261526400000,0.26176],[1261612800000,0.26124],[1261699200000,0.26616],[1261785600000,0.27069],[1261872000000,0.27069],[1261958400000,0.27069],[1262044800000,0.26913],[1262131200000,0.26696],[1262217600000,0.26402]], 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, 0.274790],[1259625600000, 0.274790],[1259712000000, 0.273820],[1259798400000, 0.275000],[1259884800000, 0.273230],[1259971200000, 0.273440],[1260057600000, 0.273440],[1260144000000, 0.273440],[1260230400000, 0.270440],[1260316800000, 0.264530],[1260403200000, 0.259670],[1260489600000, 0.260770],[1260576000000, 0.264240],[1260662400000, 0.264240],[1260748800000, 0.264240],[1260835200000, 0.265590],[1260921600000, 0.265170],[1261008000000, 0.263930],[1261094400000, 0.261830],[1261180800000, 0.259450],[1261267200000, 0.259450],[1261353600000, 0.259450],[1261440000000, 0.260860],[1261526400000, 0.261760],[1261612800000, 0.261240],[1261699200000, 0.266160],[1261785600000, 0.270690],[1261872000000, 0.270690],[1261958400000, 0.270690],[1262044800000, 0.269130],[1262131200000, 0.266960],[1262217600000, 0.264020]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });