$(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: [[1225497600000,4.70938],[1225584000000,4.70938],[1225670400000,4.70938],[1225756800000,4.8411],[1225843200000,4.99636],[1225929600000,5.04336],[1226016000000,4.94603],[1226102400000,4.85841],[1226188800000,4.85841],[1226275200000,4.85841],[1226361600000,4.93151],[1226448000000,4.85391],[1226534400000,4.76689],[1226620800000,4.68272],[1226707200000,4.72884],[1226793600000,4.72884],[1226880000000,4.72884],[1226966400000,4.7317],[1227052800000,4.7877],[1227139200000,4.84349],[1227225600000,4.75762],[1227312000000,4.81554],[1227398400000,4.81554],[1227484800000,4.81554],[1227571200000,4.98372],[1227657600000,5.32149],[1227744000000,5.45544],[1227830400000,5.45706],[1227916800000,5.54881],[1228003200000,5.54881]], 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: [[1225497600000, 4.709376],[1225497600000, 4.709376],[1225584000000, 4.709376],[1225670400000, 4.709376],[1225756800000, 4.841099],[1225843200000, 4.996361],[1225929600000, 5.043363],[1226016000000, 4.946029],[1226102400000, 4.858407],[1226188800000, 4.858407],[1226275200000, 4.858407],[1226361600000, 4.931511],[1226448000000, 4.853911],[1226534400000, 4.766893],[1226620800000, 4.682722],[1226707200000, 4.728844],[1226793600000, 4.728844],[1226880000000, 4.728844],[1226966400000, 4.731697],[1227052800000, 4.787705],[1227139200000, 4.843491],[1227225600000, 4.757617],[1227312000000, 4.815539],[1227398400000, 4.815539],[1227484800000, 4.815539],[1227571200000, 4.983718],[1227657600000, 5.321492],[1227744000000, 5.455438],[1227830400000, 5.457063],[1227916800000, 5.548811],[1228003200000, 5.548811]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });