$(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: [[1298937600000,0.0969174],[1299024000000,0.096775],[1299110400000,0.0967105],[1299196800000,0.0969121],[1299283200000,0.0957798],[1299369600000,0.0957798],[1299456000000,0.0957798],[1299542400000,0.0957798],[1299628800000,0.0957798],[1299715200000,0.0959876],[1299801600000,0.0955212],[1299888000000,0.096512],[1299974400000,0.096512],[1300060800000,0.096512],[1300147200000,0.0969506],[1300233600000,0.0980947],[1300320000000,0.0985728],[1300406400000,0.100748],[1300492800000,0.0979255],[1300579200000,0.0979255],[1300665600000,0.0979255],[1300752000000,0.0980612],[1300838400000,0.0980849],[1300924800000,0.0982268],[1301011200000,0.0983264],[1301097600000,0.098067],[1301184000000,0.098067],[1301270400000,0.098067],[1301356800000,0.0974734],[1301443200000,0.0968558],[1301529600000,0.095852]], 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: [[1298937600000, 0.096917],[1298937600000, 0.096917],[1299024000000, 0.096775],[1299110400000, 0.096711],[1299196800000, 0.096912],[1299283200000, 0.095780],[1299369600000, 0.095780],[1299456000000, 0.095780],[1299542400000, 0.095780],[1299628800000, 0.095780],[1299715200000, 0.095988],[1299801600000, 0.095521],[1299888000000, 0.096512],[1299974400000, 0.096512],[1300060800000, 0.096512],[1300147200000, 0.096951],[1300233600000, 0.098095],[1300320000000, 0.098573],[1300406400000, 0.100748],[1300492800000, 0.097925],[1300579200000, 0.097925],[1300665600000, 0.097925],[1300752000000, 0.098061],[1300838400000, 0.098085],[1300924800000, 0.098227],[1301011200000, 0.098326],[1301097600000, 0.098067],[1301184000000, 0.098067],[1301270400000, 0.098067],[1301356800000, 0.097473],[1301443200000, 0.096856],[1301529600000, 0.095852]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });