$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1298937600000,0.27453],[1299024000000,0.27601],[1299110400000,0.27725],[1299196800000,0.28023],[1299283200000,0.28151],[1299369600000,0.28151],[1299456000000,0.28151],[1299542400000,0.28151],[1299628800000,0.28151],[1299715200000,0.28045],[1299801600000,0.27906],[1299888000000,0.27714],[1299974400000,0.27714],[1300060800000,0.27714],[1300147200000,0.27683],[1300233600000,0.27643],[1300320000000,0.27719],[1300406400000,0.27638],[1300492800000,0.2791],[1300579200000,0.2791],[1300665600000,0.2791],[1300752000000,0.28017],[1300838400000,0.28227],[1300924800000,0.28124],[1301011200000,0.28019],[1301097600000,0.28203],[1301184000000,0.28203],[1301270400000,0.28203],[1301356800000,0.28017],[1301443200000,0.28084],[1301529600000,0.28]], 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, 0.274530],[1298937600000, 0.274530],[1299024000000, 0.276010],[1299110400000, 0.277250],[1299196800000, 0.280230],[1299283200000, 0.281510],[1299369600000, 0.281510],[1299456000000, 0.281510],[1299542400000, 0.281510],[1299628800000, 0.281510],[1299715200000, 0.280450],[1299801600000, 0.279060],[1299888000000, 0.277140],[1299974400000, 0.277140],[1300060800000, 0.277140],[1300147200000, 0.276830],[1300233600000, 0.276430],[1300320000000, 0.277190],[1300406400000, 0.276380],[1300492800000, 0.279100],[1300579200000, 0.279100],[1300665600000, 0.279100],[1300752000000, 0.280170],[1300838400000, 0.282270],[1300924800000, 0.281240],[1301011200000, 0.280190],[1301097600000, 0.282030],[1301184000000, 0.282030],[1301270400000, 0.282030],[1301356800000, 0.280170],[1301443200000, 0.280840],[1301529600000, 0.280000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });