$(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: [[1294272000000,0.0379579],[1294358400000,0.0377573],[1294444800000,0.0377573],[1294531200000,0.0377573],[1294617600000,0.0377573],[1294704000000,0.0366186],[1294790400000,0.0369012],[1294876800000,0.0374648],[1294963200000,0.0382272],[1295049600000,0.038369],[1295136000000,0.038369],[1295222400000,0.038369],[1295308800000,0.0384907],[1295395200000,0.0389677],[1295481600000,0.03939],[1295568000000,0.0389145],[1295654400000,0.0391593],[1295740800000,0.0391593],[1295827200000,0.0391593],[1295913600000,0.0393258],[1296000000000,0.0392181],[1296086400000,0.0395937],[1296172800000,0.0398563],[1296259200000,0.0400653],[1296345600000,0.0400653],[1296432000000,0.0400653]], 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, 0.037958],[1294272000000, 0.037958],[1294358400000, 0.037757],[1294444800000, 0.037757],[1294531200000, 0.037757],[1294617600000, 0.037757],[1294704000000, 0.036619],[1294790400000, 0.036901],[1294876800000, 0.037465],[1294963200000, 0.038227],[1295049600000, 0.038369],[1295136000000, 0.038369],[1295222400000, 0.038369],[1295308800000, 0.038491],[1295395200000, 0.038968],[1295481600000, 0.039390],[1295568000000, 0.038914],[1295654400000, 0.039159],[1295740800000, 0.039159],[1295827200000, 0.039159],[1295913600000, 0.039326],[1296000000000, 0.039218],[1296086400000, 0.039594],[1296172800000, 0.039856],[1296259200000, 0.040065],[1296345600000, 0.040065],[1296432000000, 0.040065]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });