$(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: [[1272672000000,3.05646],[1272758400000,3.05646],[1272844800000,3.05646],[1272931200000,3.05646],[1273017600000,3.05646],[1273104000000,2.9667],[1273190400000,2.92148],[1273276800000,2.92584],[1273363200000,2.92584],[1273449600000,2.92584],[1273536000000,2.92584],[1273622400000,2.91482],[1273708800000,2.91207],[1273795200000,2.88935],[1273881600000,2.86754],[1273968000000,null],[1274054400000,2.86754],[1274140800000,2.83471],[1274227200000,2.85285],[1274313600000,2.81651],[1274400000000,2.8312],[1274486400000,2.86854],[1274572800000,2.86854],[1274659200000,2.86854],[1274745600000,2.86854],[1274832000000,2.80565],[1274918400000,2.82535],[1275004800000,2.81285],[1275091200000,2.84246],[1275177600000,2.84246],[1275264000000,2.84246]], 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: [[1272672000000, 3.056457],[1272672000000, 3.056457],[1272758400000, 3.056457],[1272844800000, 3.056457],[1272931200000, 3.056457],[1273017600000, 3.056457],[1273104000000, 2.966703],[1273190400000, 2.921482],[1273276800000, 2.925843],[1273363200000, 2.925843],[1273449600000, 2.925843],[1273536000000, 2.925843],[1273622400000, 2.914825],[1273708800000, 2.912070],[1273795200000, 2.889345],[1273881600000, 2.867538],[1274054400000, 2.867538],[1274140800000, 2.834712],[1274227200000, 2.852847],[1274313600000, 2.816507],[1274400000000, 2.831197],[1274486400000, 2.868541],[1274572800000, 2.868541],[1274659200000, 2.868541],[1274745600000, 2.868541],[1274832000000, 2.805647],[1274918400000, 2.825352],[1275004800000, 2.812850],[1275091200000, 2.842459],[1275177600000, 2.842459],[1275264000000, 2.842459]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });