$(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: [[1225497600000,0.00040623],[1225584000000,0.00040623],[1225670400000,0.00040623],[1225756800000,0.00040644],[1225843200000,0.00040885],[1225929600000,0.00040859],[1226016000000,0.00040694],[1226102400000,0.00040691],[1226188800000,0.00040691],[1226275200000,0.00040691],[1226361600000,0.00040564],[1226448000000,0.00040532],[1226534400000,0.00040561],[1226620800000,0.00040575],[1226707200000,0.00040592],[1226793600000,0.00040592],[1226880000000,0.00040592],[1226966400000,0.00040659],[1227052800000,0.00041301],[1227139200000,0.0004206],[1227225600000,0.00042097],[1227312000000,0.0004331],[1227398400000,0.0004331],[1227484800000,0.0004331],[1227571200000,0.00044176],[1227657600000,0.00046383],[1227744000000,0.00047311],[1227830400000,0.00047311],[1227916800000,0.00048265],[1228003200000,0.00048265]], 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: [[1225497600000, 0.000406],[1225497600000, 0.000406],[1225584000000, 0.000406],[1225670400000, 0.000406],[1225756800000, 0.000406],[1225843200000, 0.000409],[1225929600000, 0.000409],[1226016000000, 0.000407],[1226102400000, 0.000407],[1226188800000, 0.000407],[1226275200000, 0.000407],[1226361600000, 0.000406],[1226448000000, 0.000405],[1226534400000, 0.000406],[1226620800000, 0.000406],[1226707200000, 0.000406],[1226793600000, 0.000406],[1226880000000, 0.000406],[1226966400000, 0.000407],[1227052800000, 0.000413],[1227139200000, 0.000421],[1227225600000, 0.000421],[1227312000000, 0.000433],[1227398400000, 0.000433],[1227484800000, 0.000433],[1227571200000, 0.000442],[1227657600000, 0.000464],[1227744000000, 0.000473],[1227830400000, 0.000473],[1227916800000, 0.000483],[1228003200000, 0.000483]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });