$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[988675200000,0.18785],[988761600000,0.18785],[988848000000,0.18785],[988934400000,0.18752],[989020800000,0.187],[989107200000,0.187],[989193600000,0.187],[989280000000,0.18698],[989366400000,0.18696],[989452800000,0.18696],[989539200000,0.18702],[989625600000,0.18702],[989712000000,0.18693],[989798400000,0.18693],[989884800000,0.18672],[989971200000,0.18639],[990057600000,0.18651],[990144000000,0.18618],[990230400000,0.18605],[990316800000,0.18605],[990403200000,0.18605],[990489600000,0.18605],[990576000000,0.18611],[990662400000,0.18617],[990748800000,0.18609],[990835200000,0.18619],[990921600000,0.18619],[991008000000,0.18619],[991094400000,0.18619],[991180800000,0.18611],[991267200000,0.18615]], 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: [[988675200000, 0.187850],[988675200000, 0.187850],[988761600000, 0.187850],[988848000000, 0.187850],[988934400000, 0.187520],[989020800000, 0.187000],[989107200000, 0.187000],[989193600000, 0.187000],[989280000000, 0.186980],[989366400000, 0.186960],[989452800000, 0.186960],[989539200000, 0.187020],[989625600000, 0.187020],[989712000000, 0.186930],[989798400000, 0.186930],[989884800000, 0.186720],[989971200000, 0.186390],[990057600000, 0.186510],[990144000000, 0.186180],[990230400000, 0.186050],[990316800000, 0.186050],[990403200000, 0.186050],[990489600000, 0.186050],[990576000000, 0.186110],[990662400000, 0.186170],[990748800000, 0.186090],[990835200000, 0.186190],[990921600000, 0.186190],[991008000000, 0.186190],[991094400000, 0.186190],[991180800000, 0.186110],[991267200000, 0.186150]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });