Skip to content

Commit

Permalink
fix up
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Yuan <yy19902439@126.com>
  • Loading branch information
SamYuan1990 committed Mar 19, 2022
1 parent 048fc70 commit 2ffbe87
Show file tree
Hide file tree
Showing 4 changed files with 384 additions and 0 deletions.
97 changes: 97 additions & 0 deletions public/javascripts/indexAbsoluteMaxBytes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
const xmlhttp = new XMLHttpRequest();
xmlhttp.open(
'GET',
'../api/get?data=BatchTimeout&orderby=AbsoluteMaxBytes',
false
);
xmlhttp.send();
const BatchTimeout = xmlhttp.responseText.split(',');

xmlhttp.open('GET', '../api/get?data=TPS&orderby=AbsoluteMaxBytes', false);
xmlhttp.send();
const TPS = xmlhttp.responseText.split(',');

xmlhttp.open(
'GET',
'../api/get?data=MaxMessageCount&orderby=AbsoluteMaxBytes',
false
);
xmlhttp.send();
const MaxMessageCount = xmlhttp.responseText.split(',');

xmlhttp.open(
'GET',
'../api/get?data=AbsoluteMaxBytes&orderby=AbsoluteMaxBytes',
false
);
xmlhttp.send();
const AbsoluteMaxBytes = xmlhttp.responseText.split(',');

xmlhttp.open(
'GET',
'../api/get?data=PreferredMaxBytes&orderby=AbsoluteMaxBytes',
false
);
xmlhttp.send();
const PreferredMaxBytes = xmlhttp.responseText.split(',');

const Turn1 = {
opacity: 0.5,
color: 'rgb(255,0,0)',
type: 'scatter3d',
x: AbsoluteMaxBytes,
y: MaxMessageCount,
z: TPS,
scene: 'scene1',
};

const Turn2 = {
opacity: 0.5,
color: 'rgb(0,255,0)',
type: 'scatter3d', // 'mesh3d',
x: AbsoluteMaxBytes,
y: BatchTimeout,
z: TPS,
scene: 'scene2',
};

const Turn3 = {
opacity: 0.5,
color: 'rgb(0,0,255)',
type: 'scatter3d',
x: AbsoluteMaxBytes,
y: PreferredMaxBytes,
z: TPS,
scene: 'scene3',
};

const layout = {
scene1: {
domain: {
x: [0.0, 0.33],
y: [0.5, 1.0],
},
},
scene2: {
domain: {
x: [0.33, 0.66],
y: [0.5, 1.0],
},
},
scene3: {
domain: {
x: [0.66, 0.99],
y: [0.5, 1.0],
},
},
height: 600,
margin: {
l: 0,
r: 0,
b: 0,
t: 0,
pad: 0,
},
};

Plotly.newPlot('myDiv', [Turn1, Turn2, Turn3], layout);
93 changes: 93 additions & 0 deletions public/javascripts/indexBatchTimeout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
const xmlhttp = new XMLHttpRequest();
xmlhttp.open('GET', '../api/get?data=BatchTimeout&orderby=BatchTimeout', false);
xmlhttp.send();
const BatchTimeout = xmlhttp.responseText.split(',');

xmlhttp.open('GET', '../api/get?data=TPS&orderby=BatchTimeout', false);
xmlhttp.send();
const TPS = xmlhttp.responseText.split(',');

xmlhttp.open(
'GET',
'../api/get?data=MaxMessageCount&orderby=BatchTimeout',
false
);
xmlhttp.send();
const MaxMessageCount = xmlhttp.responseText.split(',');

xmlhttp.open(
'GET',
'../api/get?data=AbsoluteMaxBytes&orderby=BatchTimeout',
false
);
xmlhttp.send();
const AbsoluteMaxBytes = xmlhttp.responseText.split(',');

xmlhttp.open(
'GET',
'../api/get?data=PreferredMaxBytes&orderby=BatchTimeout',
false
);
xmlhttp.send();
const PreferredMaxBytes = xmlhttp.responseText.split(',');

const Turn1 = {
opacity: 0.5,
color: 'rgb(255,0,0)',
type: 'scatter3d',
x: BatchTimeout,
y: MaxMessageCount,
z: TPS,
scene: 'scene1',
};

const Turn2 = {
opacity: 0.5,
color: 'rgb(0,255,0)',
type: 'scatter3d', // 'mesh3d',
x: BatchTimeout,
y: AbsoluteMaxBytes,
z: TPS,
scene: 'scene2',
};

const Turn3 = {
opacity: 0.5,
color: 'rgb(0,0,255)',
type: 'scatter3d',
x: BatchTimeout,
y: PreferredMaxBytes,
z: TPS,
scene: 'scene3',
};

const layout = {
scene1: {
domain: {
x: [0.0, 0.33],
y: [0.5, 1.0],
},
},
scene2: {
domain: {
x: [0.33, 0.66],
y: [0.5, 1.0],
},
},
scene3: {
domain: {
x: [0.66, 0.99],
y: [0.5, 1.0],
},
},
height: 600,
margin: {
l: 0,
r: 0,
b: 0,
t: 0,
pad: 0,
},
};

Plotly.newPlot('myDiv', [Turn1, Turn2, Turn3], layout);
97 changes: 97 additions & 0 deletions public/javascripts/indexMaxMessageCount.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
const xmlhttp = new XMLHttpRequest();
xmlhttp.open(
'GET',
'../api/get?data=BatchTimeout&orderby=MaxMessageCount',
false
);
xmlhttp.send();
const BatchTimeout = xmlhttp.responseText.split(',');

xmlhttp.open('GET', '../api/get?data=TPS&orderby=MaxMessageCount', false);
xmlhttp.send();
const TPS = xmlhttp.responseText.split(',');

xmlhttp.open(
'GET',
'../api/get?data=MaxMessageCount&orderby=MaxMessageCount',
false
);
xmlhttp.send();
const MaxMessageCount = xmlhttp.responseText.split(',');

xmlhttp.open(
'GET',
'../api/get?data=AbsoluteMaxBytes&orderby=MaxMessageCount',
false
);
xmlhttp.send();
const AbsoluteMaxBytes = xmlhttp.responseText.split(',');

xmlhttp.open(
'GET',
'../api/get?data=PreferredMaxBytes&orderby=MaxMessageCount',
false
);
xmlhttp.send();
const PreferredMaxBytes = xmlhttp.responseText.split(',');

const Turn1 = {
opacity: 0.5,
color: 'rgb(255,0,0)',
type: 'scatter3d',
x: MaxMessageCount,
y: BatchTimeout,
z: TPS,
scene: 'scene1',
};

const Turn2 = {
opacity: 0.5,
color: 'rgb(0,255,0)',
type: 'scatter3d', // 'mesh3d',
x: MaxMessageCount,
y: AbsoluteMaxBytes,
z: TPS,
scene: 'scene2',
};

const Turn3 = {
opacity: 0.5,
color: 'rgb(0,0,255)',
type: 'scatter3d',
x: MaxMessageCount,
y: PreferredMaxBytes,
z: TPS,
scene: 'scene3',
};

const layout = {
scene1: {
domain: {
x: [0.0, 0.33],
y: [0.5, 1.0],
},
},
scene2: {
domain: {
x: [0.33, 0.66],
y: [0.5, 1.0],
},
},
scene3: {
domain: {
x: [0.66, 0.99],
y: [0.5, 1.0],
},
},
height: 600,
margin: {
l: 0,
r: 0,
b: 0,
t: 0,
pad: 0,
},
};

Plotly.newPlot('myDiv', [Turn1, Turn2, Turn3], layout);
97 changes: 97 additions & 0 deletions public/javascripts/indexPreferredMaxBytes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
const xmlhttp = new XMLHttpRequest();
xmlhttp.open(
'GET',
'../api/get?data=BatchTimeout&orderby=PreferredMaxBytes',
false
);
xmlhttp.send();
const BatchTimeout = xmlhttp.responseText.split(',');

xmlhttp.open('GET', '../api/get?data=TPS&orderby=PreferredMaxBytes', false);
xmlhttp.send();
const TPS = xmlhttp.responseText.split(',');

xmlhttp.open(
'GET',
'../api/get?data=MaxMessageCount&orderby=PreferredMaxBytes',
false
);
xmlhttp.send();
const MaxMessageCount = xmlhttp.responseText.split(',');

xmlhttp.open(
'GET',
'../api/get?data=AbsoluteMaxBytes&orderby=PreferredMaxBytes',
false
);
xmlhttp.send();
const AbsoluteMaxBytes = xmlhttp.responseText.split(',');

xmlhttp.open(
'GET',
'../api/get?data=PreferredMaxBytes&orderby=PreferredMaxBytes',
false
);
xmlhttp.send();
const PreferredMaxBytes = xmlhttp.responseText.split(',');

const Turn1 = {
opacity: 0.5,
color: 'rgb(255,0,0)',
type: 'scatter3d',
x: PreferredMaxBytes,
y: BatchTimeout,
z: TPS,
scene: 'scene1',
};

const Turn2 = {
opacity: 0.5,
color: 'rgb(0,255,0)',
type: 'scatter3d', // 'mesh3d',
x: PreferredMaxBytes,
y: AbsoluteMaxBytes,
z: TPS,
scene: 'scene2',
};

const Turn3 = {
opacity: 0.5,
color: 'rgb(0,0,255)',
type: 'scatter3d',
x: PreferredMaxBytes,
y: MaxMessageCount,
z: TPS,
scene: 'scene3',
};

const layout = {
scene1: {
domain: {
x: [0.0, 0.33],
y: [0.5, 1.0],
},
},
scene2: {
domain: {
x: [0.33, 0.66],
y: [0.5, 1.0],
},
},
scene3: {
domain: {
x: [0.66, 0.99],
y: [0.5, 1.0],
},
},
height: 600,
margin: {
l: 0,
r: 0,
b: 0,
t: 0,
pad: 0,
},
};

Plotly.newPlot('myDiv', [Turn1, Turn2, Turn3], layout);

0 comments on commit 2ffbe87

Please sign in to comment.