$(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: [[1107216000000,4.27623],[1107302400000,4.27706],[1107388800000,4.29411],[1107475200000,4.27477],[1107561600000,4.26622],[1107648000000,4.26622],[1107734400000,4.26622],[1107820800000,4.23223],[1107907200000,4.22525],[1107993600000,4.24077],[1108080000000,4.22791],[1108166400000,4.26147],[1108252800000,4.26147],[1108339200000,4.26147],[1108425600000,4.3056],[1108512000000,4.2971],[1108598400000,4.29781],[1108684800000,4.292],[1108771200000,4.30471],[1108857600000,4.30471],[1108944000000,4.30471],[1109030400000,4.3041],[1109116800000,4.31416],[1109203200000,4.29992],[1109289600000,4.25563],[1109376000000,4.26466],[1109462400000,4.26466],[1109548800000,4.26466]], 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: [[1107216000000, 4.276225],[1107216000000, 4.276225],[1107302400000, 4.277063],[1107388800000, 4.294110],[1107475200000, 4.274775],[1107561600000, 4.266217],[1107648000000, 4.266217],[1107734400000, 4.266217],[1107820800000, 4.232228],[1107907200000, 4.225250],[1107993600000, 4.240770],[1108080000000, 4.227914],[1108166400000, 4.261465],[1108252800000, 4.261465],[1108339200000, 4.261465],[1108425600000, 4.305596],[1108512000000, 4.297096],[1108598400000, 4.297815],[1108684800000, 4.292004],[1108771200000, 4.304714],[1108857600000, 4.304714],[1108944000000, 4.304714],[1109030400000, 4.304097],[1109116800000, 4.314164],[1109203200000, 4.299921],[1109289600000, 4.255632],[1109376000000, 4.264662],[1109462400000, 4.264662],[1109548800000, 4.264662]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });