$(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: [[1335830400000,8.79794],[1335916800000,8.79794],[1336003200000,8.79794],[1336089600000,8.72744],[1336176000000,8.73343],[1336262400000,8.73343],[1336348800000,8.73343],[1336435200000,8.66773],[1336521600000,8.66118],[1336608000000,8.66118],[1336694400000,8.62053],[1336780800000,8.60994],[1336867200000,8.60994],[1336953600000,8.60994],[1337040000000,8.55748],[1337126400000,8.54418],[1337212800000,8.47362],[1337299200000,8.43742],[1337385600000,8.46319],[1337472000000,8.46319],[1337558400000,8.46319],[1337644800000,8.48319],[1337731200000,8.49623],[1337817600000,8.4237],[1337904000000,8.35652],[1337990400000,8.34642],[1338076800000,8.34642],[1338163200000,8.34642],[1338249600000,8.35625],[1338336000000,8.33043],[1338422400000,8.27733]], 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: [[1335830400000, 8.797935],[1335830400000, 8.797935],[1335916800000, 8.797935],[1336003200000, 8.797935],[1336089600000, 8.727439],[1336176000000, 8.733425],[1336262400000, 8.733425],[1336348800000, 8.733425],[1336435200000, 8.667726],[1336521600000, 8.661180],[1336608000000, 8.661180],[1336694400000, 8.620527],[1336780800000, 8.609937],[1336867200000, 8.609937],[1336953600000, 8.609937],[1337040000000, 8.557483],[1337126400000, 8.544177],[1337212800000, 8.473618],[1337299200000, 8.437421],[1337385600000, 8.463193],[1337472000000, 8.463193],[1337558400000, 8.463193],[1337644800000, 8.483192],[1337731200000, 8.496232],[1337817600000, 8.423700],[1337904000000, 8.356521],[1337990400000, 8.346421],[1338076800000, 8.346421],[1338163200000, 8.346421],[1338249600000, 8.356249],[1338336000000, 8.330427],[1338422400000, 8.277328]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });