$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1251763200000,16.2166],[1251849600000,16.2483],[1251936000000,16.1563],[1252022400000,16.2893],[1252108800000,16.2359],[1252195200000,16.2359],[1252281600000,16.2359],[1252368000000,16.3203],[1252454400000,16.4849],[1252540800000,16.5295],[1252627200000,16.5498],[1252713600000,16.6188],[1252800000000,16.6188],[1252886400000,16.6188],[1252972800000,16.5802],[1253059200000,16.6523],[1253145600000,16.6922],[1253232000000,16.7508],[1253318400000,16.7452],[1253404800000,16.7452],[1253491200000,16.7452],[1253577600000,16.6757],[1253664000000,16.774],[1253750400000,16.7584],[1253836800000,16.713],[1253923200000,16.6162],[1254009600000,16.6162],[1254096000000,16.6162],[1254182400000,16.6237],[1254268800000,16.4997]], 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: [[1251763200000, 16.216613],[1251763200000, 16.216613],[1251849600000, 16.248324],[1251936000000, 16.156332],[1252022400000, 16.289309],[1252108800000, 16.235895],[1252195200000, 16.235895],[1252281600000, 16.235895],[1252368000000, 16.320278],[1252454400000, 16.484914],[1252540800000, 16.529526],[1252627200000, 16.549751],[1252713600000, 16.618832],[1252800000000, 16.618832],[1252886400000, 16.618832],[1252972800000, 16.580217],[1253059200000, 16.652337],[1253145600000, 16.692199],[1253232000000, 16.750800],[1253318400000, 16.745212],[1253404800000, 16.745212],[1253491200000, 16.745212],[1253577600000, 16.675714],[1253664000000, 16.773991],[1253750400000, 16.758392],[1253836800000, 16.712993],[1253923200000, 16.616177],[1254009600000, 16.616177],[1254096000000, 16.616177],[1254182400000, 16.623672],[1254268800000, 16.499715]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });