$(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: [[1214870400000,0.0457029],[1214956800000,0.0459253],[1215043200000,0.0455146],[1215129600000,0.045688],[1215216000000,0.0453345],[1215302400000,0.0453345],[1215388800000,0.0453345],[1215475200000,0.0449649],[1215561600000,0.0452108],[1215648000000,0.0450567],[1215734400000,0.0451356],[1215820800000,0.0455448],[1215907200000,0.0455448],[1215993600000,0.0455448],[1216080000000,0.0453321],[1216166400000,0.0462104],[1216252800000,0.0464268],[1216339200000,0.0458185],[1216425600000,0.0452875],[1216512000000,0.0452875],[1216598400000,0.0452875],[1216684800000,0.0452418],[1216771200000,0.0455205],[1216857600000,0.044888],[1216944000000,0.0449447],[1217030400000,0.0451482],[1217116800000,0.0451482],[1217203200000,0.0451482],[1217289600000,0.0449601],[1217376000000,0.0449345],[1217462400000,0.044905]], 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: [[1214870400000, 0.045703],[1214870400000, 0.045703],[1214956800000, 0.045925],[1215043200000, 0.045515],[1215129600000, 0.045688],[1215216000000, 0.045334],[1215302400000, 0.045334],[1215388800000, 0.045334],[1215475200000, 0.044965],[1215561600000, 0.045211],[1215648000000, 0.045057],[1215734400000, 0.045136],[1215820800000, 0.045545],[1215907200000, 0.045545],[1215993600000, 0.045545],[1216080000000, 0.045332],[1216166400000, 0.046210],[1216252800000, 0.046427],[1216339200000, 0.045818],[1216425600000, 0.045288],[1216512000000, 0.045288],[1216598400000, 0.045288],[1216684800000, 0.045242],[1216771200000, 0.045520],[1216857600000, 0.044888],[1216944000000, 0.044945],[1217030400000, 0.045148],[1217116800000, 0.045148],[1217203200000, 0.045148],[1217289600000, 0.044960],[1217376000000, 0.044935],[1217462400000, 0.044905]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });