Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
JavaScript/Node.js is my preferred language. As far as I understood, it should be possible to do the calc based on the raw metric values provided with the sample data. But I think I'm doing something wrong. Thanks again for your effort!
I already calculate the change rates. That's not the problem. Normally, the change rates (with my metric (except errors)) will be >= 0. What I want to with my graph is the "speed" that the values of the metric change from t0 to t1. If the "speed" slows down, I want to show a negative trend. This is IMHO not possible with just the change rate.
Thanks a lot for your answer! Maybe my question is not very clear, but I struggle more with the calculation of the Y value than with the diverging color scheme. I have the absolute values of the metric, but that doesn't really help me showing the "speed" of change, and if the "speed" is positive compared to the last "step"/"time bucket".