Code Monkey home page Code Monkey logo

Comments (3)

leo-holanda avatar leo-holanda commented on May 28, 2024

Hi @chaosmaou! Thanks for creating this issue!

I'm sorry that the chart looks confusing. I downloaded your log and reproduced the problem. What you see is the expected behaviour but I agree that things could be better.

It's important to note that the first field is a "dominant" one. A scale is generated through its data to render the y-axis and the line. Core 1 Clock and the others look wrong because they are being rendered on a scale that isn't the dominant one and isn't tied to the y-axis. Instead, they use their scale which is tied to different data than the Core 0 Clock. That's why you can make Core 1 Clock the dominant field and Core 0 Clock the other one and this behaviour continues but with Core 1 Clock being the dominant and Core 2 Clock the other one it disappears. Because Core 1 Clock and Core 2 Clock share almost the same data, which means the same scale and the same y-axis.

That said, I thought about ways to improve this. I think a straightforward improvement would allow fields that share a common unit, like Celsius and MHz, to use a shared scale. This could solve the problem in this scenario. For fields with different units, the only way I see is to create multiple y-axes, at the same side or opposite sides, which could be kinda confusing.

Do you think this shared-scale solution sounds good?

from logcharts.io.

 avatar commented on May 28, 2024

Ah, I see what you mean. I wasn't aware that the first field becomes the dominant one. Now that I understand how it works on the back end it's much easier for me to wrap my head around how it's interpreting the values. Having a shared scale for items that share the same units sounds like a great way handle the issue.

from logcharts.io.

leo-holanda avatar leo-holanda commented on May 28, 2024

That's great! 😀 I have taken a look at the code in the past few days and already have an idea of how to implement it. I'm gonna finish some job-hunting things I need to do and then push some commits to fix this issue. When I deploy a new version, I will comment back here to let you know!

from logcharts.io.

Related Issues (6)

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.