$(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: [[1112313600000,0.0010155],[1112400000000,0.0010155],[1112486400000,0.0010155],[1112572800000,0.0010155],[1112659200000,0.00101537],[1112745600000,0.00101537],[1112832000000,0.00101442],[1112918400000,0.00101437],[1113004800000,0.00101346],[1113091200000,0.00101346],[1113177600000,0.00101346],[1113264000000,0.00101327],[1113350400000,0.00101279],[1113436800000,0.00101163],[1113523200000,0.00101077],[1113609600000,0.00100673],[1113696000000,0.00100673],[1113782400000,0.00100673],[1113868800000,0.00100385],[1113955200000,0.00099808],[1114041600000,0.00097115],[1114128000000,0.00097115],[1114214400000,0.00097115],[1114300800000,0.00097115],[1114387200000,0.00097115],[1114473600000,0.00097115],[1114560000000,0.00097115],[1114646400000,0.00097115],[1114732800000,0.00097115],[1114819200000,0.00097115]], 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: [[1112313600000, 0.001015],[1112313600000, 0.001015],[1112400000000, 0.001015],[1112486400000, 0.001015],[1112572800000, 0.001015],[1112659200000, 0.001015],[1112745600000, 0.001015],[1112832000000, 0.001014],[1112918400000, 0.001014],[1113004800000, 0.001013],[1113091200000, 0.001013],[1113177600000, 0.001013],[1113264000000, 0.001013],[1113350400000, 0.001013],[1113436800000, 0.001012],[1113523200000, 0.001011],[1113609600000, 0.001007],[1113696000000, 0.001007],[1113782400000, 0.001007],[1113868800000, 0.001004],[1113955200000, 0.000998],[1114041600000, 0.000971],[1114128000000, 0.000971],[1114214400000, 0.000971],[1114300800000, 0.000971],[1114387200000, 0.000971],[1114473600000, 0.000971],[1114560000000, 0.000971],[1114646400000, 0.000971],[1114732800000, 0.000971],[1114819200000, 0.000971]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });