$(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: [[1385856000000,2.80456],[1385942400000,2.80456],[1386028800000,2.80456],[1386115200000,2.80456],[1386201600000,2.80456],[1386288000000,2.80456],[1386374400000,2.80456],[1386460800000,2.80456],[1386547200000,2.80456],[1386633600000,2.80456],[1386720000000,2.80456],[1386806400000,2.80456],[1386892800000,2.80456],[1386979200000,2.80456],[1387065600000,2.80456],[1387152000000,2.80456],[1387238400000,2.80456],[1387324800000,2.80456],[1387411200000,2.80456],[1387497600000,2.80456],[1387584000000,2.80456],[1387670400000,2.80456],[1387756800000,2.80456],[1387843200000,2.80456],[1387929600000,2.80456],[1388016000000,2.80456],[1388102400000,2.80456],[1388188800000,2.80456],[1388275200000,2.80456],[1388361600000,2.80456],[1388448000000,2.80456]], 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: [[1385856000000, 2.804561],[1385856000000, 2.804561],[1385942400000, 2.804561],[1386028800000, 2.804561],[1386115200000, 2.804561],[1386201600000, 2.804561],[1386288000000, 2.804561],[1386374400000, 2.804561],[1386460800000, 2.804561],[1386547200000, 2.804561],[1386633600000, 2.804561],[1386720000000, 2.804561],[1386806400000, 2.804561],[1386892800000, 2.804561],[1386979200000, 2.804561],[1387065600000, 2.804561],[1387152000000, 2.804561],[1387238400000, 2.804561],[1387324800000, 2.804561],[1387411200000, 2.804561],[1387497600000, 2.804561],[1387584000000, 2.804561],[1387670400000, 2.804561],[1387756800000, 2.804561],[1387843200000, 2.804561],[1387929600000, 2.804561],[1388016000000, 2.804561],[1388102400000, 2.804561],[1388188800000, 2.804561],[1388275200000, 2.804561],[1388361600000, 2.804561],[1388448000000, 2.804561]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });