$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1228089600000,0.00048265],[1228176000000,0.00050119],[1228262400000,0.00050799],[1228348800000,0.00051803],[1228435200000,0.00051659],[1228521600000,0.00051648],[1228608000000,0.00051648],[1228694400000,0.00051648],[1228780800000,0.00051922],[1228867200000,0.00052141],[1228953600000,0.00052451],[1229040000000,0.00052539],[1229126400000,0.00052443],[1229212800000,0.00052443],[1229299200000,0.00052443],[1229385600000,0.00053711],[1229472000000,0.00054304],[1229558400000,0.00055192],[1229644800000,0.0005529],[1229731200000,0.0005529],[1229817600000,0.0005529],[1229904000000,0.0005529],[1229990400000,0.0005529],[1230076800000,0.00054667],[1230163200000,0.00054667],[1230249600000,0.00054667],[1230336000000,0.00054035],[1230422400000,0.00054035],[1230508800000,0.00054035],[1230595200000,0.00054035],[1230681600000,0.00054035]], 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: [[1228089600000, 0.000483],[1228089600000, 0.000483],[1228176000000, 0.000501],[1228262400000, 0.000508],[1228348800000, 0.000518],[1228435200000, 0.000517],[1228521600000, 0.000516],[1228608000000, 0.000516],[1228694400000, 0.000516],[1228780800000, 0.000519],[1228867200000, 0.000521],[1228953600000, 0.000525],[1229040000000, 0.000525],[1229126400000, 0.000524],[1229212800000, 0.000524],[1229299200000, 0.000524],[1229385600000, 0.000537],[1229472000000, 0.000543],[1229558400000, 0.000552],[1229644800000, 0.000553],[1229731200000, 0.000553],[1229817600000, 0.000553],[1229904000000, 0.000553],[1229990400000, 0.000553],[1230076800000, 0.000547],[1230163200000, 0.000547],[1230249600000, 0.000547],[1230336000000, 0.000540],[1230422400000, 0.000540],[1230508800000, 0.000540],[1230595200000, 0.000540],[1230681600000, 0.000540]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });