$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1346457600000,2.91936],[1346544000000,2.91936],[1346630400000,2.91936],[1346716800000,2.90941],[1346803200000,2.91195],[1346889600000,2.91172],[1346976000000,2.92561],[1347062400000,2.94135],[1347148800000,2.94135],[1347235200000,2.94135],[1347321600000,2.95756],[1347408000000,2.9601],[1347494400000,2.98534],[1347580800000,2.98858],[1347667200000,3.0314],[1347753600000,3.0314],[1347840000000,3.0314],[1347926400000,3.02932],[1348012800000,3.02191],[1348099200000,3.00988],[1348185600000,2.99876],[1348272000000,3.00664],[1348358400000,3.00664],[1348444800000,3.00664],[1348531200000,2.98997],[1348617600000,2.99367],[1348704000000,2.97353],[1348790400000,2.98024],[1348876800000,2.99321],[1348963200000,2.99321]], 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: [[1346457600000, 2.919362],[1346457600000, 2.919362],[1346544000000, 2.919362],[1346630400000, 2.919362],[1346716800000, 2.909408],[1346803200000, 2.911954],[1346889600000, 2.911722],[1346976000000, 2.925612],[1347062400000, 2.941354],[1347148800000, 2.941354],[1347235200000, 2.941354],[1347321600000, 2.957558],[1347408000000, 2.960105],[1347494400000, 2.985337],[1347580800000, 2.988578],[1347667200000, 3.031405],[1347753600000, 3.031405],[1347840000000, 3.031405],[1347926400000, 3.029321],[1348012800000, 3.021913],[1348099200000, 3.009876],[1348185600000, 2.998764],[1348272000000, 3.006635],[1348358400000, 3.006635],[1348444800000, 3.006635],[1348531200000, 2.989967],[1348617600000, 2.993671],[1348704000000, 2.973531],[1348790400000, 2.980244],[1348876800000, 2.993208],[1348963200000, 2.993208]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });