$(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: [[1128124800000,0.0446327],[1128211200000,0.0446327],[1128297600000,0.0446327],[1128384000000,0.0442872],[1128470400000,0.0441856],[1128556800000,0.0443425],[1128643200000,0.0443613],[1128729600000,0.044498],[1128816000000,0.044498],[1128902400000,0.044498],[1128988800000,0.0442672],[1129075200000,0.0442436],[1129161600000,0.0441053],[1129248000000,0.0439865],[1129334400000,0.0440146],[1129420800000,0.0440146],[1129507200000,0.0440146],[1129593600000,0.0439936],[1129680000000,0.0435909],[1129766400000,0.0437079],[1129852800000,0.0436809],[1129939200000,0.0436816],[1130025600000,0.0436816],[1130112000000,0.0436816],[1130198400000,0.0436607],[1130284800000,0.0437281],[1130371200000,0.0436013],[1130457600000,0.043789],[1130544000000,0.0437741],[1130630400000,0.0437741],[1130716800000,0.0437741]], 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: [[1128124800000, 0.044633],[1128124800000, 0.044633],[1128211200000, 0.044633],[1128297600000, 0.044633],[1128384000000, 0.044287],[1128470400000, 0.044186],[1128556800000, 0.044342],[1128643200000, 0.044361],[1128729600000, 0.044498],[1128816000000, 0.044498],[1128902400000, 0.044498],[1128988800000, 0.044267],[1129075200000, 0.044244],[1129161600000, 0.044105],[1129248000000, 0.043986],[1129334400000, 0.044015],[1129420800000, 0.044015],[1129507200000, 0.044015],[1129593600000, 0.043994],[1129680000000, 0.043591],[1129766400000, 0.043708],[1129852800000, 0.043681],[1129939200000, 0.043682],[1130025600000, 0.043682],[1130112000000, 0.043682],[1130198400000, 0.043661],[1130284800000, 0.043728],[1130371200000, 0.043601],[1130457600000, 0.043789],[1130544000000, 0.043774],[1130630400000, 0.043774],[1130716800000, 0.043774]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });