Code Monkey home page Code Monkey logo

Comments (11)

curran avatar curran commented on June 11, 2024

@pachamaltese Regarding splitting modules, I'm thinking to tackle the largest files only and leave the rest. There are 9 files that are over 500 lines of code. I think limiting the scope of this task to just these files is a good idea. Thoughts?

  1     751 ./src/viz/helpers/ui/legend.js
  2     748 ./src/viz/types/helpers/graph/includes/svg.js
  3     738 ./src/viz/helpers/shapes/draw.js
  4     688 ./src/viz/helpers/shapes/edges.js
  5     664 ./src/viz/helpers/ui/timeline.js
  6     601 ./src/tooltip/create.js
  7     558 ./src/geom/largestrectangle.js
  8     556 ./src/viz/types/helpers/graph/includes/plot.js
  9     501 ./src/viz/types/rings.js

FWIW the command to get this list is find . -type f -exec wc -l {} + | sort -rn | head

from d3po.

pachadotdev avatar pachadotdev commented on June 11, 2024

@curran I agree. I'll post an idea in regards to find

from d3po.

curran avatar curran commented on June 11, 2024

@pachamaltese I'm noticing that there are no examples that use the legend component, so if I refactor that file there is no way to verify whether it breaks something or not. How would you like me to proceed?

from d3po.

pachadotdev avatar pachadotdev commented on June 11, 2024

from d3po.

pachadotdev avatar pachadotdev commented on June 11, 2024

from d3po.

curran avatar curran commented on June 11, 2024

I can remove the legend module completely without breaking any of the examples that are there with HTML.

image

I wonder, do you have any R-based examples that use the legend that could be easily ported to JavaScript?

I'm happy to just remove the legend component if you don't want the library to be able to make legends.

from d3po.

pachadotdev avatar pachadotdev commented on June 11, 2024

from d3po.

pachadotdev avatar pachadotdev commented on June 11, 2024

from d3po.

pachadotdev avatar pachadotdev commented on June 11, 2024

@curran I added a very stupid example here https://github.com/pachamaltese/d3po/blob/master/dev/treemap_with_legend.html

I shall port legends after remembering that 3 yrs ago I used those a lot

image

from d3po.

curran avatar curran commented on June 11, 2024

Excellent! Thank you for adding that.

from d3po.

curran avatar curran commented on June 11, 2024

Legend refactoring ready for review #31

from d3po.

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.