changed the x axis data to numbers
This commit is contained in:
@@ -17,8 +17,8 @@ function updateData () {
|
|||||||
function graphSpectralData (obj, dom) {
|
function graphSpectralData (obj, dom) {
|
||||||
// graph spectral data in obj into dom
|
// graph spectral data in obj into dom
|
||||||
var graphPoints = [];
|
var graphPoints = [];
|
||||||
Object.keys(obj).forEach((element) => {
|
Object.keys(obj).forEach((element, index) => {
|
||||||
graphPoints.push([element, obj[element]]);
|
graphPoints.push([index, obj[element]]);
|
||||||
});
|
});
|
||||||
console.log(graphPoints);
|
console.log(graphPoints);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user