$(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: [[1114905600000,4.25607],[1114992000000,4.25607],[1115078400000,4.25607],[1115164800000,4.25607],[1115251200000,4.24482],[1115337600000,4.23224],[1115424000000,4.2223],[1115510400000,4.2223],[1115596800000,4.2223],[1115683200000,4.2223],[1115769600000,4.19685],[1115856000000,4.21253],[1115942400000,4.17137],[1116028800000,4.13015],[1116115200000,4.13015],[1116201600000,4.13015],[1116288000000,4.12501],[1116374400000,4.13557],[1116460800000,4.13173],[1116547200000,4.13673],[1116633600000,4.11195],[1116720000000,4.11195],[1116806400000,4.11195],[1116892800000,4.09694],[1116979200000,4.11947],[1117065600000,4.10455],[1117152000000,4.08746],[1117238400000,4.09474],[1117324800000,4.09474],[1117411200000,4.09474],[1117497600000,4.0774]], 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: [[1114905600000, 4.256072],[1114905600000, 4.256072],[1114992000000, 4.256072],[1115078400000, 4.256072],[1115164800000, 4.256072],[1115251200000, 4.244818],[1115337600000, 4.232238],[1115424000000, 4.222302],[1115510400000, 4.222302],[1115596800000, 4.222302],[1115683200000, 4.222302],[1115769600000, 4.196851],[1115856000000, 4.212530],[1115942400000, 4.171370],[1116028800000, 4.130154],[1116115200000, 4.130154],[1116201600000, 4.130154],[1116288000000, 4.125011],[1116374400000, 4.135567],[1116460800000, 4.131729],[1116547200000, 4.136726],[1116633600000, 4.111952],[1116720000000, 4.111952],[1116806400000, 4.111952],[1116892800000, 4.096942],[1116979200000, 4.119470],[1117065600000, 4.104554],[1117152000000, 4.087458],[1117238400000, 4.094744],[1117324800000, 4.094744],[1117411200000, 4.094744],[1117497600000, 4.077400]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });