$(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: [[1246406400000,2.68088],[1246492800000,2.68053],[1246579200000,2.68014],[1246665600000,2.6799],[1246752000000,2.6799],[1246838400000,2.6799],[1246924800000,2.6799],[1247011200000,2.67719],[1247097600000,2.67526],[1247184000000,2.67453],[1247270400000,2.67523],[1247356800000,2.67523],[1247443200000,2.67523],[1247529600000,2.67523],[1247616000000,2.67593],[1247702400000,2.67758],[1247788800000,2.68088],[1247875200000,2.68474],[1247961600000,2.68474],[1248048000000,2.68474],[1248134400000,2.68849],[1248220800000,2.68786],[1248307200000,2.68884],[1248393600000,2.68877],[1248480000000,2.68986],[1248566400000,2.68986],[1248652800000,2.68986],[1248739200000,2.69877],[1248825600000,2.69828],[1248912000000,2.70175],[1248998400000,2.70105]], 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: [[1246406400000, 2.680877],[1246406400000, 2.680877],[1246492800000, 2.680526],[1246579200000, 2.680140],[1246665600000, 2.679895],[1246752000000, 2.679895],[1246838400000, 2.679895],[1246924800000, 2.679895],[1247011200000, 2.677193],[1247097600000, 2.675263],[1247184000000, 2.674526],[1247270400000, 2.675228],[1247356800000, 2.675228],[1247443200000, 2.675228],[1247529600000, 2.675228],[1247616000000, 2.675930],[1247702400000, 2.677579],[1247788800000, 2.680877],[1247875200000, 2.684737],[1247961600000, 2.684737],[1248048000000, 2.684737],[1248134400000, 2.688491],[1248220800000, 2.687860],[1248307200000, 2.688842],[1248393600000, 2.688772],[1248480000000, 2.689860],[1248566400000, 2.689860],[1248652800000, 2.689860],[1248739200000, 2.698772],[1248825600000, 2.698281],[1248912000000, 2.701754],[1248998400000, 2.701053]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });