$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1359676800000,4.53615],[1359763200000,4.55617],[1359849600000,4.55617],[1359936000000,4.55617],[1360022400000,4.55322],[1360108800000,4.53921],[1360195200000,4.52852],[1360281600000,4.52269],[1360368000000,4.50915],[1360454400000,4.50915],[1360540800000,4.50915],[1360627200000,4.50784],[1360713600000,4.50186],[1360800000000,4.52941],[1360886400000,4.51272],[1360972800000,4.51836],[1361059200000,4.51836],[1361145600000,4.51836],[1361232000000,4.52463],[1361318400000,4.49825],[1361404800000,4.49169],[1361491200000,4.45535],[1361577600000,4.45855],[1361664000000,4.45855],[1361750400000,4.45855],[1361836800000,4.45324],[1361923200000,4.42207],[1362009600000,4.42827]], 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: [[1359676800000, 4.536151],[1359676800000, 4.536151],[1359763200000, 4.556170],[1359849600000, 4.556170],[1359936000000, 4.556170],[1360022400000, 4.553221],[1360108800000, 4.539214],[1360195200000, 4.528518],[1360281600000, 4.522689],[1360368000000, 4.509148],[1360454400000, 4.509148],[1360540800000, 4.509148],[1360627200000, 4.507845],[1360713600000, 4.501862],[1360800000000, 4.529411],[1360886400000, 4.512718],[1360972800000, 4.518358],[1361059200000, 4.518358],[1361145600000, 4.518358],[1361232000000, 4.524634],[1361318400000, 4.498253],[1361404800000, 4.491695],[1361491200000, 4.455347],[1361577600000, 4.458551],[1361664000000, 4.458551],[1361750400000, 4.458551],[1361836800000, 4.453238],[1361923200000, 4.422070],[1362009600000, 4.428271]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });