$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1246406400000,0.050791],[1246492800000,0.050791],[1246579200000,0.050811],[1246665600000,0.050806],[1246752000000,0.050806],[1246838400000,0.050806],[1246924800000,0.050806],[1247011200000,0.050715],[1247097600000,0.050621],[1247184000000,0.050637],[1247270400000,0.05063],[1247356800000,0.05063],[1247443200000,0.05063],[1247529600000,0.050681],[1247616000000,0.050623],[1247702400000,0.050631],[1247788800000,0.050683],[1247875200000,0.050763],[1247961600000,0.050763],[1248048000000,0.050763],[1248134400000,0.050817],[1248220800000,0.050778],[1248307200000,0.050834],[1248393600000,0.050839],[1248480000000,0.050863],[1248566400000,0.050863],[1248652800000,0.050863],[1248739200000,0.051015],[1248825600000,0.051009],[1248912000000,0.051102],[1248998400000,0.051078]], 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: [[1246406400000, 0.050791],[1246406400000, 0.050791],[1246492800000, 0.050791],[1246579200000, 0.050811],[1246665600000, 0.050806],[1246752000000, 0.050806],[1246838400000, 0.050806],[1246924800000, 0.050806],[1247011200000, 0.050715],[1247097600000, 0.050621],[1247184000000, 0.050637],[1247270400000, 0.050630],[1247356800000, 0.050630],[1247443200000, 0.050630],[1247529600000, 0.050681],[1247616000000, 0.050623],[1247702400000, 0.050631],[1247788800000, 0.050683],[1247875200000, 0.050763],[1247961600000, 0.050763],[1248048000000, 0.050763],[1248134400000, 0.050817],[1248220800000, 0.050778],[1248307200000, 0.050834],[1248393600000, 0.050839],[1248480000000, 0.050863],[1248566400000, 0.050863],[1248652800000, 0.050863],[1248739200000, 0.051015],[1248825600000, 0.051009],[1248912000000, 0.051102],[1248998400000, 0.051078]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });