Coder Social home page Coder Social logo

Comments (4)

syntagmatic avatar syntagmatic commented on April 19, 2024 1

Thanks @xaranke!

from d3-hexbin.

syntagmatic avatar syntagmatic commented on April 19, 2024

Here's the reference example with the scaleMagma bit updated to a scaleSequential: http://bl.ocks.org/syntagmatic/748b02519c942c5291f302e060315ad6

from d3-hexbin.

syntagmatic avatar syntagmatic commented on April 19, 2024

This is configured as part of the rollup command:

"pretest": "rm -rf build && mkdir build && json2module package.json > build/package.js && rollup -f umd -n d3_hexbin -o build/d3-hexbin.js -- index.js",

rm -rf build &&
mkdir build &&
json2module package.json > build/package.js &&
rollup -f umd -n d3_hexbin -o build/d3-hexbin.js -- index.js

This is how the last line looks on d3-array.

rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-array.js -- index.js

And d3-sankey.

rollup --banner \"$(preamble)\" -g d3-array:d3,d3-collection:d3,d3-interpolate:d3 -f umd -n d3 -o build/d3-sankey.js -- index.js

So it looks like the argument to -n just needs to change from d3_hexbin to d3.

rollup -f umd -n d3 -o build/d3-hexbin.js -- index.js

Request @mbostock for updates to Let's Make a D3 Plugin:

  • remark on the banner/preamble
  • difference between -n and -g flags

from d3-hexbin.

syntagmatic avatar syntagmatic commented on April 19, 2024

Also found this article on Rollup with D3 examples via @micahstubbs on the d3 #development Slack: https://medium.com/@yonester/bundling-with-rollup-the-basics-b782b55f36a8

from d3-hexbin.

Related Issues (17)

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.