$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1318032000000,0.0361074],[1318118400000,0.0361074],[1318204800000,0.0361074],[1318291200000,0.0369118],[1318377600000,0.0367682],[1318464000000,0.0375872],[1318550400000,0.0375197],[1318636800000,0.0376223],[1318723200000,0.0376223],[1318809600000,0.0376223],[1318896000000,0.0373795],[1318982400000,0.0365535],[1319068800000,0.0372846],[1319155200000,0.0371727],[1319241600000,0.0368722],[1319328000000,0.0368722],[1319414400000,0.0368722],[1319500800000,0.0371591],[1319587200000,0.0373692],[1319673600000,0.0372942],[1319760000000,0.0370553]], 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: [[1318032000000, 0.036107],[1318032000000, 0.036107],[1318118400000, 0.036107],[1318204800000, 0.036107],[1318291200000, 0.036912],[1318377600000, 0.036768],[1318464000000, 0.037587],[1318550400000, 0.037520],[1318636800000, 0.037622],[1318723200000, 0.037622],[1318809600000, 0.037622],[1318896000000, 0.037380],[1318982400000, 0.036554],[1319068800000, 0.037285],[1319155200000, 0.037173],[1319241600000, 0.036872],[1319328000000, 0.036872],[1319414400000, 0.036872],[1319500800000, 0.037159],[1319587200000, 0.037369],[1319673600000, 0.037294],[1319760000000, 0.037055]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });