0.1.34 • Published 6 years ago

test-make-line-chart v0.1.34

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

pipeline status coverage report

Line graph

NPM Install

To use this linechart in another (React) application:

  1. Go to the root folder of that application
  2. Install the package using: npm install test-make-line-chart
  3. Import the package using: import 'test-make-line-chart'; in your JS-file

Development quick start

Te run this package locally (probably on port 8080):

  1. Perform a local Git clone
  2. cd into cloned repository
  3. npm install
  4. npm run build && http-server . (run npm install -g http-server if you don't have the http-server npm package installed yet)

Publishing to NPM

  1. Create a merge request on Gitlab
  2. Ask to be published (not sure if anyone else can publish packages)

Attributes

  • data (string): The data in JSON-string format.
  • xValueLine (string): The name of the key within 'data' that contains the x value.
  • yValueLines (array): Names of the keys within 'data' that contain the y values.

The following styles should all be optional. Defaults are ING-compliant.

  • externalStyles (array): Array of stylesheet-ID's to be included from parents
  • pathWidth (integer): Thickness of the lines in px.
  • pathClasses (array): Array of classes for the paths, use fill attribute only.
  • scatterClasses (array): Array of classes for the scattesr, use fill attribute only.
  • scatterSymbols (array): Array of the scatter symbols, only 'circle' and 'square' are available values.
  • scatterSize (integer): Size of the scatter symbols
  • focusClasses (array): Array of the hover-effect classes, use fill and stroke attributes only.
  • fontSize (integer): Fontsize for the axis and line-labels

Mockdata

This repository contains some mock data in src/data.json. If making changes to the mock data, make them wisely. The default attributes (x and y) are based upon this mock data.

0.1.34

6 years ago

0.1.33

6 years ago

0.1.32

6 years ago

0.1.31

6 years ago

0.1.30

6 years ago

0.1.29

6 years ago

0.1.28

6 years ago

0.1.27

6 years ago

0.1.26

6 years ago

0.1.25

6 years ago

0.1.24

6 years ago

0.1.23

6 years ago

0.1.22

6 years ago

0.1.21

6 years ago

0.1.20

6 years ago

0.1.19

6 years ago

0.1.18

6 years ago

0.1.17

6 years ago

0.1.16

6 years ago

0.1.15

6 years ago

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.56

6 years ago

0.0.55

6 years ago

0.0.54

6 years ago

0.0.53

6 years ago

0.0.52

6 years ago

0.0.51

6 years ago

0.0.50

6 years ago

0.0.49

6 years ago

0.0.48

6 years ago

0.0.47

6 years ago

0.0.46

6 years ago

0.0.45

6 years ago

0.0.44

6 years ago

0.0.43

6 years ago

0.0.42

6 years ago

0.0.41

6 years ago

0.0.40

6 years ago

0.0.39

6 years ago

0.0.38

6 years ago

0.0.37

6 years ago

0.0.36

6 years ago

0.0.35

6 years ago

0.0.34

6 years ago

0.0.33

6 years ago

0.0.32

6 years ago

0.0.31

6 years ago

0.0.30

6 years ago

0.0.29

6 years ago

0.0.28

6 years ago

0.0.27

6 years ago

0.0.26

6 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago