$(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: [[1430438400000,0.41324],[1430524800000,0.41324],[1430611200000,0.41324],[1430697600000,0.41324],[1430784000000,0.41324],[1430870400000,0.40831],[1430956800000,0.42066],[1431043200000,0.41147],[1431129600000,0.4057],[1431216000000,0.4057],[1431302400000,0.4057],[1431388800000,0.4057],[1431475200000,0.40534],[1431561600000,0.41526],[1431648000000,0.41075],[1431734400000,0.41387],[1431820800000,0.41387],[1431907200000,0.41387],[1431993600000,0.44941],[1432080000000,0.43216],[1432166400000,0.41799],[1432252800000,0.41424],[1432339200000,0.41849],[1432425600000,0.41849],[1432512000000,0.41849],[1432598400000,0.42385],[1432684800000,0.42573],[1432771200000,null],[1432857600000,0.40252],[1432944000000,0.39804],[1433030400000,0.39804]], 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: [[1430438400000, 0.413240],[1430438400000, 0.413240],[1430524800000, 0.413240],[1430611200000, 0.413240],[1430697600000, 0.413240],[1430784000000, 0.413240],[1430870400000, 0.408310],[1430956800000, 0.420660],[1431043200000, 0.411470],[1431129600000, 0.405700],[1431216000000, 0.405700],[1431302400000, 0.405700],[1431388800000, 0.405700],[1431475200000, 0.405340],[1431561600000, 0.415260],[1431648000000, 0.410750],[1431734400000, 0.413870],[1431820800000, 0.413870],[1431907200000, 0.413870],[1431993600000, 0.449410],[1432080000000, 0.432160],[1432166400000, 0.417990],[1432252800000, 0.414240],[1432339200000, 0.418490],[1432425600000, 0.418490],[1432512000000, 0.418490],[1432598400000, 0.423850],[1432684800000, 0.425730],[1432857600000, 0.402520],[1432944000000, 0.398040],[1433030400000, 0.398040]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });