$(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: [[1120262400000,3.93709],[1120348800000,3.93709],[1120435200000,3.93709],[1120521600000,3.88299],[1120608000000,3.87015],[1120694400000,3.87393],[1120780800000,3.90658],[1120867200000,3.87474],[1120953600000,3.87474],[1121040000000,3.87474],[1121126400000,3.90191],[1121212800000,3.95162],[1121299200000,3.95112],[1121385600000,3.91494],[1121472000000,3.91362],[1121558400000,3.91362],[1121644800000,3.91362],[1121731200000,3.90571],[1121817600000,3.86869],[1121904000000,3.89702],[1121990400000,3.94439],[1122076800000,3.92211],[1122163200000,3.92211],[1122249600000,3.92211],[1122336000000,3.89691],[1122422400000,3.87966],[1122508800000,3.8769],[1122595200000,3.91072],[1122681600000,3.91296],[1122768000000,3.91296]], 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: [[1120262400000, 3.937095],[1120262400000, 3.937095],[1120348800000, 3.937095],[1120435200000, 3.937095],[1120521600000, 3.882987],[1120608000000, 3.870148],[1120694400000, 3.873928],[1120780800000, 3.906582],[1120867200000, 3.874741],[1120953600000, 3.874741],[1121040000000, 3.874741],[1121126400000, 3.901911],[1121212800000, 3.951624],[1121299200000, 3.951124],[1121385600000, 3.914940],[1121472000000, 3.913622],[1121558400000, 3.913622],[1121644800000, 3.913622],[1121731200000, 3.905709],[1121817600000, 3.868688],[1121904000000, 3.897016],[1121990400000, 3.944392],[1122076800000, 3.922107],[1122163200000, 3.922107],[1122249600000, 3.922107],[1122336000000, 3.896914],[1122422400000, 3.879661],[1122508800000, 3.876905],[1122595200000, 3.910720],[1122681600000, 3.912965],[1122768000000, 3.912965]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });