$(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: [[1301616000000,2.79298],[1301702400000,2.79298],[1301788800000,2.79298],[1301875200000,2.79298],[1301961600000,2.79383],[1302048000000,2.79463],[1302134400000,2.79463],[1302220800000,2.79463],[1302307200000,2.79463],[1302393600000,2.79463],[1302480000000,2.79463],[1302566400000,2.79432],[1302652800000,2.79558],[1302739200000,2.79625],[1302825600000,2.79551],[1302912000000,2.79551],[1302998400000,2.79551],[1303084800000,2.79551],[1303171200000,2.79621],[1303257600000,2.79488],[1303344000000,2.79488],[1303430400000,2.79488],[1303516800000,2.79488],[1303603200000,2.79488],[1303689600000,2.79488],[1303776000000,2.79488],[1303862400000,2.79488],[1303948800000,2.79488],[1304035200000,2.79488],[1304121600000,2.79484]], 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: [[1301616000000, 2.792982],[1301616000000, 2.792982],[1301702400000, 2.792982],[1301788800000, 2.792982],[1301875200000, 2.792982],[1301961600000, 2.793825],[1302048000000, 2.794632],[1302134400000, 2.794632],[1302220800000, 2.794632],[1302307200000, 2.794632],[1302393600000, 2.794632],[1302480000000, 2.794632],[1302566400000, 2.794316],[1302652800000, 2.795579],[1302739200000, 2.796246],[1302825600000, 2.795509],[1302912000000, 2.795509],[1302998400000, 2.795509],[1303084800000, 2.795509],[1303171200000, 2.796211],[1303257600000, 2.794877],[1303344000000, 2.794877],[1303430400000, 2.794877],[1303516800000, 2.794877],[1303603200000, 2.794877],[1303689600000, 2.794877],[1303776000000, 2.794877],[1303862400000, 2.794877],[1303948800000, 2.794877],[1304035200000, 2.794877],[1304121600000, 2.794842]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });