$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1296518400000,3.14918],[1296604800000,3.16367],[1296691200000,3.17479],[1296777600000,3.16225],[1296864000000,3.13681],[1296950400000,3.13681],[1297036800000,3.13681],[1297123200000,3.11859],[1297209600000,3.13746],[1297296000000,3.13943],[1297382400000,3.12997],[1297468800000,3.11133],[1297555200000,3.11133],[1297641600000,3.11133],[1297728000000,3.092],[1297814400000,3.10811],[1297900800000,3.1074],[1297987200000,3.1189],[1298073600000,3.13431],[1298160000000,3.13431],[1298246400000,3.13431],[1298332800000,3.14311],[1298419200000,3.14197],[1298505600000,3.15465],[1298592000000,3.16391],[1298678400000,3.16098],[1298764800000,3.16098],[1298851200000,3.16098]], 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: [[1296518400000, 3.149184],[1296518400000, 3.149184],[1296604800000, 3.163674],[1296691200000, 3.174794],[1296777600000, 3.162250],[1296864000000, 3.136812],[1296950400000, 3.136812],[1297036800000, 3.136812],[1297123200000, 3.118587],[1297209600000, 3.137456],[1297296000000, 3.139427],[1297382400000, 3.129968],[1297468800000, 3.111327],[1297555200000, 3.111327],[1297641600000, 3.111327],[1297728000000, 3.092002],[1297814400000, 3.108106],[1297900800000, 3.107402],[1297987200000, 3.118902],[1298073600000, 3.134313],[1298160000000, 3.134313],[1298246400000, 3.134313],[1298332800000, 3.143110],[1298419200000, 3.141969],[1298505600000, 3.154654],[1298592000000, 3.163905],[1298678400000, 3.160979],[1298764800000, 3.160979],[1298851200000, 3.160979]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });