$(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: [[1356998400000,0.662583],[1357084800000,0.662583],[1357171200000,0.662583],[1357257600000,0.661732],[1357344000000,0.660775],[1357430400000,0.660775],[1357516800000,0.660775],[1357603200000,0.660775],[1357689600000,0.660775],[1357776000000,0.660366],[1357862400000,0.658543],[1357948800000,0.65582],[1358035200000,0.65582],[1358121600000,0.65582],[1358208000000,0.654167],[1358294400000,0.654912],[1358380800000,0.656003],[1358467200000,0.655642],[1358553600000,0.656191],[1358640000000,0.656191],[1358726400000,0.656191],[1358812800000,0.658521],[1358899200000,0.659439],[1358985600000,0.660649],[1359072000000,0.660109],[1359158400000,0.659663],[1359244800000,0.659663],[1359331200000,0.659663],[1359417600000,0.657995],[1359504000000,0.65863],[1359590400000,0.65938]], 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: [[1356998400000, 0.662583],[1356998400000, 0.662583],[1357084800000, 0.662583],[1357171200000, 0.662583],[1357257600000, 0.661732],[1357344000000, 0.660775],[1357430400000, 0.660775],[1357516800000, 0.660775],[1357603200000, 0.660775],[1357689600000, 0.660775],[1357776000000, 0.660366],[1357862400000, 0.658543],[1357948800000, 0.655820],[1358035200000, 0.655820],[1358121600000, 0.655820],[1358208000000, 0.654167],[1358294400000, 0.654912],[1358380800000, 0.656003],[1358467200000, 0.655642],[1358553600000, 0.656191],[1358640000000, 0.656191],[1358726400000, 0.656191],[1358812800000, 0.658521],[1358899200000, 0.659439],[1358985600000, 0.660649],[1359072000000, 0.660109],[1359158400000, 0.659663],[1359244800000, 0.659663],[1359331200000, 0.659663],[1359417600000, 0.657995],[1359504000000, 0.658630],[1359590400000, 0.659380]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });