$(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: [[1149120000000,4.60647],[1149206400000,4.5618],[1149292800000,4.5742],[1149379200000,4.5742],[1149465600000,4.5742],[1149552000000,4.59697],[1149638400000,4.55056],[1149724800000,4.52779],[1149811200000,4.51628],[1149897600000,4.54453],[1149984000000,4.54453],[1150070400000,4.54453],[1150156800000,4.54453],[1150243200000,4.56552],[1150329600000,4.53392],[1150416000000,4.53403],[1150502400000,4.53071],[1150588800000,4.53071],[1150675200000,4.53071],[1150761600000,4.49997],[1150848000000,4.51713],[1150934400000,4.54],[1151020800000,4.53106],[1151107200000,4.49648],[1151193600000,4.49648],[1151280000000,4.49648],[1151366400000,4.51288],[1151452800000,4.49712],[1151539200000,4.49712],[1151625600000,4.51133]], 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: [[1149120000000, 4.606465],[1149120000000, 4.606465],[1149206400000, 4.561799],[1149292800000, 4.574198],[1149379200000, 4.574198],[1149465600000, 4.574198],[1149552000000, 4.596972],[1149638400000, 4.550561],[1149724800000, 4.527794],[1149811200000, 4.516275],[1149897600000, 4.544533],[1149984000000, 4.544533],[1150070400000, 4.544533],[1150156800000, 4.544533],[1150243200000, 4.565520],[1150329600000, 4.533921],[1150416000000, 4.534033],[1150502400000, 4.530711],[1150588800000, 4.530711],[1150675200000, 4.530711],[1150761600000, 4.499968],[1150848000000, 4.517132],[1150934400000, 4.540004],[1151020800000, 4.531063],[1151107200000, 4.496482],[1151193600000, 4.496482],[1151280000000, 4.496482],[1151366400000, 4.512881],[1151452800000, 4.497119],[1151539200000, 4.497119],[1151625600000, 4.511333]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });