$(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: [[1412121600000,13.625],[1412208000000,13.5137],[1412294400000,13.5196],[1412380800000,13.5251],[1412467200000,13.5251],[1412553600000,13.5251],[1412640000000,13.5135],[1412726400000,13.4424],[1412812800000,13.4761],[1412899200000,13.4776],[1412985600000,13.6517],[1413072000000,13.6517],[1413158400000,13.6517],[1413244800000,13.5378],[1413331200000,13.597],[1413417600000,13.56],[1413504000000,13.5887],[1413590400000,13.69],[1413676800000,13.69],[1413763200000,13.69],[1413849600000,13.7546],[1413936000000,13.7117],[1414022400000,13.6948],[1414108800000,13.628],[1414195200000,13.5964],[1414281600000,13.5964],[1414368000000,13.5964],[1414454400000,13.5937],[1414540800000,13.6157],[1414627200000,13.6959],[1414713600000,13.681]], 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: [[1412121600000, 13.625019],[1412121600000, 13.625019],[1412208000000, 13.513679],[1412294400000, 13.519626],[1412380800000, 13.525147],[1412467200000, 13.525147],[1412553600000, 13.525147],[1412640000000, 13.513541],[1412726400000, 13.442368],[1412812800000, 13.476123],[1412899200000, 13.477595],[1412985600000, 13.651701],[1413072000000, 13.651701],[1413158400000, 13.651701],[1413244800000, 13.537754],[1413331200000, 13.597048],[1413417600000, 13.560019],[1413504000000, 13.588718],[1413590400000, 13.690001],[1413676800000, 13.690001],[1413763200000, 13.690001],[1413849600000, 13.754580],[1413936000000, 13.711686],[1414022400000, 13.694803],[1414108800000, 13.627968],[1414195200000, 13.596422],[1414281600000, 13.596422],[1414368000000, 13.596422],[1414454400000, 13.593667],[1414540800000, 13.615674],[1414627200000, 13.695939],[1414713600000, 13.681040]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });