$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1496275200000,27.0951],[1496361600000,27.082],[1496448000000,27.0626],[1496534400000,27.0626],[1496620800000,27.0626],[1496707200000,27.0626],[1496793600000,27.231],[1496880000000,27.1093],[1496966400000,27.0477],[1497052800000,26.8775],[1497139200000,26.8775],[1497225600000,26.8775],[1497312000000,26.9448],[1497398400000,26.8745],[1497484800000,26.8021],[1497571200000,26.7055],[1497657600000,26.6961],[1497744000000,26.6961],[1497830400000,26.6961],[1497916800000,26.8108],[1498003200000,26.7593],[1498089600000,26.7187],[1498176000000,26.749],[1498262400000,26.8036],[1498348800000,26.8036],[1498435200000,26.8036],[1498521600000,26.7688],[1498608000000,27.0267],[1498694400000,27.0267],[1498780800000,27.2399]], 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: [[1496275200000, 27.095105],[1496275200000, 27.095105],[1496361600000, 27.082038],[1496448000000, 27.062635],[1496534400000, 27.062635],[1496620800000, 27.062635],[1496707200000, 27.062635],[1496793600000, 27.231043],[1496880000000, 27.109299],[1496966400000, 27.047672],[1497052800000, 26.877502],[1497139200000, 26.877502],[1497225600000, 26.877502],[1497312000000, 26.944768],[1497398400000, 26.874497],[1497484800000, 26.802071],[1497571200000, 26.705485],[1497657600000, 26.696055],[1497744000000, 26.696055],[1497830400000, 26.696055],[1497916800000, 26.810762],[1498003200000, 26.759270],[1498089600000, 26.718715],[1498176000000, 26.748964],[1498262400000, 26.803577],[1498348800000, 26.803577],[1498435200000, 26.803577],[1498521600000, 26.768818],[1498608000000, 27.026702],[1498694400000, 27.026702],[1498780800000, 27.239855]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });