$(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: [[1294272000000,0.0967276],[1294358400000,0.0956585],[1294444800000,0.0956585],[1294531200000,0.0956585],[1294617600000,0.0956585],[1294704000000,0.0958159],[1294790400000,0.0957558],[1294876800000,0.095444],[1294963200000,0.0958681],[1295049600000,0.0958618],[1295136000000,0.0958618],[1295222400000,0.0958618],[1295308800000,0.0962144],[1295395200000,0.0963151],[1295481600000,0.096796],[1295568000000,0.0964706],[1295654400000,0.0959958],[1295740800000,0.0959958],[1295827200000,0.0959958],[1295913600000,0.0958212],[1296000000000,0.0963026],[1296086400000,0.0965394],[1296172800000,0.0954942],[1296259200000,0.096539],[1296345600000,0.096539],[1296432000000,0.096539]], 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: [[1294272000000, 0.096728],[1294272000000, 0.096728],[1294358400000, 0.095658],[1294444800000, 0.095658],[1294531200000, 0.095658],[1294617600000, 0.095658],[1294704000000, 0.095816],[1294790400000, 0.095756],[1294876800000, 0.095444],[1294963200000, 0.095868],[1295049600000, 0.095862],[1295136000000, 0.095862],[1295222400000, 0.095862],[1295308800000, 0.096214],[1295395200000, 0.096315],[1295481600000, 0.096796],[1295568000000, 0.096471],[1295654400000, 0.095996],[1295740800000, 0.095996],[1295827200000, 0.095996],[1295913600000, 0.095821],[1296000000000, 0.096303],[1296086400000, 0.096539],[1296172800000, 0.095494],[1296259200000, 0.096539],[1296345600000, 0.096539],[1296432000000, 0.096539]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });