$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1164931200000,0.19196],[1165017600000,0.19241],[1165104000000,0.19241],[1165190400000,0.19241],[1165276800000,0.19271],[1165363200000,0.19287],[1165449600000,0.19283],[1165536000000,0.19281],[1165622400000,0.19249],[1165708800000,0.19249],[1165795200000,0.19249],[1165881600000,0.19203],[1165968000000,0.1923],[1166054400000,0.1925],[1166140800000,0.19227],[1166227200000,0.1918],[1166313600000,0.1918],[1166400000000,0.1918],[1166486400000,0.19137],[1166572800000,0.19141],[1166659200000,0.19219],[1166745600000,0.19207],[1166832000000,0.19206],[1166918400000,0.19206],[1167004800000,0.19206],[1167091200000,0.19163],[1167177600000,0.19158],[1167264000000,0.19175],[1167350400000,0.19144],[1167436800000,0.19179]], 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: [[1164931200000, 0.191960],[1164931200000, 0.191960],[1165017600000, 0.192410],[1165104000000, 0.192410],[1165190400000, 0.192410],[1165276800000, 0.192710],[1165363200000, 0.192870],[1165449600000, 0.192830],[1165536000000, 0.192810],[1165622400000, 0.192490],[1165708800000, 0.192490],[1165795200000, 0.192490],[1165881600000, 0.192030],[1165968000000, 0.192300],[1166054400000, 0.192500],[1166140800000, 0.192270],[1166227200000, 0.191800],[1166313600000, 0.191800],[1166400000000, 0.191800],[1166486400000, 0.191370],[1166572800000, 0.191410],[1166659200000, 0.192190],[1166745600000, 0.192070],[1166832000000, 0.192060],[1166918400000, 0.192060],[1167004800000, 0.192060],[1167091200000, 0.191630],[1167177600000, 0.191580],[1167264000000, 0.191750],[1167350400000, 0.191440],[1167436800000, 0.191790]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });