$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1412121600000,11.6051],[1412208000000,11.5959],[1412294400000,11.5432],[1412380800000,11.6195],[1412467200000,11.6195],[1412553600000,11.6195],[1412640000000,11.5796],[1412726400000,11.5728],[1412812800000,11.6169],[1412899200000,11.571],[1412985600000,11.6559],[1413072000000,11.6559],[1413158400000,11.6559],[1413244800000,11.568],[1413331200000,11.5512],[1413417600000,11.516],[1413504000000,11.3879],[1413590400000,11.4298],[1413676800000,11.4298],[1413763200000,11.4298],[1413849600000,11.52],[1413936000000,11.5025],[1414022400000,11.5122],[1414108800000,11.542],[1414195200000,11.5476],[1414281600000,11.5476],[1414368000000,11.5476],[1414454400000,11.5524],[1414540800000,11.5143],[1414627200000,11.5572],[1414713600000,11.6248]], 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, 11.605109],[1412121600000, 11.605109],[1412208000000, 11.595925],[1412294400000, 11.543173],[1412380800000, 11.619493],[1412467200000, 11.619493],[1412553600000, 11.619493],[1412640000000, 11.579615],[1412726400000, 11.572773],[1412812800000, 11.616852],[1412899200000, 11.571027],[1412985600000, 11.655934],[1413072000000, 11.655934],[1413158400000, 11.655934],[1413244800000, 11.567983],[1413331200000, 11.551178],[1413417600000, 11.515958],[1413504000000, 11.387921],[1413590400000, 11.429815],[1413676800000, 11.429815],[1413763200000, 11.429815],[1413849600000, 11.520033],[1413936000000, 11.502523],[1414022400000, 11.512182],[1414108800000, 11.541956],[1414195200000, 11.547580],[1414281600000, 11.547580],[1414368000000, 11.547580],[1414454400000, 11.552366],[1414540800000, 11.514272],[1414627200000, 11.557237],[1414713600000, 11.624835]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });