$(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: [[1349049600000,0.25853],[1349136000000,0.25574],[1349222400000,0.25672],[1349308800000,0.25623],[1349395200000,0.25684],[1349481600000,0.25805],[1349568000000,0.25805],[1349654400000,0.25805],[1349740800000,0.25719],[1349827200000,0.25701],[1349913600000,0.25617],[1350000000000,0.25646],[1350086400000,0.25806],[1350172800000,0.25806],[1350259200000,0.25806],[1350345600000,0.25718],[1350432000000,0.25826],[1350518400000,0.25954],[1350604800000,0.26019],[1350691200000,0.25966],[1350777600000,0.25966],[1350864000000,0.25966],[1350950400000,0.2586],[1351036800000,0.25687],[1351123200000,0.25534],[1351209600000,0.25578],[1351296000000,0.25392],[1351382400000,0.25392],[1351468800000,0.25392],[1351555200000,0.25425],[1351641600000,0.25354]], 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: [[1349049600000, 0.258530],[1349049600000, 0.258530],[1349136000000, 0.255740],[1349222400000, 0.256720],[1349308800000, 0.256230],[1349395200000, 0.256840],[1349481600000, 0.258050],[1349568000000, 0.258050],[1349654400000, 0.258050],[1349740800000, 0.257190],[1349827200000, 0.257010],[1349913600000, 0.256170],[1350000000000, 0.256460],[1350086400000, 0.258060],[1350172800000, 0.258060],[1350259200000, 0.258060],[1350345600000, 0.257180],[1350432000000, 0.258260],[1350518400000, 0.259540],[1350604800000, 0.260190],[1350691200000, 0.259660],[1350777600000, 0.259660],[1350864000000, 0.259660],[1350950400000, 0.258600],[1351036800000, 0.256870],[1351123200000, 0.255340],[1351209600000, 0.255780],[1351296000000, 0.253920],[1351382400000, 0.253920],[1351468800000, 0.253920],[1351555200000, 0.254250],[1351641600000, 0.253540]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });