$(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: [[1133395200000,0.0422113],[1133481600000,0.0420118],[1133568000000,0.0417868],[1133654400000,0.0417868],[1133740800000,0.0417868],[1133827200000,0.0417915],[1133913600000,0.0417163],[1134000000000,0.0417388],[1134086400000,0.0418899],[1134172800000,0.0419085],[1134259200000,0.0419085],[1134345600000,0.0419085],[1134432000000,0.0419777],[1134518400000,0.0419748],[1134604800000,0.0426781],[1134691200000,0.0435059],[1134777600000,0.0434478],[1134864000000,0.0434478],[1134950400000,0.0434478],[1135036800000,0.0434386],[1135123200000,0.0433214],[1135209600000,0.0430763],[1135296000000,0.0429999],[1135382400000,0.0432904],[1135468800000,0.0432904],[1135555200000,0.0432904],[1135641600000,0.0432904],[1135728000000,0.0431806],[1135814400000,0.0431028],[1135900800000,0.0428288]], 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: [[1133395200000, 0.042211],[1133395200000, 0.042211],[1133481600000, 0.042012],[1133568000000, 0.041787],[1133654400000, 0.041787],[1133740800000, 0.041787],[1133827200000, 0.041792],[1133913600000, 0.041716],[1134000000000, 0.041739],[1134086400000, 0.041890],[1134172800000, 0.041909],[1134259200000, 0.041909],[1134345600000, 0.041909],[1134432000000, 0.041978],[1134518400000, 0.041975],[1134604800000, 0.042678],[1134691200000, 0.043506],[1134777600000, 0.043448],[1134864000000, 0.043448],[1134950400000, 0.043448],[1135036800000, 0.043439],[1135123200000, 0.043321],[1135209600000, 0.043076],[1135296000000, 0.043000],[1135382400000, 0.043290],[1135468800000, 0.043290],[1135555200000, 0.043290],[1135641600000, 0.043290],[1135728000000, 0.043181],[1135814400000, 0.043103],[1135900800000, 0.042829]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });