$(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: [[1335830400000,8.13315],[1335916800000,8.13315],[1336003200000,8.13315],[1336089600000,8.11732],[1336176000000,8.07973],[1336262400000,8.07973],[1336348800000,8.07973],[1336435200000,8.01947],[1336521600000,8.02402],[1336608000000,8.02402],[1336694400000,7.99988],[1336780800000,7.95742],[1336867200000,7.95742],[1336953600000,7.95742],[1337040000000,7.9603],[1337126400000,7.98254],[1337212800000,7.93147],[1337299200000,7.88162],[1337385600000,7.85686],[1337472000000,7.85686],[1337558400000,7.85686],[1337644800000,7.80958],[1337731200000,7.86378],[1337817600000,7.81894],[1337904000000,7.79388],[1337990400000,7.7792],[1338076800000,7.7792],[1338163200000,7.7792],[1338249600000,7.8031],[1338336000000,7.79821],[1338422400000,7.77618]], 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: [[1335830400000, 8.133148],[1335830400000, 8.133148],[1335916800000, 8.133148],[1336003200000, 8.133148],[1336089600000, 8.117323],[1336176000000, 8.079729],[1336262400000, 8.079729],[1336348800000, 8.079729],[1336435200000, 8.019466],[1336521600000, 8.024015],[1336608000000, 8.024015],[1336694400000, 7.999876],[1336780800000, 7.957418],[1336867200000, 7.957418],[1336953600000, 7.957418],[1337040000000, 7.960295],[1337126400000, 7.982541],[1337212800000, 7.931470],[1337299200000, 7.881619],[1337385600000, 7.856857],[1337472000000, 7.856857],[1337558400000, 7.856857],[1337644800000, 7.809583],[1337731200000, 7.863777],[1337817600000, 7.818938],[1337904000000, 7.793882],[1337990400000, 7.779201],[1338076800000, 7.779201],[1338163200000, 7.779201],[1338249600000, 7.803104],[1338336000000, 7.798214],[1338422400000, 7.776182]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });