/d3-emscripten

Use d3.js from the comfort of C++! C++ wrapper for d3.js via emscripten.

Primary LanguageC++OtherNOASSERTION

NOTE: All development of d3-emscripten has moved to Empirical (https://github.com/devosoft/Empirical), which contains a variety of other handy tools for using emscripten.

d3-emscripten

This repository contains the begginnings of a an emscripten wrapper for d3.js. Once it's done, it will let the user write code from C++ to create javascript visualizations in d3.js.

Dependencies:

Status: Selection class is mostly functional - you can bind data, do transitions, and create interactions.

To use:

  • Include "emp::Initialize();" at the start of your main function so JSWrap (and other tools from Empirical) will work
  • Write callback functions in C++, and then call emp::JSWrap(functionname, "functionname") to make it accessible in both Javascript and C++. You can now pass the function name as an argument to functions that take functions.