$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1151712000000,0.0440485],[1151798400000,0.0440485],[1151884800000,0.0440485],[1151971200000,0.0440403],[1152057600000,0.0440708],[1152144000000,0.0440301],[1152230400000,0.0437227],[1152316800000,0.04402],[1152403200000,0.04402],[1152489600000,0.04402],[1152576000000,0.0443601],[1152662400000,0.0441463],[1152748800000,0.043836],[1152835200000,0.0438014],[1152921600000,0.0435628],[1153008000000,0.0435628],[1153094400000,0.0435628],[1153180800000,0.0431829],[1153267200000,0.0431632],[1153353600000,0.0429066],[1153440000000,0.0432334],[1153526400000,0.0435724],[1153612800000,0.0435724],[1153699200000,0.0435724],[1153785600000,0.0433048],[1153872000000,0.0432564],[1153958400000,0.0432117],[1154044800000,0.0436821],[1154131200000,0.0436332],[1154217600000,0.0436332],[1154304000000,0.0436332]], 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: [[1151712000000, 0.044048],[1151712000000, 0.044048],[1151798400000, 0.044048],[1151884800000, 0.044048],[1151971200000, 0.044040],[1152057600000, 0.044071],[1152144000000, 0.044030],[1152230400000, 0.043723],[1152316800000, 0.044020],[1152403200000, 0.044020],[1152489600000, 0.044020],[1152576000000, 0.044360],[1152662400000, 0.044146],[1152748800000, 0.043836],[1152835200000, 0.043801],[1152921600000, 0.043563],[1153008000000, 0.043563],[1153094400000, 0.043563],[1153180800000, 0.043183],[1153267200000, 0.043163],[1153353600000, 0.042907],[1153440000000, 0.043233],[1153526400000, 0.043572],[1153612800000, 0.043572],[1153699200000, 0.043572],[1153785600000, 0.043305],[1153872000000, 0.043256],[1153958400000, 0.043212],[1154044800000, 0.043682],[1154131200000, 0.043633],[1154217600000, 0.043633],[1154304000000, 0.043633]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });