$(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: [[1185926400000,0.0423133],[1186012800000,0.0426178],[1186099200000,0.0423853],[1186185600000,0.0423638],[1186272000000,0.0423638],[1186358400000,0.0423638],[1186444800000,0.0428419],[1186531200000,0.0425611],[1186617600000,0.0423463],[1186704000000,0.0426183],[1186790400000,0.0429834],[1186876800000,0.0429834],[1186963200000,0.0429834],[1187049600000,0.0426937],[1187136000000,0.0426991],[1187222400000,0.043239],[1187308800000,0.0441904],[1187395200000,0.0444826],[1187481600000,0.0444826],[1187568000000,0.0444826],[1187654400000,0.0438661],[1187740800000,0.0440156],[1187827200000,0.0438705],[1187913600000,0.043314],[1188000000000,0.043314],[1188086400000,0.043314],[1188172800000,0.043314],[1188259200000,0.0434804],[1188345600000,0.0437977],[1188432000000,0.0439906],[1188518400000,0.0436856]], 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: [[1185926400000, 0.042313],[1185926400000, 0.042313],[1186012800000, 0.042618],[1186099200000, 0.042385],[1186185600000, 0.042364],[1186272000000, 0.042364],[1186358400000, 0.042364],[1186444800000, 0.042842],[1186531200000, 0.042561],[1186617600000, 0.042346],[1186704000000, 0.042618],[1186790400000, 0.042983],[1186876800000, 0.042983],[1186963200000, 0.042983],[1187049600000, 0.042694],[1187136000000, 0.042699],[1187222400000, 0.043239],[1187308800000, 0.044190],[1187395200000, 0.044483],[1187481600000, 0.044483],[1187568000000, 0.044483],[1187654400000, 0.043866],[1187740800000, 0.044016],[1187827200000, 0.043870],[1187913600000, 0.043314],[1188000000000, 0.043314],[1188086400000, 0.043314],[1188172800000, 0.043314],[1188259200000, 0.043480],[1188345600000, 0.043798],[1188432000000, 0.043991],[1188518400000, 0.043686]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });