Giter Club home page Giter Club logo

Comments (6)

donv avatar donv commented on August 20, 2024

We have just been working on this! Data sets are now not sorted by default, but the Line chart is still drawing the lines with largest average first. You can now turn this off by setting g.sorted_drawing = false

We are debating what should be the default for this setting. For some charts like Area, hight values hide low values if they are drawn later. For Line charts, we thought maybe lines with lower average are more interesting when they are sporadically high, therefore overwriting lines with a higher average.

Got any thoughts on the subject?

Anyway: Try the new g.sorted_drawing = false setting and you should be able to control the order of the drawiing of the lines.

from gruff.

hovsater avatar hovsater commented on August 20, 2024

My first assumption was that the order of how I send my .data messages would impact the order of how lines are drawn. Doesn't that sound as a good default? That feels natural to me at least.

I guess setting g.sorted_drawing = false will do exactly what I described above, so I would suggest making false the default value for at least Line charts.

If one would want sorting, one could enable that by setting it to true. Another great companioning feature would be to be able to specify a sorting function explicitly.

from gruff.

donv avatar donv commented on August 20, 2024

You would like the first data set to be drawn "on top", right? That means drawing them in reverse order. I will think about that.

This is a good time for all to voice their opinions!

I am leaning towards not sorting line charts by default, and drawing them in reverse order to get the first data set on top.

from gruff.

hovsater avatar hovsater commented on August 20, 2024

By default I'd like to see data sets be rendered as they get called. If I set data for first, second and third, I'd assume first being rendered at the bottom, second in the middle and third at the front (on-top of the other lines).

Does that sound reasonable to you?

from gruff.

donv avatar donv commented on August 20, 2024

Done.

from gruff.

hovsater avatar hovsater commented on August 20, 2024

Awesome. Thanks a lot @donv.

from gruff.

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.