$(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: [[1330560000000,8.90924],[1330646400000,8.82169],[1330732800000,8.75289],[1330819200000,8.75289],[1330905600000,8.75289],[1330992000000,8.75561],[1331078400000,8.71557],[1331164800000,8.69532],[1331251200000,8.69532],[1331337600000,8.69532],[1331424000000,8.69532],[1331510400000,8.69532],[1331596800000,8.69014],[1331683200000,8.64512],[1331769600000,8.61164],[1331856000000,8.61831],[1331942400000,8.67699],[1332028800000,8.67699],[1332115200000,8.67699],[1332201600000,8.70164],[1332288000000,8.7392],[1332374400000,8.75781],[1332460800000,8.72233],[1332547200000,8.77274],[1332633600000,8.77274],[1332720000000,8.77274],[1332806400000,8.7956],[1332892800000,8.83156],[1332979200000,8.82909],[1333065600000,8.79591],[1333152000000,8.85732]], 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: [[1330560000000, 8.909236],[1330560000000, 8.909236],[1330646400000, 8.821685],[1330732800000, 8.752893],[1330819200000, 8.752893],[1330905600000, 8.752893],[1330992000000, 8.755606],[1331078400000, 8.715567],[1331164800000, 8.695320],[1331251200000, 8.695320],[1331337600000, 8.695320],[1331424000000, 8.695320],[1331510400000, 8.695320],[1331596800000, 8.690141],[1331683200000, 8.645120],[1331769600000, 8.611644],[1331856000000, 8.618311],[1331942400000, 8.676989],[1332028800000, 8.676989],[1332115200000, 8.676989],[1332201600000, 8.701645],[1332288000000, 8.739201],[1332374400000, 8.757806],[1332460800000, 8.722332],[1332547200000, 8.772743],[1332633600000, 8.772743],[1332720000000, 8.772743],[1332806400000, 8.795598],[1332892800000, 8.831564],[1332979200000, 8.829087],[1333065600000, 8.795908],[1333152000000, 8.857318]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });