$(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: [[1354320000000,8.61101],[1354406400000,8.61101],[1354492800000,8.61101],[1354579200000,8.63445],[1354665600000,8.62264],[1354752000000,8.61053],[1354838400000,8.6251],[1354924800000,8.541],[1355011200000,8.541],[1355097600000,8.541],[1355184000000,8.56393],[1355270400000,8.57227],[1355356800000,8.60754],[1355443200000,8.64553],[1355529600000,8.64889],[1355616000000,8.64889],[1355702400000,8.64889],[1355788800000,8.70617],[1355875200000,8.71952],[1355961600000,8.78992],[1356048000000,8.76524],[1356134400000,8.7422],[1356220800000,8.7422],[1356307200000,8.7422],[1356393600000,8.75323],[1356480000000,8.75323],[1356566400000,8.75323],[1356652800000,8.77629],[1356739200000,8.72282],[1356825600000,8.72282],[1356912000000,8.72282]], 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: [[1354320000000, 8.611009],[1354320000000, 8.611009],[1354406400000, 8.611009],[1354492800000, 8.611009],[1354579200000, 8.634450],[1354665600000, 8.622640],[1354752000000, 8.610533],[1354838400000, 8.625103],[1354924800000, 8.541001],[1355011200000, 8.541001],[1355097600000, 8.541001],[1355184000000, 8.563929],[1355270400000, 8.572270],[1355356800000, 8.607541],[1355443200000, 8.645530],[1355529600000, 8.648890],[1355616000000, 8.648890],[1355702400000, 8.648890],[1355788800000, 8.706165],[1355875200000, 8.719516],[1355961600000, 8.789921],[1356048000000, 8.765235],[1356134400000, 8.742199],[1356220800000, 8.742199],[1356307200000, 8.742199],[1356393600000, 8.753229],[1356480000000, 8.753229],[1356566400000, 8.753229],[1356652800000, 8.776290],[1356739200000, 8.722824],[1356825600000, 8.722824],[1356912000000, 8.722824]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });