$(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: [[1222819200000,0.0462093],[1222905600000,0.0457738],[1222992000000,0.0462297],[1223078400000,0.0464296],[1223164800000,0.0464296],[1223251200000,0.0464296],[1223337600000,0.0471592],[1223424000000,0.0477916],[1223510400000,0.0488699],[1223596800000,0.0489064],[1223683200000,0.0496065],[1223769600000,0.0496065],[1223856000000,0.0496065],[1223942400000,0.0491146],[1224028800000,0.0479008],[1224115200000,0.0485286],[1224201600000,0.0493312],[1224288000000,0.0490709],[1224374400000,0.0490709],[1224460800000,0.0490709],[1224547200000,0.0490475],[1224633600000,0.0496406],[1224720000000,0.0515218],[1224806400000,0.0530275],[1224892800000,0.0560061],[1224979200000,0.0560061],[1225065600000,0.0560061],[1225152000000,0.0575905],[1225238400000,0.0576897],[1225324800000,0.0593228],[1225411200000,0.0583289]], 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: [[1222819200000, 0.046209],[1222819200000, 0.046209],[1222905600000, 0.045774],[1222992000000, 0.046230],[1223078400000, 0.046430],[1223164800000, 0.046430],[1223251200000, 0.046430],[1223337600000, 0.047159],[1223424000000, 0.047792],[1223510400000, 0.048870],[1223596800000, 0.048906],[1223683200000, 0.049606],[1223769600000, 0.049606],[1223856000000, 0.049606],[1223942400000, 0.049115],[1224028800000, 0.047901],[1224115200000, 0.048529],[1224201600000, 0.049331],[1224288000000, 0.049071],[1224374400000, 0.049071],[1224460800000, 0.049071],[1224547200000, 0.049048],[1224633600000, 0.049641],[1224720000000, 0.051522],[1224806400000, 0.053027],[1224892800000, 0.056006],[1224979200000, 0.056006],[1225065600000, 0.056006],[1225152000000, 0.057591],[1225238400000, 0.057690],[1225324800000, 0.059323],[1225411200000, 0.058329]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });