$(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: [[1420070400000,0.30304],[1420156800000,0.30304],[1420243200000,0.30304],[1420329600000,0.30304],[1420416000000,0.30304],[1420502400000,0.30304],[1420588800000,0.28059],[1420675200000,0.28059],[1420761600000,null],[1420848000000,0.28005],[1420934400000,0.28005],[1421020800000,0.28005],[1421107200000,0.2802],[1421193600000,0.25134],[1421280000000,null],[1421366400000,0.23868],[1421452800000,0.24367],[1421539200000,0.2436],[1421625600000,0.2436],[1421712000000,0.24255],[1421798400000,0.24275],[1421884800000,0.24289],[1421971200000,null],[1422057600000,0.24147],[1422144000000,0.24147],[1422230400000,0.24147],[1422316800000,0.2494],[1422403200000,0.2424],[1422489600000,0.23401],[1422576000000,0.23759],[1422662400000,0.23509]], 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: [[1420070400000, 0.303040],[1420070400000, 0.303040],[1420156800000, 0.303040],[1420243200000, 0.303040],[1420329600000, 0.303040],[1420416000000, 0.303040],[1420502400000, 0.303040],[1420588800000, 0.280590],[1420675200000, 0.280590],[1420848000000, 0.280050],[1420934400000, 0.280050],[1421020800000, 0.280050],[1421107200000, 0.280200],[1421193600000, 0.251340],[1421366400000, 0.238680],[1421452800000, 0.243670],[1421539200000, 0.243600],[1421625600000, 0.243600],[1421712000000, 0.242550],[1421798400000, 0.242750],[1421884800000, 0.242890],[1422057600000, 0.241470],[1422144000000, 0.241470],[1422230400000, 0.241470],[1422316800000, 0.249400],[1422403200000, 0.242400],[1422489600000, 0.234010],[1422576000000, 0.237590],[1422662400000, 0.235090]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });