$(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: [[1380585600000,7.75916],[1380672000000,7.75943],[1380758400000,7.72272],[1380844800000,7.73193],[1380931200000,7.73742],[1381017600000,7.73742],[1381104000000,7.73742],[1381190400000,7.74311],[1381276800000,7.75425],[1381363200000,7.70015],[1381449600000,7.70015],[1381536000000,7.69356],[1381622400000,7.69356],[1381708800000,7.69356],[1381795200000,7.72146],[1381881600000,7.71732],[1381968000000,7.70549],[1382054400000,7.76177],[1382140800000,7.76323],[1382227200000,7.76323],[1382313600000,7.76323],[1382400000000,7.76461],[1382486400000,7.76032],[1382572800000,7.74683],[1382659200000,7.68515],[1382745600000,7.65783],[1382832000000,7.65783],[1382918400000,7.65783],[1383004800000,7.6532],[1383091200000,7.65336],[1383177600000,7.65412]], 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: [[1380585600000, 7.759162],[1380585600000, 7.759162],[1380672000000, 7.759427],[1380758400000, 7.722719],[1380844800000, 7.731932],[1380931200000, 7.737420],[1381017600000, 7.737420],[1381104000000, 7.737420],[1381190400000, 7.743112],[1381276800000, 7.754250],[1381363200000, 7.700149],[1381449600000, 7.700149],[1381536000000, 7.693560],[1381622400000, 7.693560],[1381708800000, 7.693560],[1381795200000, 7.721462],[1381881600000, 7.717320],[1381968000000, 7.705486],[1382054400000, 7.761772],[1382140800000, 7.763235],[1382227200000, 7.763235],[1382313600000, 7.763235],[1382400000000, 7.764612],[1382486400000, 7.760315],[1382572800000, 7.746828],[1382659200000, 7.685149],[1382745600000, 7.657828],[1382832000000, 7.657828],[1382918400000, 7.657828],[1383004800000, 7.653203],[1383091200000, 7.653357],[1383177600000, 7.654115]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });