$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1359676800000,3.13673],[1359763200000,3.15849],[1359849600000,3.15849],[1359936000000,3.15849],[1360022400000,3.1372],[1360108800000,3.13373],[1360195200000,3.12909],[1360281600000,3.13581],[1360368000000,3.09599],[1360454400000,3.09599],[1360540800000,3.09599],[1360627200000,3.09993],[1360713600000,3.11081],[1360800000000,3.12053],[1360886400000,3.08511],[1360972800000,3.08465],[1361059200000,3.08465],[1361145600000,3.08465],[1361232000000,3.0909],[1361318400000,3.0902],[1361404800000,3.09506],[1361491200000,3.05247],[1361577600000,3.05247],[1361664000000,3.05247],[1361750400000,3.05247],[1361836800000,3.07979],[1361923200000,3.02724],[1362009600000,3.03187]], 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, 3.136734],[1359676800000, 3.136734],[1359763200000, 3.158494],[1359849600000, 3.158494],[1359936000000, 3.158494],[1360022400000, 3.137197],[1360108800000, 3.133725],[1360195200000, 3.129095],[1360281600000, 3.135808],[1360368000000, 3.095991],[1360454400000, 3.095991],[1360540800000, 3.095991],[1360627200000, 3.099927],[1360713600000, 3.110807],[1360800000000, 3.120529],[1360886400000, 3.085111],[1360972800000, 3.084648],[1361059200000, 3.084648],[1361145600000, 3.084648],[1361232000000, 3.090898],[1361318400000, 3.090204],[1361404800000, 3.095065],[1361491200000, 3.052470],[1361577600000, 3.052470],[1361664000000, 3.052470],[1361750400000, 3.052470],[1361836800000, 3.079787],[1361923200000, 3.027238],[1362009600000, 3.031867]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });