$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1298937600000,4.96197],[1299024000000,4.93982],[1299110400000,4.90324],[1299196800000,4.94211],[1299283200000,4.96571],[1299369600000,4.96571],[1299456000000,4.96571],[1299542400000,4.96571],[1299628800000,4.96571],[1299715200000,5.00793],[1299801600000,5.02402],[1299888000000,4.99932],[1299974400000,4.99932],[1300060800000,4.99932],[1300147200000,5.02537],[1300233600000,5.00357],[1300320000000,5.00883],[1300406400000,5.01516],[1300492800000,5.03524],[1300579200000,5.03524],[1300665600000,5.03524],[1300752000000,5.0366],[1300838400000,5.06229],[1300924800000,5.10358],[1301011200000,5.1266],[1301097600000,5.11753],[1301184000000,5.11753],[1301270400000,5.11753],[1301356800000,5.10745],[1301443200000,5.0935],[1301529600000,5.11662]], 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: [[1298937600000, 4.961967],[1298937600000, 4.961967],[1299024000000, 4.939820],[1299110400000, 4.903236],[1299196800000, 4.942114],[1299283200000, 4.965708],[1299369600000, 4.965708],[1299456000000, 4.965708],[1299542400000, 4.965708],[1299628800000, 4.965708],[1299715200000, 5.007933],[1299801600000, 5.024024],[1299888000000, 4.999320],[1299974400000, 4.999320],[1300060800000, 4.999320],[1300147200000, 5.025371],[1300233600000, 5.003571],[1300320000000, 5.008829],[1300406400000, 5.015164],[1300492800000, 5.035242],[1300579200000, 5.035242],[1300665600000, 5.035242],[1300752000000, 5.036595],[1300838400000, 5.062291],[1300924800000, 5.103583],[1301011200000, 5.126602],[1301097600000, 5.117531],[1301184000000, 5.117531],[1301270400000, 5.117531],[1301356800000, 5.107445],[1301443200000, 5.093502],[1301529600000, 5.116624]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });