$(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: [[1191196800000,0.0437811],[1191283200000,0.043622],[1191369600000,0.0436391],[1191456000000,0.0434822],[1191542400000,0.0433107],[1191628800000,0.0433699],[1191715200000,0.0433699],[1191801600000,0.0433699],[1191888000000,0.0429932],[1191974400000,0.0430818],[1192060800000,0.0430216],[1192147200000,0.0429474],[1192233600000,0.0429846],[1192320000000,0.0429846],[1192406400000,0.0429846],[1192492800000,0.0428852],[1192579200000,0.043263],[1192665600000,0.0431286],[1192752000000,0.0437636],[1192838400000,0.0437671],[1192924800000,0.0437671],[1193011200000,0.0437671],[1193097600000,0.0443236],[1193184000000,0.0440261],[1193270400000,0.0441762],[1193356800000,0.0441582],[1193443200000,0.0441576],[1193529600000,0.0441576],[1193616000000,0.0441576],[1193702400000,0.0439998],[1193788800000,0.0439849]], 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: [[1191196800000, 0.043781],[1191196800000, 0.043781],[1191283200000, 0.043622],[1191369600000, 0.043639],[1191456000000, 0.043482],[1191542400000, 0.043311],[1191628800000, 0.043370],[1191715200000, 0.043370],[1191801600000, 0.043370],[1191888000000, 0.042993],[1191974400000, 0.043082],[1192060800000, 0.043022],[1192147200000, 0.042947],[1192233600000, 0.042985],[1192320000000, 0.042985],[1192406400000, 0.042985],[1192492800000, 0.042885],[1192579200000, 0.043263],[1192665600000, 0.043129],[1192752000000, 0.043764],[1192838400000, 0.043767],[1192924800000, 0.043767],[1193011200000, 0.043767],[1193097600000, 0.044324],[1193184000000, 0.044026],[1193270400000, 0.044176],[1193356800000, 0.044158],[1193443200000, 0.044158],[1193529600000, 0.044158],[1193616000000, 0.044158],[1193702400000, 0.044000],[1193788800000, 0.043985]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });