$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1298937600000,15.5811],[1299024000000,15.576],[1299110400000,15.5464],[1299196800000,15.6036],[1299283200000,15.6981],[1299369600000,15.6981],[1299456000000,15.6981],[1299542400000,15.6981],[1299628800000,15.6981],[1299715200000,15.6544],[1299801600000,15.5187],[1299888000000,15.4649],[1299974400000,15.4649],[1300060800000,15.4649],[1300147200000,15.6636],[1300233600000,15.5961],[1300320000000,15.6976],[1300406400000,15.735],[1300492800000,15.8842],[1300579200000,15.8842],[1300665600000,15.8842],[1300752000000,15.9133],[1300838400000,15.9324],[1300924800000,15.8565],[1301011200000,15.8481],[1301097600000,15.847],[1301184000000,15.847],[1301270400000,15.847],[1301356800000,15.7538],[1301443200000,15.7876],[1301529600000,15.8123]], 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, 15.581070],[1298937600000, 15.581070],[1299024000000, 15.576036],[1299110400000, 15.546388],[1299196800000, 15.603612],[1299283200000, 15.698113],[1299369600000, 15.698113],[1299456000000, 15.698113],[1299542400000, 15.698113],[1299628800000, 15.698113],[1299715200000, 15.654401],[1299801600000, 15.518652],[1299888000000, 15.464855],[1299974400000, 15.464855],[1300060800000, 15.464855],[1300147200000, 15.663568],[1300233600000, 15.596078],[1300320000000, 15.697641],[1300406400000, 15.734989],[1300492800000, 15.884159],[1300579200000, 15.884159],[1300665600000, 15.884159],[1300752000000, 15.913338],[1300838400000, 15.932397],[1300924800000, 15.856531],[1301011200000, 15.848095],[1301097600000, 15.847024],[1301184000000, 15.847024],[1301270400000, 15.847024],[1301356800000, 15.753839],[1301443200000, 15.787558],[1301529600000, 15.812266]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });