$(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: [[1264982400000,7.61929],[1265068800000,7.55818],[1265155200000,7.56815],[1265241600000,7.59186],[1265328000000,7.54204],[1265414400000,7.46039],[1265500800000,7.46039],[1265587200000,7.46039],[1265673600000,7.4699],[1265760000000,7.51145],[1265846400000,7.50835],[1265932800000,7.49377],[1266019200000,7.41365],[1266105600000,7.41365],[1266192000000,7.41365],[1266278400000,7.42673],[1266364800000,7.44139],[1266451200000,7.48286],[1266537600000,7.40782],[1266624000000,7.37652],[1266710400000,7.37652],[1266796800000,7.37652],[1266883200000,7.4323],[1266969600000,7.39621],[1267056000000,7.39297],[1267142400000,7.36535],[1267228800000,7.40704],[1267315200000,7.40704]], 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: [[1264982400000, 7.619290],[1264982400000, 7.619290],[1265068800000, 7.558184],[1265155200000, 7.568151],[1265241600000, 7.591856],[1265328000000, 7.542043],[1265414400000, 7.460392],[1265500800000, 7.460392],[1265587200000, 7.460392],[1265673600000, 7.469895],[1265760000000, 7.511448],[1265846400000, 7.508350],[1265932800000, 7.493772],[1266019200000, 7.413647],[1266105600000, 7.413647],[1266192000000, 7.413647],[1266278400000, 7.426725],[1266364800000, 7.441392],[1266451200000, 7.482863],[1266537600000, 7.407817],[1266624000000, 7.376515],[1266710400000, 7.376515],[1266796800000, 7.376515],[1266883200000, 7.432304],[1266969600000, 7.396211],[1267056000000, 7.392974],[1267142400000, 7.365346],[1267228800000, 7.407043],[1267315200000, 7.407043]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });