$(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: [[967766400000,5.4385],[967852800000,5.4385],[967939200000,5.4385],[968025600000,5.4385],[968112000000,5.4385],[968198400000,5.4385],[968284800000,5.439],[968371200000,5.439],[968457600000,5.439],[968544000000,5.439],[968630400000,5.439],[968716800000,5.439],[968803200000,5.439],[968889600000,5.439],[968976000000,5.4385],[969062400000,5.439],[969148800000,5.439],[969235200000,5.439],[969321600000,5.439],[969408000000,5.439],[969494400000,5.439],[969580800000,5.439],[969667200000,5.4392],[969753600000,5.4392],[969840000000,5.4392],[969926400000,5.4394],[970012800000,5.4397],[970099200000,5.4397],[970185600000,5.4397],[970272000000,5.4397]], 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: [[967766400000, 5.438500],[967766400000, 5.438500],[967852800000, 5.438500],[967939200000, 5.438500],[968025600000, 5.438500],[968112000000, 5.438500],[968198400000, 5.438500],[968284800000, 5.439000],[968371200000, 5.439000],[968457600000, 5.439000],[968544000000, 5.439000],[968630400000, 5.439000],[968716800000, 5.439000],[968803200000, 5.439000],[968889600000, 5.439000],[968976000000, 5.438500],[969062400000, 5.439000],[969148800000, 5.439000],[969235200000, 5.439000],[969321600000, 5.439000],[969408000000, 5.439000],[969494400000, 5.439000],[969580800000, 5.439000],[969667200000, 5.439200],[969753600000, 5.439200],[969840000000, 5.439200],[969926400000, 5.439400],[970012800000, 5.439700],[970099200000, 5.439700],[970185600000, 5.439700],[970272000000, 5.439700]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });