$(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: [[1330560000000,8.08351],[1330646400000,8.10358],[1330732800000,8.09394],[1330819200000,8.09394],[1330905600000,8.09394],[1330992000000,8.04337],[1331078400000,7.99773],[1331164800000,7.97534],[1331251200000,7.97534],[1331337600000,7.97534],[1331424000000,7.97534],[1331510400000,7.97534],[1331596800000,8.04302],[1331683200000,8.04911],[1331769600000,8.06738],[1331856000000,8.04376],[1331942400000,8.06245],[1332028800000,8.06245],[1332115200000,8.06245],[1332201600000,8.05421],[1332288000000,8.04596],[1332374400000,8.0655],[1332460800000,7.99542],[1332547200000,7.97306],[1332633600000,7.97306],[1332720000000,7.97306],[1332806400000,8.01801],[1332892800000,8.04605],[1332979200000,8.01454],[1333065600000,7.9873],[1333152000000,8.0149]], 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: [[1330560000000, 8.083512],[1330560000000, 8.083512],[1330646400000, 8.103579],[1330732800000, 8.093943],[1330819200000, 8.093943],[1330905600000, 8.093943],[1330992000000, 8.043367],[1331078400000, 7.997729],[1331164800000, 7.975342],[1331251200000, 7.975342],[1331337600000, 7.975342],[1331424000000, 7.975342],[1331510400000, 7.975342],[1331596800000, 8.043017],[1331683200000, 8.049112],[1331769600000, 8.067379],[1331856000000, 8.043757],[1331942400000, 8.062453],[1332028800000, 8.062453],[1332115200000, 8.062453],[1332201600000, 8.054211],[1332288000000, 8.045964],[1332374400000, 8.065503],[1332460800000, 7.995416],[1332547200000, 7.973056],[1332633600000, 7.973056],[1332720000000, 7.973056],[1332806400000, 8.018009],[1332892800000, 8.046047],[1332979200000, 8.014544],[1333065600000, 7.987302],[1333152000000, 8.014904]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });