$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1272672000000,0.27187],[1272758400000,0.27187],[1272844800000,0.27187],[1272931200000,0.27187],[1273017600000,0.27187],[1273104000000,0.26703],[1273190400000,0.26161],[1273276800000,0.25801],[1273363200000,0.25801],[1273449600000,0.25801],[1273536000000,0.25801],[1273622400000,0.26106],[1273708800000,0.26241],[1273795200000,0.26544],[1273881600000,0.26369],[1273968000000,null],[1274054400000,0.26369],[1274140800000,0.25818],[1274227200000,0.26077],[1274313600000,0.25821],[1274400000000,0.25773],[1274486400000,0.25519],[1274572800000,0.25519],[1274659200000,0.25519],[1274745600000,0.25519],[1274832000000,0.25217],[1274918400000,0.25277],[1275004800000,0.25665],[1275091200000,0.25988],[1275177600000,0.25988],[1275264000000,0.25988]], 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: [[1272672000000, 0.271870],[1272672000000, 0.271870],[1272758400000, 0.271870],[1272844800000, 0.271870],[1272931200000, 0.271870],[1273017600000, 0.271870],[1273104000000, 0.267030],[1273190400000, 0.261610],[1273276800000, 0.258010],[1273363200000, 0.258010],[1273449600000, 0.258010],[1273536000000, 0.258010],[1273622400000, 0.261060],[1273708800000, 0.262410],[1273795200000, 0.265440],[1273881600000, 0.263690],[1274054400000, 0.263690],[1274140800000, 0.258180],[1274227200000, 0.260770],[1274313600000, 0.258210],[1274400000000, 0.257730],[1274486400000, 0.255190],[1274572800000, 0.255190],[1274659200000, 0.255190],[1274745600000, 0.255190],[1274832000000, 0.252170],[1274918400000, 0.252770],[1275004800000, 0.256650],[1275091200000, 0.259880],[1275177600000, 0.259880],[1275264000000, 0.259880]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });