$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[970358400000,0.19603],[970444800000,0.19603],[970531200000,0.19597],[970617600000,0.19597],[970704000000,0.19561],[970790400000,0.19526],[970876800000,0.19512],[970963200000,0.19512],[971049600000,0.19512],[971136000000,0.19512],[971222400000,0.1947],[971308800000,0.19526],[971395200000,0.19491],[971481600000,0.19495],[971568000000,0.19495],[971654400000,0.19495],[971740800000,0.19544],[971827200000,0.19563],[971913600000,0.19513],[972000000000,0.1947],[972086400000,0.19469],[972172800000,0.19469],[972259200000,0.19469],[972345600000,0.19468],[972432000000,0.19482],[972518400000,0.19482],[972604800000,0.19474],[972691200000,0.19495],[972777600000,0.19495],[972864000000,0.19495],[972950400000,0.19536]], 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: [[970358400000, 0.196030],[970358400000, 0.196030],[970444800000, 0.196030],[970531200000, 0.195970],[970617600000, 0.195970],[970704000000, 0.195610],[970790400000, 0.195260],[970876800000, 0.195120],[970963200000, 0.195120],[971049600000, 0.195120],[971136000000, 0.195120],[971222400000, 0.194700],[971308800000, 0.195260],[971395200000, 0.194910],[971481600000, 0.194950],[971568000000, 0.194950],[971654400000, 0.194950],[971740800000, 0.195440],[971827200000, 0.195630],[971913600000, 0.195130],[972000000000, 0.194700],[972086400000, 0.194690],[972172800000, 0.194690],[972259200000, 0.194690],[972345600000, 0.194680],[972432000000, 0.194820],[972518400000, 0.194820],[972604800000, 0.194740],[972691200000, 0.194950],[972777600000, 0.194950],[972864000000, 0.194950],[972950400000, 0.195360]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });