$(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: [[1117584000000,1.81017],[1117670400000,1.804],[1117756800000,1.79147],[1117843200000,1.79542],[1117929600000,1.79542],[1118016000000,1.79542],[1118102400000,1.79555],[1118188800000,1.79957],[1118275200000,1.80471],[1118361600000,1.78843],[1118448000000,1.78938],[1118534400000,1.78938],[1118620800000,1.78938],[1118707200000,1.77095],[1118793600000,1.77799],[1118880000000,1.76428],[1118966400000,null],[1119052800000,1.77393],[1119139200000,1.77393],[1119225600000,1.77393],[1119312000000,null],[1119398400000,1.77755],[1119484800000,1.78471],[1119571200000,1.78471],[1119657600000,1.78471],[1119744000000,null],[1119830400000,null],[1119916800000,null],[1120003200000,null],[1120089600000,1.76261]], 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: [[1117584000000, 1.810166],[1117584000000, 1.810166],[1117670400000, 1.804004],[1117756800000, 1.791473],[1117843200000, 1.795418],[1117929600000, 1.795418],[1118016000000, 1.795418],[1118102400000, 1.795546],[1118188800000, 1.799573],[1118275200000, 1.804713],[1118361600000, 1.788431],[1118448000000, 1.789381],[1118534400000, 1.789381],[1118620800000, 1.789381],[1118707200000, 1.770950],[1118793600000, 1.777989],[1118880000000, 1.764275],[1119052800000, 1.773933],[1119139200000, 1.773933],[1119225600000, 1.773933],[1119398400000, 1.777551],[1119484800000, 1.784706],[1119571200000, 1.784706],[1119657600000, 1.784706],[1120089600000, 1.762614]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });