$(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: [[1196467200000,0.0456116],[1196553600000,0.0456116],[1196640000000,0.0456116],[1196726400000,0.0457689],[1196812800000,0.0459945],[1196899200000,0.0457931],[1196985600000,0.0454953],[1197072000000,0.0452794],[1197158400000,0.0452794],[1197244800000,0.0452794],[1197331200000,0.0451747],[1197417600000,0.045113],[1197504000000,0.0453514],[1197590400000,0.0451551],[1197676800000,0.0446798],[1197763200000,0.0446798],[1197849600000,0.0446798],[1197936000000,0.044559],[1198022400000,0.0445428],[1198108800000,0.0446932],[1198195200000,0.0446472],[1198281600000,0.0444779],[1198368000000,0.0444779],[1198454400000,0.0444779],[1198540800000,0.0442678],[1198627200000,0.0442678],[1198713600000,0.0442678],[1198800000000,0.0441017],[1198886400000,0.0446606]], 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: [[1196467200000, 0.045612],[1196467200000, 0.045612],[1196553600000, 0.045612],[1196640000000, 0.045612],[1196726400000, 0.045769],[1196812800000, 0.045995],[1196899200000, 0.045793],[1196985600000, 0.045495],[1197072000000, 0.045279],[1197158400000, 0.045279],[1197244800000, 0.045279],[1197331200000, 0.045175],[1197417600000, 0.045113],[1197504000000, 0.045351],[1197590400000, 0.045155],[1197676800000, 0.044680],[1197763200000, 0.044680],[1197849600000, 0.044680],[1197936000000, 0.044559],[1198022400000, 0.044543],[1198108800000, 0.044693],[1198195200000, 0.044647],[1198281600000, 0.044478],[1198368000000, 0.044478],[1198454400000, 0.044478],[1198540800000, 0.044268],[1198627200000, 0.044268],[1198713600000, 0.044268],[1198800000000, 0.044102],[1198886400000, 0.044661]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });