-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add multicolor feature to line and area #34
Comments
Ok, if you need that feature, I'll take a look. |
ping 👀 |
Shame on me. Time flies. I promise to take a look this week. |
Just a small update to keep you informed : I'm working on a poc. I should be able to release this feature next week, + this one #36 |
Just asking : do you have any needs to define more than one "area", i.e. "high (in orange)" and "very high (in red)" ? |
Not really, as for now 😅 |
Ok, that's a good news :) Having more that one area is a pain ^^. I'll release a beta before the end of the week, for SmoothLineArea only. That feature wasn't so obvious to code and could have some impacts on performances and stability. |
To test this feature, please update to 55d904b. Usage : var red = Gdk.Color() { red: 1, green: 0, blue: 0, alpha: 1};
var lightly_red = Gdk.Color() { red: 1, green: 0, blue: 0, alpha: 0.5};
var line = new LiveChart.SmoothLineArea(); //or SmoothLine();
line.region = new LiveChart.Region.between(100, double.MAX).with_line_color(red).with_area_color(lightly_red); I'm waiting for your feedbacks ! |
Looks cool! (temperature) But experienced a few crushes, maybe because I tried to colour area when using stacked charts on main CPU chart. Added Thanks! You can check here https://github.com/stsdc/monitor/blob/6a6a4dbe8de14e89de4bcbe9d9c589f56af4220b/src/Widgets/Chart/Chart.vala#L49-L68 PS I believe you meant |
I'm a bit frightened about the crash you experienced. Was it a segfault ? Have you got any log about that crash ? |
Here is a gdb output, hope it helps:
|
Yes, thanks, it helps. Let me figure out what happened. |
I just tested your monitor app (with livechart pointing on HEAD). And I've got all series colored : Can you confirm that everything is ok ? |
Finally released in 1.10.0. |
It would be super cool to be able change colour of segment of the line to indicate e.g. high values. That also would be nice to have for the area under such segment.
The text was updated successfully, but these errors were encountered: