$(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: [[1257033600000,5.35036],[1257120000000,5.35036],[1257206400000,5.32749],[1257292800000,5.31135],[1257379200000,5.35469],[1257465600000,5.38394],[1257552000000,5.38519],[1257638400000,5.38519],[1257724800000,5.38519],[1257811200000,5.41505],[1257897600000,5.40785],[1257984000000,5.43817],[1258070400000,5.40378],[1258156800000,5.39648],[1258243200000,5.39648],[1258329600000,5.39648],[1258416000000,5.41462],[1258502400000,5.39028],[1258588800000,5.39593],[1258675200000,5.35779],[1258761600000,5.33303],[1258848000000,5.33303],[1258934400000,5.33303],[1259020800000,5.33832],[1259107200000,5.33701],[1259193600000,5.36878],[1259280000000,5.27621],[1259366400000,5.21503],[1259452800000,5.21503],[1259539200000,5.21503]], 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: [[1257033600000, 5.350357],[1257033600000, 5.350357],[1257120000000, 5.350357],[1257206400000, 5.327486],[1257292800000, 5.311354],[1257379200000, 5.354687],[1257465600000, 5.383938],[1257552000000, 5.385193],[1257638400000, 5.385193],[1257724800000, 5.385193],[1257811200000, 5.415045],[1257897600000, 5.407848],[1257984000000, 5.438171],[1258070400000, 5.403776],[1258156800000, 5.396483],[1258243200000, 5.396483],[1258329600000, 5.396483],[1258416000000, 5.414618],[1258502400000, 5.390282],[1258588800000, 5.395932],[1258675200000, 5.357788],[1258761600000, 5.333026],[1258848000000, 5.333026],[1258934400000, 5.333026],[1259020800000, 5.338317],[1259107200000, 5.337006],[1259193600000, 5.368776],[1259280000000, 5.276205],[1259366400000, 5.215027],[1259452800000, 5.215027],[1259539200000, 5.215027]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });