$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1141171200000,3.82918],[1141257600000,3.86626],[1141344000000,3.8477],[1141430400000,3.88412],[1141516800000,3.88412],[1141603200000,3.88412],[1141689600000,3.88837],[1141776000000,3.8525],[1141862400000,3.8525],[1141948800000,3.85008],[1142035200000,3.84263],[1142121600000,3.84263],[1142208000000,3.84263],[1142294400000,3.83821],[1142380800000,3.85026],[1142467200000,3.87985],[1142553600000,3.88851],[1142640000000,3.91066],[1142726400000,3.91066],[1142812800000,3.91066],[1142899200000,3.91161],[1142985600000,3.89676],[1143072000000,3.87319],[1143158400000,3.86035],[1143244800000,3.83451],[1143331200000,3.83451],[1143417600000,3.83451],[1143504000000,3.8598],[1143590400000,3.88318],[1143676800000,3.85342],[1143763200000,3.87939]], 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: [[1141171200000, 3.829178],[1141171200000, 3.829178],[1141257600000, 3.866255],[1141344000000, 3.847696],[1141430400000, 3.884118],[1141516800000, 3.884118],[1141603200000, 3.884118],[1141689600000, 3.888374],[1141776000000, 3.852501],[1141862400000, 3.852501],[1141948800000, 3.850080],[1142035200000, 3.842630],[1142121600000, 3.842630],[1142208000000, 3.842630],[1142294400000, 3.838206],[1142380800000, 3.850258],[1142467200000, 3.879851],[1142553600000, 3.888506],[1142640000000, 3.910661],[1142726400000, 3.910661],[1142812800000, 3.910661],[1142899200000, 3.911605],[1142985600000, 3.896759],[1143072000000, 3.873186],[1143158400000, 3.860352],[1143244800000, 3.834514],[1143331200000, 3.834514],[1143417600000, 3.834514],[1143504000000, 3.859801],[1143590400000, 3.883182],[1143676800000, 3.853424],[1143763200000, 3.879385]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });