$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1185926400000,4.76068],[1186012800000,4.73986],[1186099200000,4.77729],[1186185600000,4.77819],[1186272000000,4.77819],[1186358400000,4.77819],[1186444800000,4.79594],[1186531200000,4.78137],[1186617600000,4.80544],[1186704000000,4.78841],[1186790400000,4.78731],[1186876800000,4.78731],[1186963200000,4.78731],[1187049600000,4.79666],[1187136000000,4.78223],[1187222400000,4.69078],[1187308800000,4.67864],[1187395200000,4.71301],[1187481600000,4.71301],[1187568000000,4.71301],[1187654400000,4.75967],[1187740800000,4.77131],[1187827200000,4.76534],[1187913600000,4.81044],[1188000000000,4.81044],[1188086400000,4.81044],[1188172800000,4.81044],[1188259200000,4.81419],[1188345600000,4.78491],[1188432000000,4.75916],[1188518400000,4.75512]], 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: [[1185926400000, 4.760684],[1185926400000, 4.760684],[1186012800000, 4.739861],[1186099200000, 4.777292],[1186185600000, 4.778187],[1186272000000, 4.778187],[1186358400000, 4.778187],[1186444800000, 4.795938],[1186531200000, 4.781365],[1186617600000, 4.805443],[1186704000000, 4.788414],[1186790400000, 4.787312],[1186876800000, 4.787312],[1186963200000, 4.787312],[1187049600000, 4.796657],[1187136000000, 4.782229],[1187222400000, 4.690778],[1187308800000, 4.678641],[1187395200000, 4.713006],[1187481600000, 4.713006],[1187568000000, 4.713006],[1187654400000, 4.759673],[1187740800000, 4.771309],[1187827200000, 4.765344],[1187913600000, 4.810435],[1188000000000, 4.810435],[1188086400000, 4.810435],[1188172800000, 4.810435],[1188259200000, 4.814190],[1188345600000, 4.784911],[1188432000000, 4.759164],[1188518400000, 4.755120]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });