$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1222819200000,0.834407],[1222905600000,0.82875],[1222992000000,0.81659],[1223078400000,0.812405],[1223164800000,0.812405],[1223251200000,0.812405],[1223337600000,0.795289],[1223424000000,0.795539],[1223510400000,0.805547],[1223596800000,0.805985],[1223683200000,0.793704],[1223769600000,0.793704],[1223856000000,0.793704],[1223942400000,0.796171],[1224028800000,0.801894],[1224115200000,0.779413],[1224201600000,0.753326],[1224288000000,0.747896],[1224374400000,0.747896],[1224460800000,0.747896],[1224547200000,0.761641],[1224633600000,0.742656],[1224720000000,0.725255],[1224806400000,0.720606],[1224892800000,0.747172],[1224979200000,0.747172],[1225065600000,0.747172],[1225152000000,0.756222],[1225238400000,0.805766],[1225324800000,0.859952],[1225411200000,0.881301]], 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: [[1222819200000, 0.834407],[1222819200000, 0.834407],[1222905600000, 0.828750],[1222992000000, 0.816590],[1223078400000, 0.812405],[1223164800000, 0.812405],[1223251200000, 0.812405],[1223337600000, 0.795289],[1223424000000, 0.795539],[1223510400000, 0.805547],[1223596800000, 0.805985],[1223683200000, 0.793704],[1223769600000, 0.793704],[1223856000000, 0.793704],[1223942400000, 0.796171],[1224028800000, 0.801894],[1224115200000, 0.779413],[1224201600000, 0.753326],[1224288000000, 0.747896],[1224374400000, 0.747896],[1224460800000, 0.747896],[1224547200000, 0.761641],[1224633600000, 0.742656],[1224720000000, 0.725255],[1224806400000, 0.720606],[1224892800000, 0.747172],[1224979200000, 0.747172],[1225065600000, 0.747172],[1225152000000, 0.756222],[1225238400000, 0.805766],[1225324800000, 0.859952],[1225411200000, 0.881301]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });