$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1298937600000,7.9347],[1299024000000,7.9373],[1299110400000,7.937],[1299196800000,7.937],[1299283200000,7.9351],[1299369600000,7.9351],[1299456000000,7.9351],[1299542400000,7.9351],[1299628800000,7.9351],[1299715200000,7.9351],[1299801600000,7.9351],[1299888000000,7.9351],[1299974400000,7.9351],[1300060800000,7.9351],[1300147200000,7.9351],[1300233600000,7.9407],[1300320000000,7.9439],[1300406400000,7.9439],[1300492800000,7.9477],[1300579200000,7.9477],[1300665600000,7.9477],[1300752000000,7.9477],[1300838400000,7.9477],[1300924800000,7.9507],[1301011200000,7.9577],[1301097600000,7.96],[1301184000000,7.96],[1301270400000,7.96],[1301356800000,7.96],[1301443200000,7.96],[1301529600000,7.96]], 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, 7.934700],[1298937600000, 7.934700],[1299024000000, 7.937300],[1299110400000, 7.937000],[1299196800000, 7.937000],[1299283200000, 7.935100],[1299369600000, 7.935100],[1299456000000, 7.935100],[1299542400000, 7.935100],[1299628800000, 7.935100],[1299715200000, 7.935100],[1299801600000, 7.935100],[1299888000000, 7.935100],[1299974400000, 7.935100],[1300060800000, 7.935100],[1300147200000, 7.935100],[1300233600000, 7.940700],[1300320000000, 7.943900],[1300406400000, 7.943900],[1300492800000, 7.947700],[1300579200000, 7.947700],[1300665600000, 7.947700],[1300752000000, 7.947700],[1300838400000, 7.947700],[1300924800000, 7.950700],[1301011200000, 7.957700],[1301097600000, 7.960000],[1301184000000, 7.960000],[1301270400000, 7.960000],[1301356800000, 7.960000],[1301443200000, 7.960000],[1301529600000, 7.960000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });