$(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: [[1220227200000,0.0300441],[1220313600000,0.029814],[1220400000000,0.0295517],[1220486400000,0.0293276],[1220572800000,0.0294354],[1220659200000,0.0285635],[1220745600000,0.0285635],[1220832000000,0.0285635],[1220918400000,0.0285996],[1221004800000,0.0286829],[1221091200000,0.0283275],[1221177600000,0.0280361],[1221264000000,0.0284842],[1221350400000,0.0284842],[1221436800000,0.0284842],[1221523200000,0.0284976],[1221609600000,0.0284466],[1221696000000,0.0285262],[1221782400000,0.0290525],[1221868800000,0.0287793],[1221955200000,0.0287793],[1222041600000,0.0287793],[1222128000000,0.0294572],[1222214400000,0.0297135],[1222300800000,0.0295827],[1222387200000,0.0296851],[1222473600000,0.0295726],[1222560000000,0.0295726],[1222646400000,0.0295726],[1222732800000,0.0287489]], 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: [[1220227200000, 0.030044],[1220227200000, 0.030044],[1220313600000, 0.029814],[1220400000000, 0.029552],[1220486400000, 0.029328],[1220572800000, 0.029435],[1220659200000, 0.028563],[1220745600000, 0.028563],[1220832000000, 0.028563],[1220918400000, 0.028600],[1221004800000, 0.028683],[1221091200000, 0.028327],[1221177600000, 0.028036],[1221264000000, 0.028484],[1221350400000, 0.028484],[1221436800000, 0.028484],[1221523200000, 0.028498],[1221609600000, 0.028447],[1221696000000, 0.028526],[1221782400000, 0.029052],[1221868800000, 0.028779],[1221955200000, 0.028779],[1222041600000, 0.028779],[1222128000000, 0.029457],[1222214400000, 0.029714],[1222300800000, 0.029583],[1222387200000, 0.029685],[1222473600000, 0.029573],[1222560000000, 0.029573],[1222646400000, 0.029573],[1222732800000, 0.028749]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });