$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1270080000000,7.48256],[1270166400000,7.5276],[1270252800000,7.5276],[1270339200000,7.5276],[1270425600000,7.5276],[1270512000000,7.5276],[1270598400000,7.41105],[1270684800000,7.38139],[1270771200000,7.35745],[1270857600000,7.38571],[1270944000000,7.38571],[1271030400000,7.38571],[1271116800000,7.48152],[1271203200000,7.4922],[1271289600000,7.5109],[1271376000000,7.48428],[1271462400000,7.48191],[1271548800000,7.48191],[1271635200000,7.48191],[1271721600000,7.42145],[1271808000000,7.45672],[1271894400000,7.39719],[1271980800000,7.38026],[1272067200000,7.34938],[1272153600000,7.34938],[1272240000000,7.34938],[1272326400000,7.36236],[1272412800000,7.3389],[1272499200000,7.32017],[1272585600000,7.32267]], 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, 7.482563],[1270080000000, 7.482563],[1270166400000, 7.527604],[1270252800000, 7.527604],[1270339200000, 7.527604],[1270425600000, 7.527604],[1270512000000, 7.527604],[1270598400000, 7.411051],[1270684800000, 7.381386],[1270771200000, 7.357448],[1270857600000, 7.385706],[1270944000000, 7.385706],[1271030400000, 7.385706],[1271116800000, 7.481519],[1271203200000, 7.492201],[1271289600000, 7.510897],[1271376000000, 7.484280],[1271462400000, 7.481915],[1271548800000, 7.481915],[1271635200000, 7.481915],[1271721600000, 7.421449],[1271808000000, 7.456721],[1271894400000, 7.397194],[1271980800000, 7.380262],[1272067200000, 7.349378],[1272153600000, 7.349378],[1272240000000, 7.349378],[1272326400000, 7.362358],[1272412800000, 7.338899],[1272499200000, 7.320169],[1272585600000, 7.322674]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });