$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1096588800000,3.14572],[1096675200000,null],[1096761600000,null],[1096848000000,3.1511],[1096934400000,3.14923],[1097020800000,3.1477],[1097107200000,3.13808],[1097193600000,3.14227],[1097280000000,3.14227],[1097366400000,3.14227],[1097452800000,3.14685],[1097539200000,3.15771],[1097625600000,3.14866],[1097712000000,3.14543],[1097798400000,3.15574],[1097884800000,null],[1097971200000,3.15898],[1098057600000,3.15898],[1098144000000,3.1607],[1098230400000,3.1679],[1098316800000,3.17162],[1098403200000,3.17318],[1098489600000,3.18087],[1098576000000,3.18087],[1098662400000,3.18087],[1098748800000,3.19034],[1098835200000,3.18789],[1098921600000,3.19289],[1099008000000,3.18902],[1099094400000,3.18981],[1099180800000,3.18981]], 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, 3.145720],[1096588800000, 3.145720],[1096848000000, 3.151100],[1096934400000, 3.149230],[1097020800000, 3.147700],[1097107200000, 3.138080],[1097193600000, 3.142270],[1097280000000, 3.142270],[1097366400000, 3.142270],[1097452800000, 3.146850],[1097539200000, 3.157710],[1097625600000, 3.148660],[1097712000000, 3.145430],[1097798400000, 3.155740],[1097971200000, 3.158980],[1098057600000, 3.158980],[1098144000000, 3.160700],[1098230400000, 3.167900],[1098316800000, 3.171620],[1098403200000, 3.173180],[1098489600000, 3.180870],[1098576000000, 3.180870],[1098662400000, 3.180870],[1098748800000, 3.190340],[1098835200000, 3.187890],[1098921600000, 3.192890],[1099008000000, 3.189020],[1099094400000, 3.189810],[1099180800000, 3.189810]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });