Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function () {
- Highcharts.setOptions({
- lang: {
- loading: 'Ładowanie...',
- months: ['Styczeń', 'Luty', 'Marzec', 'Kwiecień', 'Maj', 'Czerwiec', 'Lipiec', 'Sierpień', 'Wrzesień', 'Październik', 'Listopad', 'Grudzień'],
- weekdays: ['Poniedziałek', 'Wtorek', 'Środa', 'Czwartek', 'Piątek', 'Sobota', 'Niedziela'],
- shortMonths: ['Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru'],
- exportButtonTitle: "Eksportuj",
- printButtonTitle: "Drukuj",
- rangeSelectorFrom: "Od",
- rangeSelectorTo: "Do",
- rangeSelectorZoom: "",
- downloadPNG: 'Pobierz jako obraz PNG',
- downloadJPEG: 'Pobierz jako obraz JPEG',
- downloadPDF: 'Pobierz jako obraz PDF',
- downloadSVG: 'Pobierz jako obraz SVG'
- // resetZoom: "Reset",
- // resetZoomTitle: "Reset,
- // thousandsSep: ".",
- // decimalPoint: ','
- }
- });
- var seriesOptionsdmax = [];
- //dmaxModified
- $.getJSON('/test/statistics/5/list?parameter=dmaxModified&type=wats', function (dmax) {
- seriesOptionsdmax = [];
- seriesOptionsdmax[0] = {
- name: 'dMax Modified',
- color: '#0fbc09',
- data: dmax
- };
- });
- $.getJSON('/test/statistics/5/list?parameter=dmaxModified&type=perKg', function (dmax) {
- seriesOptionsdmax[1] = {
- name: 'W/kg',
- color: '#085fbc',
- data: dmax
- };
- Highcharts.stockChart('dmaxmodified', {
- exporting: {
- enabled: false
- },
- rangeSelector: {
- enabled: false
- },
- navigator: {
- enabled: false
- },
- title: {
- text: 'dMax Modified'
- },
- yAxis: {
- labels: {
- enabled: false
- },
- plotLines: [{
- value: 0,
- width: 2,
- color: 'silver'
- }]
- },
- plotOptions: {
- series: {
- compare: 'percent',
- showInNavigator: true
- }
- },
- tooltip: {
- pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b>({point.change}%)<br/>',
- valueDecimals: 2,
- split: true
- },
- series: seriesOptionsdmax
- });
- });
- //fbla2
- var seriesOptionsfbla2 = [];
- $.getJSON('/test/statistics/5/list?parameter=fbla2&type=wats', function (fbla2) {
- seriesOptionsfbla2[0] = {
- name: 'FBLA2',
- color: '#ffae00',
- data: fbla2
- };
- });
- $.getJSON('/test/statistics/5/list?parameter=fbla2&type=perKg', function (fbla2) {
- seriesOptionsfbla2[1] = {
- name: 'W/kg',
- color: '#085fbc',
- data: fbla2
- };
- Highcharts.stockChart('fbla2', {
- exporting: {
- enabled: false
- },
- rangeSelector: {
- enabled: false
- },
- navigator: {
- enabled: false
- },
- title: {
- text: 'Fixed Blood Lactate Accumulation 2 mmol'
- },
- yAxis: {
- labels: {
- enabled: false
- },
- plotLines: [{
- value: 0,
- width: 2,
- color: 'silver'
- }]
- },
- plotOptions: {
- series: {
- compare: 'percent',
- showInNavigator: true
- }
- },
- tooltip: {
- pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b>({point.change}%)<br/>',
- valueDecimals: 2,
- split: true
- },
- series: seriesOptionsfbla2
- });
- });
- //fbla4
- var seriesOptionsfbla4 = [];
- $.getJSON('/test/statistics/5/list?parameter=fbla4&type=wats', function (fbla4) {
- seriesOptionsfbla4[0] = {
- name: 'FBLA4',
- color: '#02ccff',
- data: fbla4
- };
- });
- $.getJSON('/test/statistics/5/list?parameter=fbla4&type=perKg', function (fbla4) {
- seriesOptionsfbla4[1] = {
- name: 'W/kg',
- color: '#085fbc',
- data: fbla4
- };
- Highcharts.stockChart('fbla4', {
- exporting: {
- enabled: false
- },
- rangeSelector: {
- enabled: false
- },
- navigator: {
- enabled: false
- },
- title: {
- text: 'Fixed Blood Lactate Accumulation 4 mmol'
- },
- yAxis: {
- labels: {
- enabled: false
- },
- plotLines: [{
- value: 0,
- width: 2,
- color: 'silver'
- }]
- },
- plotOptions: {
- series: {
- compare: 'percent',
- showInNavigator: true
- }
- },
- tooltip: {
- pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b>({point.change}%)<br/>',
- valueDecimals: 2,
- split: true
- },
- series: seriesOptionsfbla4
- });
- });
- //maxLoad
- var seriesOptionsmaxload = [];
- $.getJSON('/test/statistics/5/list?parameter=maxLoad&type=wats', function (max) {
- seriesOptionsmaxload[0] = {
- name: 'Maksymalne obciążenie',
- color: '#ff0000',
- data: max
- };
- });
- $.getJSON('/test/statistics/5/list?parameter=maxLoad&type=perKg', function (max) {
- seriesOptionsmaxload[1] = {
- name: 'W/kg',
- color: '#085fbc',
- data: max
- };
- Highcharts.stockChart('maxLoad', {
- exporting: {
- enabled: false
- },
- rangeSelector: {
- enabled: false
- },
- navigator: {
- enabled: false
- },
- title: {
- text: 'Maksymalne obciążenie testu'
- },
- yAxis: {
- labels: {
- enabled: false
- },
- plotLines: [{
- value: 0,
- width: 2,
- color: 'silver'
- }]
- },
- plotOptions: {
- series: {
- compare: 'percent',
- showInNavigator: true
- }
- },
- tooltip: {
- pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b>({point.change}%)<br/>',
- valueDecimals: 2,
- split: true
- },
- series: seriesOptionsmaxload
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement