$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1246406400000,0.679548],[1246492800000,0.679018],[1246579200000,0.678703],[1246665600000,0.679021],[1246752000000,0.679021],[1246838400000,0.679021],[1246924800000,0.679722],[1247011200000,0.679424],[1247097600000,0.678693],[1247184000000,0.679558],[1247270400000,0.679803],[1247356800000,0.679803],[1247443200000,0.679803],[1247529600000,0.680106],[1247616000000,0.680473],[1247702400000,0.681592],[1247788800000,0.682297],[1247875200000,0.68306],[1247961600000,0.68306],[1248048000000,0.68306],[1248134400000,0.684039],[1248220800000,0.683433],[1248307200000,0.683756],[1248393600000,0.683861],[1248480000000,0.684198],[1248566400000,0.684198],[1248652800000,0.684198],[1248739200000,0.68611],[1248825600000,0.686438],[1248912000000,0.687322],[1248998400000,0.686831]], 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, 0.679548],[1246406400000, 0.679548],[1246492800000, 0.679018],[1246579200000, 0.678703],[1246665600000, 0.679021],[1246752000000, 0.679021],[1246838400000, 0.679021],[1246924800000, 0.679722],[1247011200000, 0.679424],[1247097600000, 0.678693],[1247184000000, 0.679558],[1247270400000, 0.679803],[1247356800000, 0.679803],[1247443200000, 0.679803],[1247529600000, 0.680106],[1247616000000, 0.680473],[1247702400000, 0.681592],[1247788800000, 0.682297],[1247875200000, 0.683060],[1247961600000, 0.683060],[1248048000000, 0.683060],[1248134400000, 0.684039],[1248220800000, 0.683433],[1248307200000, 0.683756],[1248393600000, 0.683861],[1248480000000, 0.684198],[1248566400000, 0.684198],[1248652800000, 0.684198],[1248739200000, 0.686110],[1248825600000, 0.686438],[1248912000000, 0.687322],[1248998400000, 0.686831]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });