$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1298937600000,8.54896],[1299024000000,8.54021],[1299110400000,8.56333],[1299196800000,8.55866],[1299283200000,8.51924],[1299369600000,8.51924],[1299456000000,8.51924],[1299542400000,8.51924],[1299628800000,8.51924],[1299715200000,8.55419],[1299801600000,8.48996],[1299888000000,8.51037],[1299974400000,8.51037],[1300060800000,8.51037],[1300147200000,8.55257],[1300233600000,8.64289],[1300320000000,8.68878],[1300406400000,8.81159],[1300492800000,8.8024],[1300579200000,8.8024],[1300665600000,8.8024],[1300752000000,8.78854],[1300838400000,8.79427],[1300924800000,8.81775],[1301011200000,8.77166],[1301097600000,8.69961],[1301184000000,8.69961],[1301270400000,8.69961],[1301356800000,8.65314],[1301443200000,8.6413],[1301529600000,8.63206]], 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, 8.548959],[1298937600000, 8.548959],[1299024000000, 8.540211],[1299110400000, 8.563328],[1299196800000, 8.558662],[1299283200000, 8.519245],[1299369600000, 8.519245],[1299456000000, 8.519245],[1299542400000, 8.519245],[1299628800000, 8.519245],[1299715200000, 8.554185],[1299801600000, 8.489955],[1299888000000, 8.510367],[1299974400000, 8.510367],[1300060800000, 8.510367],[1300147200000, 8.552567],[1300233600000, 8.642888],[1300320000000, 8.688777],[1300406400000, 8.811594],[1300492800000, 8.802399],[1300579200000, 8.802399],[1300665600000, 8.802399],[1300752000000, 8.788536],[1300838400000, 8.794267],[1300924800000, 8.817754],[1301011200000, 8.771662],[1301097600000, 8.699605],[1301184000000, 8.699605],[1301270400000, 8.699605],[1301356800000, 8.653139],[1301443200000, 8.641303],[1301529600000, 8.632063]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });