$(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: [[1267401600000,7.40704],[1267488000000,7.37946],[1267574400000,7.39546],[1267660800000,7.44478],[1267747200000,7.45818],[1267833600000,7.41088],[1267920000000,7.41088],[1268006400000,7.41088],[1268092800000,7.41088],[1268179200000,7.40046],[1268265600000,7.43196],[1268352000000,7.45372],[1268438400000,7.52327],[1268524800000,7.52327],[1268611200000,7.52327],[1268697600000,7.52534],[1268784000000,7.54094],[1268870400000,7.56101],[1268956800000,7.52744],[1269043200000,7.50277],[1269129600000,7.50277],[1269216000000,7.50277],[1269302400000,7.4682],[1269388800000,7.50488],[1269475200000,7.41052],[1269561600000,7.41782],[1269648000000,7.4121],[1269734400000,7.4121],[1269820800000,7.4121],[1269907200000,7.45046],[1269993600000,7.46332]], 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: [[1267401600000, 7.407043],[1267401600000, 7.407043],[1267488000000, 7.379456],[1267574400000, 7.395459],[1267660800000, 7.444784],[1267747200000, 7.458177],[1267833600000, 7.410878],[1267920000000, 7.410878],[1268006400000, 7.410878],[1268092800000, 7.410878],[1268179200000, 7.400457],[1268265600000, 7.431965],[1268352000000, 7.453722],[1268438400000, 7.523270],[1268524800000, 7.523270],[1268611200000, 7.523270],[1268697600000, 7.525344],[1268784000000, 7.540938],[1268870400000, 7.561013],[1268956800000, 7.527440],[1269043200000, 7.502768],[1269129600000, 7.502768],[1269216000000, 7.502768],[1269302400000, 7.468199],[1269388800000, 7.504881],[1269475200000, 7.410519],[1269561600000, 7.417818],[1269648000000, 7.412102],[1269734400000, 7.412102],[1269820800000, 7.412102],[1269907200000, 7.450462],[1269993600000, 7.463317]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });