-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sam Yuan <yy19902439@126.com>
- Loading branch information
1 parent
048fc70
commit 2ffbe87
Showing
4 changed files
with
384 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |