$(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: [[1294272000000,2.79263],[1294358400000,2.79263],[1294444800000,2.79263],[1294531200000,2.79263],[1294617600000,2.79263],[1294704000000,2.79239],[1294790400000,2.79235],[1294876800000,2.79235],[1294963200000,2.79063],[1295049600000,2.78958],[1295136000000,2.78958],[1295222400000,2.78958],[1295308800000,2.78754],[1295395200000,2.78754],[1295481600000,2.78754],[1295568000000,2.78719],[1295654400000,2.78684],[1295740800000,2.78684],[1295827200000,2.78684],[1295913600000,2.78614],[1296000000000,2.78554],[1296086400000,2.7847],[1296172800000,2.78246],[1296259200000,2.78597],[1296345600000,2.78597],[1296432000000,2.78597]], 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: [[1294272000000, 2.792632],[1294272000000, 2.792632],[1294358400000, 2.792632],[1294444800000, 2.792632],[1294531200000, 2.792632],[1294617600000, 2.792632],[1294704000000, 2.792386],[1294790400000, 2.792351],[1294876800000, 2.792351],[1294963200000, 2.790632],[1295049600000, 2.789579],[1295136000000, 2.789579],[1295222400000, 2.789579],[1295308800000, 2.787544],[1295395200000, 2.787544],[1295481600000, 2.787544],[1295568000000, 2.787193],[1295654400000, 2.786842],[1295740800000, 2.786842],[1295827200000, 2.786842],[1295913600000, 2.786140],[1296000000000, 2.785544],[1296086400000, 2.784702],[1296172800000, 2.782456],[1296259200000, 2.785965],[1296345600000, 2.785965],[1296432000000, 2.785965]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });