Comments (3)
I just added an example to documentation:
I tried to use chart.update({duration: 0});
but it didn't work. Use options.animation.duration = 0
instead.
var myChart = new Chart(ctx, {
type: 'line',
plugins: [ChartDatasourcePrometheusPlugin],
options: {
animation: {
duration: 0,
},
plugins: {
'datasource-prometheus': {
prometheus: {
endpoint: "http://demo.robustperception.io:9090",
},
query: 'node_load1',
timeRange: {
type: 'relative',
// from 10 minutes ago to now
start: -1 * 10 * 60 * 1000,
end: 0,
msUpdateInterval: 5000,
},
},
},
},
});
from chartjs-plugin-datasource-prometheus.
Hello @dalbani ,
it seems that it's possible to disable the animation with the following
It should be easy to implement
@samber , do you plan to add a functionality that "cumulate" data instead of "refreshing" the graph ? Let say I monitor memory/cpu, when initializing, the graph show the consuption for the last 10 minutes. Then, when refreshing, it will add the data to the graph, instead of refreshing the graph with the new data ? (I hope its clear ).
Thanks
from chartjs-plugin-datasource-prometheus.
Hi @matth-c3
The plugin supports relative time range (example: from -600
to 0
), then you should be able to do that by yourself, with a simple refresh.
from chartjs-plugin-datasource-prometheus.
Related Issues (16)
- Chart.js 3.0 support HOT 3
- How to clear and draw another graph? HOT 4
- Exclude empty label set from caption HOT 4
- baseURL as public parameter HOT 2
- [feature] Histogram chart HOT 3
- Can I use it with vue.js ? HOT 5
- Is there a way to format the time stamps on the x-axis? HOT 1
- Declaration file not found HOT 1
- Please use git tags for versions HOT 2
- Updating chart queries HOT 2
- dataSetHook has an error HOT 1
- Cannot read properties of null (reading 'addEventListener') HOT 4
- Multiple queries on a single chart HOT 1
- Documentation / example of findInLabelMap HOT 2
- Update Prometheus Query version. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chartjs-plugin-datasource-prometheus.