$(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: [[1277942400000,0.615668],[1278028800000,0.615942],[1278115200000,0.61615],[1278201600000,0.61615],[1278288000000,0.61615],[1278374400000,0.616156],[1278460800000,0.616289],[1278547200000,0.616416],[1278633600000,0.61738],[1278720000000,0.61816],[1278806400000,0.61816],[1278892800000,0.61816],[1278979200000,0.618932],[1279065600000,0.620471],[1279152000000,0.622083],[1279238400000,0.624658],[1279324800000,0.62662],[1279411200000,0.62662],[1279497600000,0.62662],[1279584000000,0.62889],[1279670400000,0.632376],[1279756800000,0.633751],[1279843200000,0.635635],[1279929600000,0.638623],[1280016000000,0.638623],[1280102400000,0.638623],[1280188800000,0.639671],[1280275200000,0.640472],[1280361600000,0.641505],[1280448000000,0.642743],[1280534400000,0.643262]], 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: [[1277942400000, 0.615668],[1277942400000, 0.615668],[1278028800000, 0.615942],[1278115200000, 0.616150],[1278201600000, 0.616150],[1278288000000, 0.616150],[1278374400000, 0.616156],[1278460800000, 0.616289],[1278547200000, 0.616416],[1278633600000, 0.617380],[1278720000000, 0.618160],[1278806400000, 0.618160],[1278892800000, 0.618160],[1278979200000, 0.618932],[1279065600000, 0.620471],[1279152000000, 0.622083],[1279238400000, 0.624658],[1279324800000, 0.626620],[1279411200000, 0.626620],[1279497600000, 0.626620],[1279584000000, 0.628890],[1279670400000, 0.632376],[1279756800000, 0.633751],[1279843200000, 0.635635],[1279929600000, 0.638623],[1280016000000, 0.638623],[1280102400000, 0.638623],[1280188800000, 0.639671],[1280275200000, 0.640472],[1280361600000, 0.641505],[1280448000000, 0.642743],[1280534400000, 0.643262]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });