$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1117584000000,8.90653],[1117670400000,8.86842],[1117756800000,8.76083],[1117843200000,8.83741],[1117929600000,8.83741],[1118016000000,8.83741],[1118102400000,8.80662],[1118188800000,8.82199],[1118275200000,8.86842],[1118361600000,8.7913],[1118448000000,8.7913],[1118534400000,8.7913],[1118620800000,8.7913],[1118707200000,8.70052],[1118793600000,8.73057],[1118880000000,8.67067],[1118966400000,null],[1119052800000,8.70052],[1119139200000,8.70052],[1119225600000,8.70052],[1119312000000,null],[1119398400000,8.73057],[1119484800000,8.73057],[1119571200000,8.73057],[1119657600000,8.73057],[1119744000000,null],[1119830400000,null],[1119916800000,null],[1120003200000,null],[1120089600000,8.67067]], 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, 8.906526],[1117584000000, 8.906526],[1117670400000, 8.868421],[1117756800000, 8.760832],[1117843200000, 8.837413],[1117929600000, 8.837413],[1118016000000, 8.837413],[1118102400000, 8.806620],[1118188800000, 8.821990],[1118275200000, 8.868421],[1118361600000, 8.791304],[1118448000000, 8.791304],[1118534400000, 8.791304],[1118620800000, 8.791304],[1118707200000, 8.700516],[1118793600000, 8.730570],[1118880000000, 8.670669],[1119052800000, 8.700516],[1119139200000, 8.700516],[1119225600000, 8.700516],[1119398400000, 8.730570],[1119484800000, 8.730570],[1119571200000, 8.730570],[1119657600000, 8.730570],[1120089600000, 8.670669]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });