$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1096588800000,4.18437],[1096675200000,null],[1096761600000,null],[1096848000000,4.20683],[1096934400000,4.18432],[1097020800000,4.18524],[1097107200000,4.20245],[1097193600000,4.22604],[1097280000000,4.22604],[1097366400000,4.22604],[1097452800000,4.22339],[1097539200000,4.23229],[1097625600000,4.22181],[1097712000000,4.19006],[1097798400000,4.22837],[1097884800000,null],[1097971200000,4.21238],[1098057600000,4.21238],[1098144000000,4.22752],[1098230400000,4.21435],[1098316800000,4.24974],[1098403200000,4.25641],[1098489600000,4.26509],[1098576000000,4.26509],[1098662400000,4.26509],[1098748800000,4.34326],[1098835200000,4.33776],[1098921600000,4.34353],[1099008000000,4.32211],[1099094400000,4.34767],[1099180800000,4.34767]], 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, 4.184370],[1096588800000, 4.184370],[1096848000000, 4.206830],[1096934400000, 4.184320],[1097020800000, 4.185240],[1097107200000, 4.202450],[1097193600000, 4.226040],[1097280000000, 4.226040],[1097366400000, 4.226040],[1097452800000, 4.223390],[1097539200000, 4.232290],[1097625600000, 4.221810],[1097712000000, 4.190060],[1097798400000, 4.228370],[1097971200000, 4.212380],[1098057600000, 4.212380],[1098144000000, 4.227520],[1098230400000, 4.214350],[1098316800000, 4.249740],[1098403200000, 4.256410],[1098489600000, 4.265090],[1098576000000, 4.265090],[1098662400000, 4.265090],[1098748800000, 4.343260],[1098835200000, 4.337760],[1098921600000, 4.343530],[1099008000000, 4.322110],[1099094400000, 4.347670],[1099180800000, 4.347670]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });