$(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: [[1139184000000,0.0425246],[1139270400000,0.0425246],[1139356800000,0.0428092],[1139443200000,0.0426383],[1139529600000,0.0426035],[1139616000000,0.0429413],[1139702400000,0.0429413],[1139788800000,0.0429413],[1139875200000,0.0427748],[1139961600000,0.04305],[1140048000000,0.0429517],[1140134400000,0.0427399],[1140220800000,0.0425575],[1140307200000,0.0425575],[1140393600000,0.0425575],[1140480000000,0.0427019],[1140566400000,0.0424584],[1140652800000,0.0425582],[1140739200000,0.0431676],[1140825600000,0.0431851],[1140912000000,0.0431851],[1140998400000,0.0431851],[1141084800000,0.0434439]], 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: [[1139184000000, 0.042525],[1139184000000, 0.042525],[1139270400000, 0.042525],[1139356800000, 0.042809],[1139443200000, 0.042638],[1139529600000, 0.042604],[1139616000000, 0.042941],[1139702400000, 0.042941],[1139788800000, 0.042941],[1139875200000, 0.042775],[1139961600000, 0.043050],[1140048000000, 0.042952],[1140134400000, 0.042740],[1140220800000, 0.042557],[1140307200000, 0.042557],[1140393600000, 0.042557],[1140480000000, 0.042702],[1140566400000, 0.042458],[1140652800000, 0.042558],[1140739200000, 0.043168],[1140825600000, 0.043185],[1140912000000, 0.043185],[1140998400000, 0.043185],[1141084800000, 0.043444]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });