$(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: 'Курс ISK, грн'}, 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: 'Курс ISK', data: [[1259625600000,0.04138],[1259712000000,0.041527],[1259798400000,0.041578],[1259884800000,0.041658],[1259971200000,0.041484],[1260057600000,0.041484],[1260144000000,0.041484],[1260230400000,0.04071],[1260316800000,0.040677],[1260403200000,0.040671],[1260489600000,0.040566],[1260576000000,0.040621],[1260662400000,0.040621],[1260748800000,0.040621],[1260835200000,0.040308],[1260921600000,0.039979],[1261008000000,0.040016],[1261094400000,0.039419],[1261180800000,0.039402],[1261267200000,0.039402],[1261353600000,0.039402],[1261440000000,0.039487],[1261526400000,0.039238],[1261612800000,0.039225],[1261699200000,0.03955],[1261785600000,0.039547],[1261872000000,0.039547],[1261958400000,0.039547],[1262044800000,0.039564],[1262131200000,0.039658],[1262217600000,0.039479]], 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: [[1259625600000, 0.041380],[1259625600000, 0.041380],[1259712000000, 0.041527],[1259798400000, 0.041578],[1259884800000, 0.041658],[1259971200000, 0.041484],[1260057600000, 0.041484],[1260144000000, 0.041484],[1260230400000, 0.040710],[1260316800000, 0.040677],[1260403200000, 0.040671],[1260489600000, 0.040566],[1260576000000, 0.040621],[1260662400000, 0.040621],[1260748800000, 0.040621],[1260835200000, 0.040308],[1260921600000, 0.039979],[1261008000000, 0.040016],[1261094400000, 0.039419],[1261180800000, 0.039402],[1261267200000, 0.039402],[1261353600000, 0.039402],[1261440000000, 0.039487],[1261526400000, 0.039238],[1261612800000, 0.039225],[1261699200000, 0.039550],[1261785600000, 0.039547],[1261872000000, 0.039547],[1261958400000, 0.039547],[1262044800000, 0.039564],[1262131200000, 0.039658],[1262217600000, 0.039479]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });