Coder Social home page Coder Social logo

Comments (1)

johnkiernander avatar johnkiernander commented on June 19, 2024

Thank you for your kind words. I hope to add pie charts fairly soon, I've done some of the planning but I need to get to work on the code.

Regarding your x axis sorting I'm guessing this is an issue with parsing. The dimple logic will order by date if the values can all be parsed as dates, or numerically if they can be parsed as numbers, or by opposing axis value in any other case. As you noticed there are significant differences in the parsing logic for browser engines, particularly around dates. Chrome will somehow make a date out of any string vaguely resembling one (not always correctly), while webkit is fairly strict. I imagine there are similarities with the numbers, particularly if there are string elements around the numbers.

So in short, if your values are open to ambiguity it is best to specify an order rule as you suggest.

I'm going to close this issue because fixing it would increase the amount of required user interaction (i.e. specifying formatting) and with dimple I'm aiming for it to correctly guess what you want most of the time but allow you to override those guesses easily. I think we are still ok on that basis, and in this case it just needs an override as you suggest.

NB. Probably not relevant to your case but the Time Axis doesn't have this problem because it uses a set date format with D3's date parsing.

from dimple.

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.