$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1270080000000,5.66329],[1270166400000,5.66949],[1270252800000,5.66949],[1270339200000,5.66949],[1270425600000,5.66949],[1270512000000,5.66949],[1270598400000,5.67081],[1270684800000,5.67747],[1270771200000,5.67793],[1270857600000,5.6954],[1270944000000,5.6954],[1271030400000,5.6954],[1271116800000,5.69804],[1271203200000,5.69163],[1271289600000,5.76047],[1271376000000,5.76762],[1271462400000,5.77745],[1271548800000,5.77745],[1271635200000,5.77745],[1271721600000,5.73788],[1271808000000,5.76166],[1271894400000,5.77123],[1271980800000,5.7737],[1272067200000,5.77767],[1272153600000,5.77767],[1272240000000,5.77767],[1272326400000,5.79493],[1272412800000,5.78606],[1272499200000,5.76869],[1272585600000,5.79034]], 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: [[1270080000000, 5.663295],[1270080000000, 5.663295],[1270166400000, 5.669494],[1270252800000, 5.669494],[1270339200000, 5.669494],[1270425600000, 5.669494],[1270512000000, 5.669494],[1270598400000, 5.670814],[1270684800000, 5.677471],[1270771200000, 5.677931],[1270857600000, 5.695403],[1270944000000, 5.695403],[1271030400000, 5.695403],[1271116800000, 5.698037],[1271203200000, 5.691633],[1271289600000, 5.760466],[1271376000000, 5.767625],[1271462400000, 5.777451],[1271548800000, 5.777451],[1271635200000, 5.777451],[1271721600000, 5.737883],[1271808000000, 5.761665],[1271894400000, 5.771229],[1271980800000, 5.773701],[1272067200000, 5.777674],[1272153600000, 5.777674],[1272240000000, 5.777674],[1272326400000, 5.794927],[1272412800000, 5.786059],[1272499200000, 5.768686],[1272585600000, 5.790341]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });