$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1257033600000,2.80456],[1257120000000,2.80456],[1257206400000,2.80597],[1257292800000,2.81109],[1257379200000,2.81221],[1257465600000,2.81186],[1257552000000,2.80456],[1257638400000,2.80456],[1257724800000,2.80456],[1257811200000,2.80361],[1257897600000,2.80351],[1257984000000,2.80414],[1258070400000,2.80572],[1258156800000,2.80561],[1258243200000,2.80561],[1258329600000,2.80561],[1258416000000,2.80467],[1258502400000,2.80361],[1258588800000,2.80382],[1258675200000,2.80351],[1258761600000,2.80351],[1258848000000,2.80351],[1258934400000,2.80351],[1259020800000,2.80351],[1259107200000,2.80351],[1259193600000,2.80175],[1259280000000,2.80035],[1259366400000,2.80032],[1259452800000,2.80032],[1259539200000,2.80032]], 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, 2.804561],[1257033600000, 2.804561],[1257120000000, 2.804561],[1257206400000, 2.805965],[1257292800000, 2.811088],[1257379200000, 2.812211],[1257465600000, 2.811860],[1257552000000, 2.804561],[1257638400000, 2.804561],[1257724800000, 2.804561],[1257811200000, 2.803614],[1257897600000, 2.803509],[1257984000000, 2.804140],[1258070400000, 2.805719],[1258156800000, 2.805614],[1258243200000, 2.805614],[1258329600000, 2.805614],[1258416000000, 2.804667],[1258502400000, 2.803614],[1258588800000, 2.803825],[1258675200000, 2.803509],[1258761600000, 2.803509],[1258848000000, 2.803509],[1258934400000, 2.803509],[1259020800000, 2.803509],[1259107200000, 2.803509],[1259193600000, 2.801754],[1259280000000, 2.800351],[1259366400000, 2.800316],[1259452800000, 2.800316],[1259539200000, 2.800316]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });