$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1054425600000,5.333],[1054512000000,5.333],[1054598400000,5.333],[1054684800000,5.333],[1054771200000,5.333],[1054857600000,5.333],[1054944000000,5.333],[1055030400000,5.333],[1055116800000,5.333],[1055203200000,5.333],[1055289600000,5.333],[1055376000000,5.333],[1055462400000,5.333],[1055548800000,5.333],[1055635200000,5.333],[1055721600000,5.333],[1055808000000,5.333],[1055894400000,5.333],[1055980800000,5.333],[1056067200000,5.333],[1056153600000,5.333],[1056240000000,5.333],[1056326400000,5.333],[1056412800000,5.333],[1056499200000,5.333],[1056585600000,5.3328],[1056672000000,5.3328],[1056758400000,5.3328],[1056844800000,5.3328],[1056931200000,5.3328]], 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: [[1054425600000, 5.333000],[1054425600000, 5.333000],[1054512000000, 5.333000],[1054598400000, 5.333000],[1054684800000, 5.333000],[1054771200000, 5.333000],[1054857600000, 5.333000],[1054944000000, 5.333000],[1055030400000, 5.333000],[1055116800000, 5.333000],[1055203200000, 5.333000],[1055289600000, 5.333000],[1055376000000, 5.333000],[1055462400000, 5.333000],[1055548800000, 5.333000],[1055635200000, 5.333000],[1055721600000, 5.333000],[1055808000000, 5.333000],[1055894400000, 5.333000],[1055980800000, 5.333000],[1056067200000, 5.333000],[1056153600000, 5.333000],[1056240000000, 5.333000],[1056326400000, 5.333000],[1056412800000, 5.333000],[1056499200000, 5.333000],[1056585600000, 5.332800],[1056672000000, 5.332800],[1056758400000, 5.332800],[1056844800000, 5.332800],[1056931200000, 5.332800]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });