$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1112313600000,0.00108833],[1112400000000,0.00108901],[1112486400000,0.00108901],[1112572800000,0.00108901],[1112659200000,0.00108864],[1112745600000,0.00108931],[1112832000000,0.00108875],[1112918400000,0.00108914],[1113004800000,0.00108862],[1113091200000,0.00108862],[1113177600000,0.00108862],[1113264000000,0.00108886],[1113350400000,0.00108879],[1113436800000,0.00108755],[1113523200000,0.00108752],[1113609600000,0.00108408],[1113696000000,0.00108408],[1113782400000,0.00108408],[1113868800000,0.00108075],[1113955200000,0.0010752],[1114041600000,0.00104685],[1114128000000,0.00104728],[1114214400000,0.00104794],[1114300800000,0.00104794],[1114387200000,0.00104794],[1114473600000,0.00104837],[1114560000000,0.00104902],[1114646400000,0.00104859],[1114732800000,0.00104968],[1114819200000,0.00105055]], 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: [[1112313600000, 0.001088],[1112313600000, 0.001088],[1112400000000, 0.001089],[1112486400000, 0.001089],[1112572800000, 0.001089],[1112659200000, 0.001089],[1112745600000, 0.001089],[1112832000000, 0.001089],[1112918400000, 0.001089],[1113004800000, 0.001089],[1113091200000, 0.001089],[1113177600000, 0.001089],[1113264000000, 0.001089],[1113350400000, 0.001089],[1113436800000, 0.001088],[1113523200000, 0.001088],[1113609600000, 0.001084],[1113696000000, 0.001084],[1113782400000, 0.001084],[1113868800000, 0.001081],[1113955200000, 0.001075],[1114041600000, 0.001047],[1114128000000, 0.001047],[1114214400000, 0.001048],[1114300800000, 0.001048],[1114387200000, 0.001048],[1114473600000, 0.001048],[1114560000000, 0.001049],[1114646400000, 0.001049],[1114732800000, 0.001050],[1114819200000, 0.001051]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });