$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1251763200000,12.4942],[1251849600000,12.4618],[1251936000000,12.4576],[1252022400000,12.4993],[1252108800000,12.495],[1252195200000,12.495],[1252281600000,12.495],[1252368000000,12.495],[1252454400000,12.5914],[1252540800000,12.5852],[1252627200000,12.6077],[1252713600000,12.6679],[1252800000000,12.6679],[1252886400000,12.6679],[1252972800000,12.6388],[1253059200000,12.6602],[1253145600000,12.6986],[1253232000000,12.7108],[1253318400000,12.6861],[1253404800000,12.6861],[1253491200000,12.6861],[1253577600000,12.6404],[1253664000000,12.7097],[1253750400000,12.7112],[1253836800000,12.7034],[1253923200000,12.6764],[1254009600000,12.6764],[1254096000000,12.6764],[1254182400000,12.6614],[1254268800000,12.6362]], 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, 12.494194],[1251763200000, 12.494194],[1251849600000, 12.461760],[1251936000000, 12.457565],[1252022400000, 12.499335],[1252108800000, 12.495018],[1252195200000, 12.495018],[1252281600000, 12.495018],[1252368000000, 12.495018],[1252454400000, 12.591440],[1252540800000, 12.585160],[1252627200000, 12.607714],[1252713600000, 12.667924],[1252800000000, 12.667924],[1252886400000, 12.667924],[1252972800000, 12.638844],[1253059200000, 12.660206],[1253145600000, 12.698649],[1253232000000, 12.710849],[1253318400000, 12.686076],[1253404800000, 12.686076],[1253491200000, 12.686076],[1253577600000, 12.640386],[1253664000000, 12.709711],[1253750400000, 12.711163],[1253836800000, 12.703379],[1253923200000, 12.676409],[1254009600000, 12.676409],[1254096000000, 12.676409],[1254182400000, 12.661429],[1254268800000, 12.636242]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });