ember-plotly-shim

0.0.4 • Public • Published

ember-plotly-shim

ES6 accessible module for plotly.js within your Ember applications. Warning: This is a work in progress

Usage

  • ember install ember-plotly-shim

By default, the main plotly bundle will be used. To use a partial bundle, add a line like the one below in your config/environment.js file

// config.environment.js
module.exports = function(environment) {
  return {
    plotly: {
      // Options:
      // basic, cartesian,
      // geo, gl3d, gl2d,
      // mapbox, finance
      partialBundle: 'basic'
    }
  };
}

Then import plotly like the line below in a js file:

import Plotly from 'plotly';

For more information on partial bundles -> https://github.com/plotly/plotly.js/blob/master/dist/README.md#bundle-information

Note: At this time, manually picking commonjs modules as discussed here https://github.com/plotly/plotly.js/#modules is not supported

This project is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i ember-plotly-shim

Weekly Downloads

2

Version

0.0.4

License

MIT

Unpacked Size

6.07 kB

Total Files

8

Last publish

Collaborators

  • brianhjelle