$(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: [[1296518400000,0.0966619],[1296604800000,0.0973664],[1296691200000,0.0975695],[1296777600000,0.0970889],[1296864000000,0.0972068],[1296950400000,0.0972068],[1297036800000,0.0972068],[1297123200000,0.0965554],[1297209600000,0.0966456],[1297296000000,0.0962256],[1297382400000,0.0958846],[1297468800000,0.0950605],[1297555200000,0.0950605],[1297641600000,0.0950605],[1297728000000,0.0951945],[1297814400000,0.0947944],[1297900800000,0.0948483],[1297987200000,0.0949726],[1298073600000,0.0952487],[1298160000000,0.0952487],[1298246400000,0.0952487],[1298332800000,0.0954656],[1298419200000,0.0954729],[1298505600000,0.0958078],[1298592000000,0.0969414],[1298678400000,0.0969981],[1298764800000,0.0969981],[1298851200000,0.0969981]], 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: [[1296518400000, 0.096662],[1296518400000, 0.096662],[1296604800000, 0.097366],[1296691200000, 0.097570],[1296777600000, 0.097089],[1296864000000, 0.097207],[1296950400000, 0.097207],[1297036800000, 0.097207],[1297123200000, 0.096555],[1297209600000, 0.096646],[1297296000000, 0.096226],[1297382400000, 0.095885],[1297468800000, 0.095061],[1297555200000, 0.095061],[1297641600000, 0.095061],[1297728000000, 0.095195],[1297814400000, 0.094794],[1297900800000, 0.094848],[1297987200000, 0.094973],[1298073600000, 0.095249],[1298160000000, 0.095249],[1298246400000, 0.095249],[1298332800000, 0.095466],[1298419200000, 0.095473],[1298505600000, 0.095808],[1298592000000, 0.096941],[1298678400000, 0.096998],[1298764800000, 0.096998],[1298851200000, 0.096998]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });