$(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: [[1277942400000,0.0339182],[1278028800000,0.0339184],[1278115200000,0.0347431],[1278201600000,0.0347431],[1278288000000,0.0347431],[1278374400000,0.0346314],[1278460800000,0.0349236],[1278547200000,0.0349316],[1278633600000,0.0355841],[1278720000000,0.035641],[1278806400000,0.035641],[1278892800000,0.035641],[1278979200000,0.035624],[1279065600000,0.0357533],[1279152000000,0.0361036],[1279238400000,0.0363358],[1279324800000,0.0365666],[1279411200000,0.0365666],[1279497600000,0.0365666],[1279584000000,0.0353936],[1279670400000,0.0349114],[1279756800000,0.0355281],[1279843200000,0.0358258],[1279929600000,0.0354615],[1280016000000,0.0354615],[1280102400000,0.0354615],[1280188800000,0.0355266],[1280275200000,0.0362603],[1280361600000,0.0363338],[1280448000000,0.0363469],[1280534400000,0.036001]], 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.033918],[1277942400000, 0.033918],[1278028800000, 0.033918],[1278115200000, 0.034743],[1278201600000, 0.034743],[1278288000000, 0.034743],[1278374400000, 0.034631],[1278460800000, 0.034924],[1278547200000, 0.034932],[1278633600000, 0.035584],[1278720000000, 0.035641],[1278806400000, 0.035641],[1278892800000, 0.035641],[1278979200000, 0.035624],[1279065600000, 0.035753],[1279152000000, 0.036104],[1279238400000, 0.036336],[1279324800000, 0.036567],[1279411200000, 0.036567],[1279497600000, 0.036567],[1279584000000, 0.035394],[1279670400000, 0.034911],[1279756800000, 0.035528],[1279843200000, 0.035826],[1279929600000, 0.035461],[1280016000000, 0.035461],[1280102400000, 0.035461],[1280188800000, 0.035527],[1280275200000, 0.036260],[1280361600000, 0.036334],[1280448000000, 0.036347],[1280534400000, 0.036001]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });