$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1243814400000,0.0794303],[1243900800000,0.0802293],[1243987200000,0.079633],[1244073600000,0.0793041],[1244160000000,0.0787064],[1244246400000,0.0784943],[1244332800000,0.0784943],[1244419200000,0.0784943],[1244505600000,0.0784943],[1244592000000,0.0776531],[1244678400000,0.0777485],[1244764800000,0.077377],[1244851200000,0.0774919],[1244937600000,0.0774919],[1245024000000,0.0774919],[1245110400000,0.0774676],[1245196800000,0.0784407],[1245283200000,0.0791169],[1245369600000,0.0793847],[1245456000000,0.0786986],[1245542400000,0.0786986],[1245628800000,0.0786986],[1245715200000,0.079284],[1245801600000,0.0796973],[1245888000000,0.0799507],[1245974400000,0.0791583],[1246060800000,0.0799678],[1246147200000,0.0799678],[1246233600000,0.0799678],[1246320000000,0.0799678]], 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: [[1243814400000, 0.079430],[1243814400000, 0.079430],[1243900800000, 0.080229],[1243987200000, 0.079633],[1244073600000, 0.079304],[1244160000000, 0.078706],[1244246400000, 0.078494],[1244332800000, 0.078494],[1244419200000, 0.078494],[1244505600000, 0.078494],[1244592000000, 0.077653],[1244678400000, 0.077748],[1244764800000, 0.077377],[1244851200000, 0.077492],[1244937600000, 0.077492],[1245024000000, 0.077492],[1245110400000, 0.077468],[1245196800000, 0.078441],[1245283200000, 0.079117],[1245369600000, 0.079385],[1245456000000, 0.078699],[1245542400000, 0.078699],[1245628800000, 0.078699],[1245715200000, 0.079284],[1245801600000, 0.079697],[1245888000000, 0.079951],[1245974400000, 0.079158],[1246060800000, 0.079968],[1246147200000, 0.079968],[1246233600000, 0.079968],[1246320000000, 0.079968]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });