$(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: [[1251763200000,7.51708],[1251849600000,7.53816],[1251936000000,7.48643],[1252022400000,7.55894],[1252108800000,7.52291],[1252195200000,7.52291],[1252281600000,7.52291],[1252368000000,7.54683],[1252454400000,7.63511],[1252540800000,7.65197],[1252627200000,7.67464],[1252713600000,7.71051],[1252800000000,7.71051],[1252886400000,7.71051],[1252972800000,7.69463],[1253059200000,7.71332],[1253145600000,7.72767],[1253232000000,7.75608],[1253318400000,7.77338],[1253404800000,7.77338],[1253491200000,7.77338],[1253577600000,7.73045],[1253664000000,7.81177],[1253750400000,7.82679],[1253836800000,7.82195],[1253923200000,7.76953],[1254009600000,7.76953],[1254096000000,7.76953],[1254182400000,7.76409],[1254268800000,7.70547]], 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: [[1251763200000, 7.517076],[1251763200000, 7.517076],[1251849600000, 7.538159],[1251936000000, 7.486431],[1252022400000, 7.558936],[1252108800000, 7.522906],[1252195200000, 7.522906],[1252281600000, 7.522906],[1252368000000, 7.546825],[1252454400000, 7.635107],[1252540800000, 7.651973],[1252627200000, 7.674645],[1252713600000, 7.710514],[1252800000000, 7.710514],[1252886400000, 7.710514],[1252972800000, 7.694632],[1253059200000, 7.713321],[1253145600000, 7.727666],[1253232000000, 7.756083],[1253318400000, 7.773378],[1253404800000, 7.773378],[1253491200000, 7.773378],[1253577600000, 7.730449],[1253664000000, 7.811770],[1253750400000, 7.826789],[1253836800000, 7.821950],[1253923200000, 7.769530],[1254009600000, 7.769530],[1254096000000, 7.769530],[1254182400000, 7.764093],[1254268800000, 7.705467]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });