$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1496275200000,3.86177],[1496361600000,3.85833],[1496448000000,3.85315],[1496534400000,3.85315],[1496620800000,3.85315],[1496707200000,3.85315],[1496793600000,3.86299],[1496880000000,3.85488],[1496966400000,3.84674],[1497052800000,3.84364],[1497139200000,3.84364],[1497225600000,3.84364],[1497312000000,3.83487],[1497398400000,3.82436],[1497484800000,3.82741],[1497571200000,3.82175],[1497657600000,3.81903],[1497744000000,3.81903],[1497830400000,3.81903],[1497916800000,3.81747],[1498003200000,3.81367],[1498089600000,3.81234],[1498176000000,3.80856],[1498262400000,3.80623],[1498348800000,3.80623],[1498435200000,3.80623],[1498521600000,3.80543],[1498608000000,3.8272],[1498694400000,3.8272],[1498780800000,3.84782]], 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, 3.861768],[1496275200000, 3.861768],[1496361600000, 3.858328],[1496448000000, 3.853154],[1496534400000, 3.853154],[1496620800000, 3.853154],[1496707200000, 3.853154],[1496793600000, 3.862991],[1496880000000, 3.854880],[1496966400000, 3.846742],[1497052800000, 3.843636],[1497139200000, 3.843636],[1497225600000, 3.843636],[1497312000000, 3.834872],[1497398400000, 3.824360],[1497484800000, 3.827409],[1497571200000, 3.821747],[1497657600000, 3.819035],[1497744000000, 3.819035],[1497830400000, 3.819035],[1497916800000, 3.817466],[1498003200000, 3.813668],[1498089600000, 3.812344],[1498176000000, 3.808563],[1498262400000, 3.806232],[1498348800000, 3.806232],[1498435200000, 3.806232],[1498521600000, 3.805431],[1498608000000, 3.827197],[1498694400000, 3.827197],[1498780800000, 3.847825]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });