Comments (17)
Ok, if you need that feature, I'll take a look.
from live-chart.
Can confirm everything works! It was probably just a strange case were only one thread was loaded plus I have a pretty hi dpi, so wasn't able to notice. Sorry for that 😅 and thanks for this feature. Issue can be closed!
from live-chart.
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
from live-chart.
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.
It'll better if you could take some times to let this beta running inside your Monitor application a long time, just to check if everything is ok.
from live-chart.
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 !
from live-chart.
Finally released in 1.10.0.
from live-chart.
ping 👀
from live-chart.
Shame on me. Time flies. I promise to take a look this week.
from live-chart.
Just asking : do you have any needs to define more than one "area", i.e. "high (in orange)" and "very high (in red)" ?
from live-chart.
Not really, as for now 😅
Can't really think right now for other use cases for Monitor. Hmm maybe in profiling? As we can see in browser web tools. But I'm not going to do anything like that in the near future.
from live-chart.
Looks cool! (temperature)
But experienced a few crushes, maybe because I tried to colour area when using stacked charts on main CPU chart. Added if (series_quantity == 1)
and it's kinda stable.
Thanks!
You can check here https://github.com/stsdc/monitor/blob/6a6a4dbe8de14e89de4bcbe9d9c589f56af4220b/src/Widgets/Chart/Chart.vala#L49-L68
PS I believe you meant Gdk.RGBA
and =
😅
from live-chart.
I'm a bit frightened about the crash you experienced. Was it a segfault ? Have you got any log about that crash ?
from live-chart.
Here is a gdb output, hope it helps:
Thread 1 "com.github.stsd" received signal SIGSEGV, Segmentation fault.
0x00007ffff7f9ea21 in live_chart_region_handle (Python Exception <class 'ValueError'> Variable 'static_fundamental_type_nodes' not found.:
self=, intersections=0x7fffe8027ed0, previous=0x7fffffffad20, current=0x7fffffffad50,
get_intersection=0x7ffff7f94c4b <___lambda12__live_chart_get_intersection>, get_intersection_target=0x7fffdc023460)
at ../subprojects/live-chart/src/region.vala:82
82 intersections.close(coords.x, exited_at);
from live-chart.
Yes, thanks, it helps. Let me figure out what happened.
from live-chart.
@stsdc : would you please test monitor with this commit of live-chart : 1c090e1
Should fix the issue you noticed, which was - I believe - unrelated to the number of series you had on the chart.
Let me know if it's working.
from live-chart.
Yes, no more crashes 🎉 , however only one serie is coloured. 🤔
Using this:
renderer.region = new LiveChart.Region.between(50, 100).with_line_color(color_critical_line).with_area_color(color_critical_area);
from live-chart.
I just tested your monitor app (with livechart pointing on HEAD).
I removed the condition on "colorize only if series_quantity == 1
at https://github.com/stsdc/monitor/blob/6a6a4dbe8de14e89de4bcbe9d9c589f56af4220b/src/Widgets/Chart/Chart.vala#L61
And I've got all series colored :
Can you confirm that everything is ok ?
from live-chart.
Related Issues (20)
- Convert method between timestamp unaware collection and TimestampedValue HOT 3
- Create NEWS.md HOT 1
- Allow to access to added series HOT 4
- Allow to add_unaware_timestamp_collection by serie number HOT 3
- Crushes if there is no value added instatly HOT 3
- Allow to clear serie by index HOT 7
- Allow to change colour of serie by index HOT 4
- Could support to show static chart with static data? HOT 4
- Some ideas to improve live-chart HOT 6
- Can't build it HOT 2
- The name `main_color' does not exist in the context of `LiveChart.Drawable' HOT 2
- Porting to pure C HOT 7
- Round corners HOT 9
- Tests require a graphical session HOT 1
- Add native support for stacked charts HOT 1
- Showing minus value HOT 3
- Allow to set custom Area color
- Releasing Past 1.9.1 HOT 3
- Appearence: allow to hide labels, legend etc HOT 11
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 live-chart.