$(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: [[1330560000000,4.57847],[1330646400000,4.55464],[1330732800000,4.5357],[1330819200000,4.5357],[1330905600000,4.5357],[1330992000000,4.52157],[1331078400000,4.47376],[1331164800000,4.4672],[1331251200000,4.4672],[1331337600000,4.4672],[1331424000000,4.4672],[1331510400000,4.4672],[1331596800000,4.44216],[1331683200000,4.44606],[1331769600000,4.4455],[1331856000000,4.42569],[1331942400000,4.44096],[1332028800000,4.44096],[1332115200000,4.44096],[1332201600000,4.41169],[1332288000000,4.39109],[1332374400000,4.40208],[1332460800000,4.40133],[1332547200000,4.43159],[1332633600000,4.43159],[1332720000000,4.43159],[1332806400000,4.4609],[1332892800000,4.47198],[1332979200000,4.48198],[1333065600000,4.4769],[1333152000000,4.48752]], 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: [[1330560000000, 4.578474],[1330560000000, 4.578474],[1330646400000, 4.554640],[1330732800000, 4.535696],[1330819200000, 4.535696],[1330905600000, 4.535696],[1330992000000, 4.521574],[1331078400000, 4.473756],[1331164800000, 4.467198],[1331251200000, 4.467198],[1331337600000, 4.467198],[1331424000000, 4.467198],[1331510400000, 4.467198],[1331596800000, 4.442160],[1331683200000, 4.446062],[1331769600000, 4.445501],[1331856000000, 4.425688],[1331942400000, 4.440964],[1332028800000, 4.440964],[1332115200000, 4.440964],[1332201600000, 4.411695],[1332288000000, 4.391085],[1332374400000, 4.402085],[1332460800000, 4.401327],[1332547200000, 4.431592],[1332633600000, 4.431592],[1332720000000, 4.431592],[1332806400000, 4.460897],[1332892800000, 4.471979],[1332979200000, 4.481980],[1333065600000, 4.476897],[1333152000000, 4.487524]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });