From 92ce647546967d5e8e6ec839ea1413a6b1357148 Mon Sep 17 00:00:00 2001 From: Iaroslav Popov Date: Thu, 27 Oct 2016 20:26:48 +0200 Subject: [PATCH] Instalation part added (#49) * adds more specific installation instructions to README --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 478ddb2..d70989f 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,21 @@ This library currently includes the following charts: Note: This library is still in beta, please use carefully, and file issues as discovered. Pull requests for additional charts always welcome! +## Install +First install `ember-sparkles` to your application: +```bash +ember install ember-sparkles +``` +Then add default `ember-resize` configuration into `config/environment.js` file, these properties can be changed to suit your needs. For more information, please see the documentation for [ember-resize](https://github.com/mike-north/ember-resize): +```js + resizeServiceDefaults: { + widthSensitive: true, + heightSensitive: true, + debounceTimeout: 200, + injectionFactories: ['view', 'component'] + }, +``` + ## How to use This addon includes an `{{ember-sparkles}}`, which renders a responsive SVG container element. D3-based graphs, axes, and legend components are contextually yielded from this component.