$(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: [[1385856000000,8.84638],[1385942400000,8.84638],[1386028800000,8.78121],[1386115200000,8.83283],[1386201600000,8.85563],[1386288000000,8.86127],[1386374400000,8.92751],[1386460800000,8.92751],[1386547200000,8.92751],[1386633600000,8.96737],[1386720000000,8.99818],[1386806400000,9.00562],[1386892800000,9.01675],[1386979200000,8.97431],[1387065600000,8.97431],[1387152000000,8.97431],[1387238400000,9.01667],[1387324800000,9.00342],[1387411200000,8.99973],[1387497600000,8.90958],[1387584000000,8.9003],[1387670400000,8.9003],[1387756800000,8.9003],[1387843200000,8.93531],[1387929600000,8.93378],[1388016000000,8.93378],[1388102400000,8.93378],[1388188800000,9.02528],[1388275200000,9.02528],[1388361600000,9.02528],[1388448000000,9.02528]], 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: [[1385856000000, 8.846375],[1385856000000, 8.846375],[1385942400000, 8.846375],[1386028800000, 8.781207],[1386115200000, 8.832828],[1386201600000, 8.855629],[1386288000000, 8.861266],[1386374400000, 8.927510],[1386460800000, 8.927510],[1386547200000, 8.927510],[1386633600000, 8.967374],[1386720000000, 8.998178],[1386806400000, 9.005617],[1386892800000, 9.016753],[1386979200000, 8.974310],[1387065600000, 8.974310],[1387152000000, 8.974310],[1387238400000, 9.016670],[1387324800000, 9.003421],[1387411200000, 8.999734],[1387497600000, 8.909578],[1387584000000, 8.900303],[1387670400000, 8.900303],[1387756800000, 8.900303],[1387843200000, 8.935309],[1387929600000, 8.933775],[1388016000000, 8.933775],[1388102400000, 8.933775],[1388188800000, 9.025282],[1388275200000, 9.025282],[1388361600000, 9.025282],[1388448000000, 9.025282]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });