-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: create ng-ovh-chart component #11356
Conversation
28de835
to
f509f3a
Compare
) { | ||
this.options.scales.yAxes[0].scaleLabel.labelString = label; | ||
} | ||
this.options.scales.y.title.text = label; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.options.scales.y.title.text = label; | |
if(!this.options.scales.y.title) { | |
his.options.scales.y.title = { display: true }; | |
} | |
this.options.scales.y.title.text = label; |
netInterface.device ? netInterface.device : netInterface.name, | ||
); | ||
|
||
this.kpiInterfaces = devices.networkInterfaces; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.kpiInterfaces = devices.networkInterfaces; | |
this.kpiInterfaces = devices.networkInterfaces | |
.filter((netInterface) => netInterface.gateway != null) | |
.map((netInterface) => | |
netInterface.device ? netInterface.device : netInterface.name, | |
); |
This chart doesn't work if you apply this change. Because the this.kpiInterfaces should be an array not an array of object
for const filteredDown = inStats.filter(
(d) => this.kpiInterfaces.indexOf(d.tags.interface) > -1,
);
and same for upload
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: cyril.biencourt <cyril.biencourt@corp.ovh.com>
94d57bc
c40eee2
to
94d57bc
Compare
|
master
Description
Create ng-ovh-chart component based on chart.js latest version.
Related