$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1139184000000,8.85468],[1139270400000,8.85468],[1139356800000,8.81523],[1139443200000,8.79426],[1139529600000,8.78631],[1139616000000,8.83879],[1139702400000,8.83879],[1139788800000,8.83879],[1139875200000,8.78081],[1139961600000,8.76129],[1140048000000,8.7952],[1140134400000,8.75161],[1140220800000,8.75978],[1140307200000,8.75978],[1140393600000,8.75978],[1140480000000,8.79915],[1140566400000,8.81473],[1140652800000,8.78277],[1140739200000,8.85574],[1140825600000,8.83063],[1140912000000,8.83063],[1140998400000,8.83063],[1141084800000,8.78828]], 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: [[1139184000000, 8.854683],[1139184000000, 8.854683],[1139270400000, 8.854683],[1139356800000, 8.815228],[1139443200000, 8.794257],[1139529600000, 8.786310],[1139616000000, 8.838792],[1139702400000, 8.838792],[1139788800000, 8.838792],[1139875200000, 8.780810],[1139961600000, 8.761286],[1140048000000, 8.795201],[1140134400000, 8.751611],[1140220800000, 8.759782],[1140307200000, 8.759782],[1140393600000, 8.759782],[1140480000000, 8.799153],[1140566400000, 8.814734],[1140652800000, 8.782769],[1140739200000, 8.855738],[1140825600000, 8.830634],[1140912000000, 8.830634],[1140998400000, 8.830634],[1141084800000, 8.788283]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });