$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1044057600000,8.7968],[1044144000000,8.7968],[1044230400000,8.7968],[1044316800000,8.73137],[1044403200000,8.78326],[1044489600000,8.80644],[1044576000000,8.68182],[1044662400000,8.68182],[1044748800000,8.68182],[1044835200000,8.68182],[1044921600000,8.71585],[1045008000000,8.64405],[1045094400000,8.63717],[1045180800000,8.62244],[1045267200000,8.62244],[1045353600000,8.62244],[1045440000000,8.62244],[1045526400000,8.5139],[1045612800000,8.49856],[1045699200000,8.49856],[1045785600000,8.51445],[1045872000000,8.51445],[1045958400000,8.51445],[1046044800000,8.51445],[1046131200000,8.40262],[1046217600000,8.40262],[1046304000000,8.40837],[1046390400000,8.4064]], 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: [[1044057600000, 8.796800],[1044057600000, 8.796800],[1044144000000, 8.796800],[1044230400000, 8.796800],[1044316800000, 8.731370],[1044403200000, 8.783260],[1044489600000, 8.806440],[1044576000000, 8.681820],[1044662400000, 8.681820],[1044748800000, 8.681820],[1044835200000, 8.681820],[1044921600000, 8.715850],[1045008000000, 8.644050],[1045094400000, 8.637170],[1045180800000, 8.622440],[1045267200000, 8.622440],[1045353600000, 8.622440],[1045440000000, 8.622440],[1045526400000, 8.513900],[1045612800000, 8.498560],[1045699200000, 8.498560],[1045785600000, 8.514450],[1045872000000, 8.514450],[1045958400000, 8.514450],[1046044800000, 8.514450],[1046131200000, 8.402620],[1046217600000, 8.402620],[1046304000000, 8.408370],[1046390400000, 8.406400]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });