$(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: [[1117584000000,0.024555],[1117670400000,0.024327],[1117756800000,0.0245221],[1117843200000,0.0247859],[1117929600000,0.0247859],[1118016000000,0.0247859],[1118102400000,0.0248777],[1118188800000,0.024895],[1118275200000,0.0249211],[1118361600000,0.0246919],[1118448000000,0.02473],[1118534400000,0.02473],[1118620800000,0.02473],[1118707200000,0.0244304],[1118793600000,0.0245867],[1118880000000,0.0245331],[1118966400000,null],[1119052800000,0.0248315],[1119139200000,0.0248315],[1119225600000,0.0248315],[1119312000000,null],[1119398400000,0.0246552],[1119484800000,0.0247128],[1119571200000,0.0246658],[1119657600000,0.0247095],[1119744000000,null],[1119830400000,null],[1119916800000,null],[1120003200000,null],[1120089600000,0.0246035]], 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: [[1117584000000, 0.024555],[1117584000000, 0.024555],[1117670400000, 0.024327],[1117756800000, 0.024522],[1117843200000, 0.024786],[1117929600000, 0.024786],[1118016000000, 0.024786],[1118102400000, 0.024878],[1118188800000, 0.024895],[1118275200000, 0.024921],[1118361600000, 0.024692],[1118448000000, 0.024730],[1118534400000, 0.024730],[1118620800000, 0.024730],[1118707200000, 0.024430],[1118793600000, 0.024587],[1118880000000, 0.024533],[1119052800000, 0.024831],[1119139200000, 0.024831],[1119225600000, 0.024831],[1119398400000, 0.024655],[1119484800000, 0.024713],[1119571200000, 0.024666],[1119657600000, 0.024709],[1120089600000, 0.024604]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });