$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1275350400000,2.78074],[1275436800000,2.78074],[1275523200000,2.78091],[1275609600000,2.78081],[1275696000000,2.7794],[1275782400000,2.7794],[1275868800000,2.7794],[1275955200000,2.7793],[1276041600000,2.77874],[1276128000000,2.77828],[1276214400000,2.77786],[1276300800000,2.77747],[1276387200000,2.77747],[1276473600000,2.77747],[1276560000000,2.77716],[1276646400000,2.77691],[1276732800000,2.77646],[1276819200000,2.77628],[1276905600000,2.7761],[1276992000000,2.7761],[1277078400000,2.7761],[1277164800000,2.77568],[1277251200000,2.77558],[1277337600000,2.77537],[1277424000000,2.77523],[1277510400000,2.77453],[1277596800000,2.77453],[1277683200000,2.77453],[1277769600000,2.77453],[1277856000000,2.77439]], 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: [[1275350400000, 2.780737],[1275350400000, 2.780737],[1275436800000, 2.780737],[1275523200000, 2.780912],[1275609600000, 2.780807],[1275696000000, 2.779404],[1275782400000, 2.779404],[1275868800000, 2.779404],[1275955200000, 2.779298],[1276041600000, 2.778737],[1276128000000, 2.778281],[1276214400000, 2.777860],[1276300800000, 2.777474],[1276387200000, 2.777474],[1276473600000, 2.777474],[1276560000000, 2.777158],[1276646400000, 2.776912],[1276732800000, 2.776456],[1276819200000, 2.776281],[1276905600000, 2.776105],[1276992000000, 2.776105],[1277078400000, 2.776105],[1277164800000, 2.775684],[1277251200000, 2.775579],[1277337600000, 2.775368],[1277424000000, 2.775228],[1277510400000, 2.774526],[1277596800000, 2.774526],[1277683200000, 2.774526],[1277769600000, 2.774526],[1277856000000, 2.774386]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });