$(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: [[1151712000000,0.0226577],[1151798400000,0.0226577],[1151884800000,0.0226577],[1151971200000,0.0228611],[1152057600000,0.0230728],[1152144000000,0.023079],[1152230400000,0.0228437],[1152316800000,0.0229428],[1152403200000,0.0229428],[1152489600000,0.0229428],[1152576000000,0.0229173],[1152662400000,0.0232594],[1152748800000,0.0231517],[1152835200000,0.0228967],[1152921600000,0.0226459],[1153008000000,0.0226459],[1153094400000,0.0226459],[1153180800000,0.0225815],[1153267200000,0.0227264],[1153353600000,0.0226847],[1153440000000,0.0232171],[1153526400000,0.023194],[1153612800000,0.023194],[1153699200000,0.023194],[1153785600000,0.0231097],[1153872000000,0.0234258],[1153958400000,0.0232999],[1154044800000,0.0236791],[1154131200000,0.0235425],[1154217600000,0.0235425],[1154304000000,0.0235425]], 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: [[1151712000000, 0.022658],[1151712000000, 0.022658],[1151798400000, 0.022658],[1151884800000, 0.022658],[1151971200000, 0.022861],[1152057600000, 0.023073],[1152144000000, 0.023079],[1152230400000, 0.022844],[1152316800000, 0.022943],[1152403200000, 0.022943],[1152489600000, 0.022943],[1152576000000, 0.022917],[1152662400000, 0.023259],[1152748800000, 0.023152],[1152835200000, 0.022897],[1152921600000, 0.022646],[1153008000000, 0.022646],[1153094400000, 0.022646],[1153180800000, 0.022582],[1153267200000, 0.022726],[1153353600000, 0.022685],[1153440000000, 0.023217],[1153526400000, 0.023194],[1153612800000, 0.023194],[1153699200000, 0.023194],[1153785600000, 0.023110],[1153872000000, 0.023426],[1153958400000, 0.023300],[1154044800000, 0.023679],[1154131200000, 0.023543],[1154217600000, 0.023543],[1154304000000, 0.023543]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });