$(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: [[1359676800000,0.037056],[1359763200000,0.037301],[1359849600000,0.037301],[1359936000000,0.037301],[1360022400000,0.036941],[1360108800000,0.037013],[1360195200000,0.03672],[1360281600000,0.036784],[1360368000000,0.036581],[1360454400000,0.036581],[1360540800000,0.036581],[1360627200000,0.036691],[1360713600000,0.036875],[1360800000000,0.037269],[1360886400000,0.036416],[1360972800000,0.036428],[1361059200000,0.036428],[1361145600000,0.036428],[1361232000000,0.036553],[1361318400000,0.036693],[1361404800000,0.036685],[1361491200000,0.036036],[1361577600000,0.036027],[1361664000000,0.036027],[1361750400000,0.036027],[1361836800000,0.036226],[1361923200000,0.03544],[1362009600000,0.03542]], 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: [[1359676800000, 0.037056],[1359676800000, 0.037056],[1359763200000, 0.037301],[1359849600000, 0.037301],[1359936000000, 0.037301],[1360022400000, 0.036941],[1360108800000, 0.037013],[1360195200000, 0.036720],[1360281600000, 0.036784],[1360368000000, 0.036581],[1360454400000, 0.036581],[1360540800000, 0.036581],[1360627200000, 0.036691],[1360713600000, 0.036875],[1360800000000, 0.037269],[1360886400000, 0.036416],[1360972800000, 0.036428],[1361059200000, 0.036428],[1361145600000, 0.036428],[1361232000000, 0.036553],[1361318400000, 0.036693],[1361404800000, 0.036685],[1361491200000, 0.036036],[1361577600000, 0.036027],[1361664000000, 0.036027],[1361750400000, 0.036027],[1361836800000, 0.036226],[1361923200000, 0.035440],[1362009600000, 0.035420]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });