Giter Club home page Giter Club logo

d3plus-common's Introduction

d3plus

D3plus is a JavaScript re-usable chart library that extends the popular D3.js to enable the easy creation of beautiful visualizations.

Installing

If using npm, npm install d3plus. Otherwise, you can download the latest release from GitHub or load from a CDN.

import modules from "d3plus";

d3plus can be loaded as a standalone library or bundled as part of D3plus. ES modules, AMD, CommonJS, and vanilla environments are supported. In vanilla, a d3plus global is exported:

<script src="https://cdn.jsdelivr.net/npm/d3plus@2"></script>
<script>
  console.log(d3plus);
</script>

Resources

Examples and documentation are published in a Storybook here. Each example has controls that are able to modified on the fly, documentation for each method used, and an example code output for the d3plus-react configurations.

Modules

D3plus 2.0 is a collection of modules that are designed to work together; you can use the modules independently, or you can use them together as part of the default build. The source and documentation for each module is available in its repository. Follow the links below to learn more.

Core Packages

React Usage

Examples and Documentation

d3plus-common's People

Contributors

cnavarreteliz avatar davelandry avatar ffigueroal avatar greenkeeper[bot] avatar greenkeeperio-bot avatar nbond211 avatar rbaheti avatar scespinoza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

d3plus-common's Issues

An in-range update of d3-array is breaking the build 🚨

Version 1.0.3 of d3-array just got published.

Branch Build failing 🚨
Dependency d3-array
Current Version 1.0.2
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

As d3-array is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this πŸ’ͺ


Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details
Release Notes v1.0.3
  • Update dependencies.
Commits

The new version differs by 6 commits .

See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of d3-selection is breaking the build 🚨

The dependency d3-selection was updated from 1.3.2 to 1.4.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

d3-selection is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v1.4.0
Commits

The new version differs by 12 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

create global localization object

Localization is something that we've supported in the past that has not been properly addressed in the new version of d3plus. D3 contains some great time formatters, so let's implement a solution that combines any built-ins we can find with more specific word localizations (like the text for the "back" button).

My current idea is to have a global locale object exported by this module, and that object would contain keys for each language, which then in turn contain keys for specific types of localizations. An example format is here:

export default {
  "en-US": {
    time: {...}, // object imported from d3-time-format
    text: {
      back: "Back",
      ...
    }
  },
  "es-ES": {
    time: {...}, // object imported from d3-time-format
    text: {
      back: "Volver",
      ...
    }
  }
}

This object would be created in src/locale/index.js, importing all of the d3-time-format language modules, and importing our own modules from files like src/locale/text/es-ES.js. We would then add a .locale("es-ES") method to BaseClass so that every component can support localization.

@cnavarreteliz, @nbond211, thoughts?

An in-range update of d3-transition is breaking the build 🚨

The dependency d3-transition was updated from 1.1.3 to 1.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

d3-transition is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 9 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

warn users if they are passing incorrect config properties

Expected Behavior

Would be great if when setting a config method that is not supported, a console message should be displayed warning the user. Would be a modification of the logic here regarding k in this.

Current Behavior

Non-supported config keys silently fail.

add locale method to BaseClass

This locale method would be stored internally as this._locale, and accept either a fully-constructed lanaguage object (referenced here) or a string that would be used to look up the default object the master list exported from that reference issue.

add colorDefaults method to BaseClass

Expected Behavior

Currently, the color functions like colorAssign and colorContrast used for labels and fill colors use the default color object from d3plus-color, but have the ability to be overridden. When using these functions in Viz and Shape classes, there should be a method to allow the user to override the defaults.

Current Behavior

There currently is no way to overwrite them!

Latest version on npm is es6?

Hi,

Thanks for all of the work on this, we're having a slight issue with 0.6.50.

The latest release of d3plus-common (0.6.50) has not been babelified (or whatever you are using to make it es5 compatible?).

https://registry.npmjs.org/d3plus-common/-/d3plus-common-0.6.50.tgz

Version 0.6.49 was.

https://registry.npmjs.org/d3plus-common/-/d3plus-common-0.6.49.tgz

If you unzip them both you can see the difference.

We have pinned to 0.6.49 for now but just to let you know :)

An in-range update of d3-transition is breaking the build 🚨

Version 1.1.0 of d3-transition just got published.

Branch Build failing 🚨
Dependency d3-transition
Current Version 1.0.4
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

d3-transition is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes v1.1.0
Commits

The new version differs by 6 commits0.

false

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of d3-selection is breaking the build 🚨

Version 1.0.5 of d3-selection just got published.

Branch Build failing 🚨
Dependency d3-selection
Current Version 1.0.4
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

As d3-selection is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this πŸ’ͺ


Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details
Release Notes v1.0.5
  • Update dependencies.
Commits

The new version differs by 3 commits .

See the full diff.

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of d3-array is breaking the build 🚨

The dependency d3-array was updated from 1.2.4 to 1.3.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

d3-array is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 4 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of d3plus-dev is breaking the build 🚨

Version 0.4.9 of d3plus-dev just got published.

Branch Build failing 🚨
Dependency d3plus-dev
Current Version 0.4.8
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As d3plus-dev is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes v0.4.9
  • adds namespace to locale parser (b2a5eb5)
  • fix(package): update uglify-js to version 3.0.0 (#31) (f9c543c)
  • potentially implements coveralls code coverage (d108eaf)
Commits

The new version differs by 4 commits0.

  • b2a5eb5 adds namespace to locale parser
  • f9c543c fix(package): update uglify-js to version 3.0.0 (#31)
  • d108eaf potentially implements coveralls code coverage
  • 3163d24 compiles v0.4.8

false

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

broken build

I get this message with or without updated deps

$ npm run-script build

> [email protected] build /home/pacha/github/d3plus-common
> d3plus-build




    d3plus-common v0.6.44
    build compile


[ done ] transpiling ES6 for modules
[ done ] bundling build/d3plus-common.js
[ fail ] CompileError: for...of statements are not supported. Use `transforms: { forOf: false }` to skip transformation and disable this error, or `transforms: { dangerousForOf: true }` if you know what you're doing (7:4)
3 :   let delta;
4 :   let mean = 0;
5 :   let sum = 0;
6 :   if (valueof === undefined) {
7 :     for (let value of values) {

An in-range update of d3plus-dev is breaking the build 🚨

The devDependency d3plus-dev was updated from 0.6.9 to 0.6.10.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

d3plus-dev is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 3 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Move development dependencies to devDependencies

Hi,

Would it be possible to move dependencies that the end npm package user doesn't need to devDependencies. Now this package is forcing to install Electron (over 250 MB), Browserify, Babelify, ESLint, LiveServer, Faucet, Rollup, Tape, UglifyJS etc. for nothing.

Or is it that d3plus-common and d3plus-text should not be used via npm?

ES5 compatibility in latest version

We updated to version 0.6.53 and noticed that the new dependency of locale-codes is ES6.
This is causing problems similar to #100 with ES5 compatibility.

Not a problem as we have pinned to an older version but wanted to make you aware.

Many thanks :)

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.