$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1133395200000,0.0235222],[1133481600000,0.0234214],[1133568000000,0.0234125],[1133654400000,0.0234125],[1133740800000,0.0234125],[1133827200000,0.0236013],[1133913600000,0.023539],[1134000000000,0.0233322],[1134086400000,0.0232381],[1134172800000,0.0232414],[1134259200000,0.0232414],[1134345600000,0.0232414],[1134432000000,0.0236672],[1134518400000,0.0238198],[1134604800000,0.0240657],[1134691200000,0.0239819],[1134777600000,0.0239064],[1134864000000,0.0239064],[1134950400000,0.0239064],[1135036800000,0.0239398],[1135123200000,0.024029],[1135209600000,0.0238678],[1135296000000,0.0237995],[1135382400000,0.0238123],[1135468800000,0.0238123],[1135555200000,0.0238123],[1135641600000,0.0238123],[1135728000000,0.0238115],[1135814400000,0.0239192],[1135900800000,0.0236491]], 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: [[1133395200000, 0.023522],[1133395200000, 0.023522],[1133481600000, 0.023421],[1133568000000, 0.023412],[1133654400000, 0.023412],[1133740800000, 0.023412],[1133827200000, 0.023601],[1133913600000, 0.023539],[1134000000000, 0.023332],[1134086400000, 0.023238],[1134172800000, 0.023241],[1134259200000, 0.023241],[1134345600000, 0.023241],[1134432000000, 0.023667],[1134518400000, 0.023820],[1134604800000, 0.024066],[1134691200000, 0.023982],[1134777600000, 0.023906],[1134864000000, 0.023906],[1134950400000, 0.023906],[1135036800000, 0.023940],[1135123200000, 0.024029],[1135209600000, 0.023868],[1135296000000, 0.023800],[1135382400000, 0.023812],[1135468800000, 0.023812],[1135555200000, 0.023812],[1135641600000, 0.023812],[1135728000000, 0.023811],[1135814400000, 0.023919],[1135900800000, 0.023649]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });