$(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: [[1364774400000,7.86041],[1364860800000,7.86041],[1364947200000,7.89098],[1365033600000,7.88118],[1365120000000,7.87383],[1365206400000,7.87737],[1365292800000,7.87737],[1365379200000,7.87737],[1365465600000,7.85962],[1365552000000,7.87583],[1365638400000,7.87031],[1365724800000,7.91876],[1365811200000,7.89919],[1365897600000,7.89919],[1365984000000,7.89919],[1366070400000,7.83194],[1366156800000,7.82493],[1366243200000,7.79123],[1366329600000,7.80337],[1366416000000,7.79798],[1366502400000,7.79798],[1366588800000,7.79798],[1366675200000,7.79101],[1366761600000,7.77746],[1366848000000,7.78996],[1366934400000,7.81729],[1367020800000,7.83804],[1367107200000,7.83804],[1367193600000,7.83804],[1367280000000,7.88477]], 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: [[1364774400000, 7.860407],[1364774400000, 7.860407],[1364860800000, 7.860407],[1364947200000, 7.890983],[1365033600000, 7.881184],[1365120000000, 7.873830],[1365206400000, 7.877371],[1365292800000, 7.877371],[1365379200000, 7.877371],[1365465600000, 7.859622],[1365552000000, 7.875829],[1365638400000, 7.870308],[1365724800000, 7.918756],[1365811200000, 7.899193],[1365897600000, 7.899193],[1365984000000, 7.899193],[1366070400000, 7.831943],[1366156800000, 7.824927],[1366243200000, 7.791231],[1366329600000, 7.803374],[1366416000000, 7.797976],[1366502400000, 7.797976],[1366588800000, 7.797976],[1366675200000, 7.791009],[1366761600000, 7.777458],[1366848000000, 7.789956],[1366934400000, 7.817290],[1367020800000, 7.838036],[1367107200000, 7.838036],[1367193600000, 7.838036],[1367280000000, 7.884767]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });