Giter VIP home page Giter VIP logo

Comments (17)

lcallarec avatar lcallarec commented on August 23, 2024 6

Ok, if you need that feature, I'll take a look.

from live-chart.

stsdc avatar stsdc commented on August 23, 2024 2

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!

Zrzut ekranu z 2022-12-10 18 14 32

from live-chart.

lcallarec avatar lcallarec commented on August 23, 2024 1

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.

lcallarec avatar lcallarec commented on August 23, 2024 1

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.

lcallarec avatar lcallarec commented on August 23, 2024 1

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.

lcallarec avatar lcallarec commented on August 23, 2024 1

Finally released in 1.10.0.

from live-chart.

stsdc avatar stsdc commented on August 23, 2024

ping 👀

from live-chart.

lcallarec avatar lcallarec commented on August 23, 2024

Shame on me. Time flies. I promise to take a look this week.

from live-chart.

lcallarec avatar lcallarec commented on August 23, 2024

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.

stsdc avatar stsdc commented on August 23, 2024

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.

stsdc avatar stsdc commented on August 23, 2024

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!

Zrzut ekranu z 2022-11-01 21 18 05

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.

lcallarec avatar lcallarec commented on August 23, 2024

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.

stsdc avatar stsdc commented on August 23, 2024

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.

lcallarec avatar lcallarec commented on August 23, 2024

Yes, thanks, it helps. Let me figure out what happened.

from live-chart.

lcallarec avatar lcallarec commented on August 23, 2024

@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.

stsdc avatar stsdc commented on August 23, 2024

Yes, no more crashes 🎉 , however only one serie is coloured. 🤔

Zrzut ekranu z 2022-12-08 21 49 52

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.

lcallarec avatar lcallarec commented on August 23, 2024

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 :

Screenshot from 2022-12-10 17 23 00

Can you confirm that everything is ok ?

from live-chart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.