$(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: [[1249084800000,3.15251],[1249171200000,3.15251],[1249257600000,3.15251],[1249344000000,3.18408],[1249430400000,3.20003],[1249516800000,3.20644],[1249603200000,3.20378],[1249689600000,3.2033],[1249776000000,3.2033],[1249862400000,3.2033],[1249948800000,3.17126],[1250035200000,3.17077],[1250121600000,3.17618],[1250208000000,3.20773],[1250294400000,3.21553],[1250380800000,3.21553],[1250467200000,3.21553],[1250553600000,3.18116],[1250640000000,3.19755],[1250726400000,3.20757],[1250812800000,3.25236],[1250899200000,3.2953],[1250985600000,3.2953],[1251072000000,3.2953],[1251158400000,3.2953],[1251244800000,3.30359],[1251331200000,3.30176],[1251417600000,3.30129],[1251504000000,3.3235],[1251590400000,3.3235],[1251676800000,3.3235]], 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: [[1249084800000, 3.152510],[1249084800000, 3.152510],[1249171200000, 3.152510],[1249257600000, 3.152510],[1249344000000, 3.184083],[1249430400000, 3.200032],[1249516800000, 3.206442],[1249603200000, 3.203784],[1249689600000, 3.203298],[1249776000000, 3.203298],[1249862400000, 3.203298],[1249948800000, 3.171264],[1250035200000, 3.170775],[1250121600000, 3.176184],[1250208000000, 3.207729],[1250294400000, 3.215529],[1250380800000, 3.215529],[1250467200000, 3.215529],[1250553600000, 3.181157],[1250640000000, 3.197555],[1250726400000, 3.207570],[1250812800000, 3.252361],[1250899200000, 3.295302],[1250985600000, 3.295302],[1251072000000, 3.295302],[1251158400000, 3.295302],[1251244800000, 3.303589],[1251331200000, 3.301756],[1251417600000, 3.301293],[1251504000000, 3.323505],[1251590400000, 3.323505],[1251676800000, 3.323505]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });