$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1433116800000,1.16734],[1433203200000,1.16734],[1433289600000,1.16471],[1433376000000,1.15776],[1433462400000,1.15319],[1433548800000,1.14878],[1433635200000,1.14878],[1433721600000,1.14878],[1433808000000,1.15348],[1433894400000,1.15902],[1433980800000,1.163],[1434067200000,1.15901],[1434153600000,1.16785],[1434240000000,1.16785],[1434326400000,1.16785],[1434412800000,1.1865],[1434499200000,1.22203],[1434585600000,1.18053],[1434672000000,1.1524],[1434758400000,1.15696],[1434844800000,1.15696],[1434931200000,1.15696],[1435017600000,1.14638],[1435104000000,1.13065],[1435190400000,1.11796],[1435276800000,1.12343],[1435363200000,1.12095],[1435449600000,1.12095],[1435536000000,1.12095],[1435622400000,1.12095]], 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: [[1433116800000, 1.167336],[1433116800000, 1.167336],[1433203200000, 1.167336],[1433289600000, 1.164706],[1433376000000, 1.157761],[1433462400000, 1.153187],[1433548800000, 1.148775],[1433635200000, 1.148775],[1433721600000, 1.148775],[1433808000000, 1.153479],[1433894400000, 1.159022],[1433980800000, 1.162999],[1434067200000, 1.159012],[1434153600000, 1.167852],[1434240000000, 1.167852],[1434326400000, 1.167852],[1434412800000, 1.186499],[1434499200000, 1.222032],[1434585600000, 1.180531],[1434672000000, 1.152398],[1434758400000, 1.156956],[1434844800000, 1.156956],[1434931200000, 1.156956],[1435017600000, 1.146385],[1435104000000, 1.130648],[1435190400000, 1.117957],[1435276800000, 1.123429],[1435363200000, 1.120945],[1435449600000, 1.120945],[1435536000000, 1.120945],[1435622400000, 1.120945]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });