Code Monkey home page Code Monkey logo

Comments (6)

areski avatar areski commented on August 16, 2024

Actually I even investigated this, it will be interesting to share what you found. Maybe looking at what the folks from nvd3 recommend would be a good start.

from django-nvd3.

zebulon2 avatar zebulon2 commented on August 16, 2024

Alright, will share. Interestingly, Google charts does not have the same performance issue. But there are less functionalities (like toggling the time course curves from the legend).

from django-nvd3.

zebulon2 avatar zebulon2 commented on August 16, 2024

The Ramer-Douglas-Peucker algorithm works pretty well to simplify lines. However, I understand that a line chart with several line series must have the same 'x' axis values, am I correct? Or is there a way to display line charts with different 'x' series? If not, then I need to apply the rdp algorithm to each series, take all the reduced 'x' together and reconstruct the series.

from django-nvd3.

areski avatar areski commented on August 16, 2024

Thanks for the pointer, that sounds a very interesting algorithm.
It's possible to use different x axis for each line, I just pushed an example how to do that

from django-nvd3.

areski avatar areski commented on August 16, 2024

areski/python-nvd3@0c782e9

from django-nvd3.

zebulon2 avatar zebulon2 commented on August 16, 2024

Hi, many thanks, did not know it was possible, this simplifies the problem a lot. However, there seems to be a problem with nvd3 performance for multiple series. Flot, for instance, has absolutely no problem to display 6 overlays of 8 series of 1000 points on any major browser, with point coordinates display when hovering above the series courses. 1 serie with nvd3 makes FF and Chrome struggle, and IE crashes.
I understand that nvd3 is having a major rewrite (version 2) so this may be corrected. But I need to report the issue upstream.

from django-nvd3.

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.