$(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: [[1096588800000,0.789618],[1096675200000,null],[1096761600000,null],[1096848000000,0.791105],[1096934400000,0.787327],[1097020800000,0.788865],[1097107200000,0.788201],[1097193600000,0.787929],[1097280000000,0.787929],[1097366400000,0.787929],[1097452800000,0.787433],[1097539200000,0.799484],[1097625600000,0.797571],[1097712000000,0.791405],[1097798400000,0.801458],[1097884800000,null],[1097971200000,0.801818],[1098057600000,0.801818],[1098144000000,0.803429],[1098230400000,0.805586],[1098316800000,0.811787],[1098403200000,0.812359],[1098489600000,0.814635],[1098576000000,0.814635],[1098662400000,0.814635],[1098748800000,0.825147],[1098835200000,0.82358],[1098921600000,0.831668],[1099008000000,0.823225],[1099094400000,0.829668],[1099180800000,0.829668]], 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: [[1096588800000, 0.789618],[1096588800000, 0.789618],[1096848000000, 0.791105],[1096934400000, 0.787327],[1097020800000, 0.788865],[1097107200000, 0.788201],[1097193600000, 0.787929],[1097280000000, 0.787929],[1097366400000, 0.787929],[1097452800000, 0.787433],[1097539200000, 0.799484],[1097625600000, 0.797571],[1097712000000, 0.791405],[1097798400000, 0.801458],[1097971200000, 0.801818],[1098057600000, 0.801818],[1098144000000, 0.803429],[1098230400000, 0.805586],[1098316800000, 0.811787],[1098403200000, 0.812359],[1098489600000, 0.814635],[1098576000000, 0.814635],[1098662400000, 0.814635],[1098748800000, 0.825147],[1098835200000, 0.823580],[1098921600000, 0.831668],[1099008000000, 0.823225],[1099094400000, 0.829668],[1099180800000, 0.829668]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });