$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1296518400000,0.054072],[1296604800000,0.054039],[1296691200000,0.054077],[1296777600000,0.054131],[1296864000000,0.054115],[1296950400000,0.054115],[1297036800000,0.054115],[1297123200000,0.054147],[1297209600000,0.054177],[1297296000000,0.05423],[1297382400000,0.054259],[1297468800000,0.054248],[1297555200000,0.054248],[1297641600000,0.054248],[1297728000000,0.054229],[1297814400000,0.054277],[1297900800000,0.054261],[1297987200000,0.054284],[1298073600000,0.054325],[1298160000000,0.054325],[1298246400000,0.054325],[1298332800000,0.054325],[1298419200000,0.05432],[1298505600000,0.054304],[1298592000000,0.054319],[1298678400000,0.05432],[1298764800000,0.05432],[1298851200000,0.05432]], 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: [[1296518400000, 0.054072],[1296518400000, 0.054072],[1296604800000, 0.054039],[1296691200000, 0.054077],[1296777600000, 0.054131],[1296864000000, 0.054115],[1296950400000, 0.054115],[1297036800000, 0.054115],[1297123200000, 0.054147],[1297209600000, 0.054177],[1297296000000, 0.054230],[1297382400000, 0.054259],[1297468800000, 0.054248],[1297555200000, 0.054248],[1297641600000, 0.054248],[1297728000000, 0.054229],[1297814400000, 0.054277],[1297900800000, 0.054261],[1297987200000, 0.054284],[1298073600000, 0.054325],[1298160000000, 0.054325],[1298246400000, 0.054325],[1298332800000, 0.054325],[1298419200000, 0.054320],[1298505600000, 0.054304],[1298592000000, 0.054319],[1298678400000, 0.054320],[1298764800000, 0.054320],[1298851200000, 0.054320]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });