$(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: [[1251763200000,3.30222],[1251849600000,3.30821],[1251936000000,3.28854],[1252022400000,3.31514],[1252108800000,3.30238],[1252195200000,3.30238],[1252281600000,3.30238],[1252368000000,3.31813],[1252454400000,3.35208],[1252540800000,3.36259],[1252627200000,3.36766],[1252713600000,3.38027],[1252800000000,3.38027],[1252886400000,3.38027],[1252972800000,3.37242],[1253059200000,3.38709],[1253145600000,3.401],[1253232000000,3.41148],[1253318400000,3.40986],[1253404800000,3.40986],[1253491200000,3.40986],[1253577600000,3.39909],[1253664000000,3.42738],[1253750400000,3.42807],[1253836800000,3.4246],[1253923200000,3.40187],[1254009600000,3.40187],[1254096000000,3.40187],[1254182400000,3.39859],[1254268800000,3.37516]], 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: [[1251763200000, 3.302219],[1251763200000, 3.302219],[1251849600000, 3.308206],[1251936000000, 3.288540],[1252022400000, 3.315135],[1252108800000, 3.302383],[1252195200000, 3.302383],[1252281600000, 3.302383],[1252368000000, 3.318129],[1252454400000, 3.352079],[1252540800000, 3.362587],[1252627200000, 3.367660],[1252713600000, 3.380273],[1252800000000, 3.380273],[1252886400000, 3.380273],[1252972800000, 3.372418],[1253059200000, 3.387088],[1253145600000, 3.400997],[1253232000000, 3.411481],[1253318400000, 3.409858],[1253404800000, 3.409858],[1253491200000, 3.409858],[1253577600000, 3.399087],[1253664000000, 3.427378],[1253750400000, 3.428074],[1253836800000, 3.424595],[1253923200000, 3.401870],[1254009600000, 3.401870],[1254096000000, 3.401870],[1254182400000, 3.398590],[1254268800000, 3.375159]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });