$(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: [[1364774400000,8.39281],[1364860800000,8.39281],[1364947200000,8.44067],[1365033600000,8.42724],[1365120000000,8.42898],[1365206400000,8.50974],[1365292800000,8.50974],[1365379200000,8.50974],[1365465600000,8.55464],[1365552000000,8.54334],[1365638400000,8.58544],[1365724800000,8.60426],[1365811200000,8.57439],[1365897600000,8.57439],[1365984000000,8.57439],[1366070400000,8.60759],[1366156800000,8.62781],[1366243200000,8.63776],[1366329600000,8.57191],[1366416000000,8.60941],[1366502400000,8.60941],[1366588800000,8.60941],[1366675200000,8.54978],[1366761600000,8.49735],[1366848000000,8.45041],[1366934400000,8.47644],[1367020800000,8.46582],[1367107200000,8.46582],[1367193600000,8.46582],[1367280000000,8.53589]], 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: [[1364774400000, 8.392814],[1364774400000, 8.392814],[1364860800000, 8.392814],[1364947200000, 8.440671],[1365033600000, 8.427238],[1365120000000, 8.428982],[1365206400000, 8.509738],[1365292800000, 8.509738],[1365379200000, 8.509738],[1365465600000, 8.554638],[1365552000000, 8.543338],[1365638400000, 8.585439],[1365724800000, 8.604264],[1365811200000, 8.574393],[1365897600000, 8.574393],[1365984000000, 8.574393],[1366070400000, 8.607593],[1366156800000, 8.627814],[1366243200000, 8.637756],[1366329600000, 8.571908],[1366416000000, 8.609412],[1366502400000, 8.609412],[1366588800000, 8.609412],[1366675200000, 8.549782],[1366761600000, 8.497346],[1366848000000, 8.450411],[1366934400000, 8.476442],[1367020800000, 8.465820],[1367107200000, 8.465820],[1367193600000, 8.465820],[1367280000000, 8.535891]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });