0.1.34 • Published 5 years ago

test-make-line-chart v0.1.34

Weekly downloads
1
License
ISC
Repository
-
Last release
5 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

5 years ago

0.1.33

5 years ago

0.1.32

5 years ago

0.1.31

5 years ago

0.1.30

5 years ago

0.1.29

5 years ago

0.1.28

5 years ago

0.1.27

5 years ago

0.1.26

5 years ago

0.1.25

5 years ago

0.1.24

5 years ago

0.1.23

5 years ago

0.1.22

5 years ago

0.1.21

5 years ago

0.1.20

5 years ago

0.1.19

5 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.56

5 years ago

0.0.55

5 years ago

0.0.54

5 years ago

0.0.53

5 years ago

0.0.52

5 years ago

0.0.51

5 years ago

0.0.50

5 years ago

0.0.49

5 years ago

0.0.48

5 years ago

0.0.47

5 years ago

0.0.46

5 years ago

0.0.45

5 years ago

0.0.44

5 years ago

0.0.43

5 years ago

0.0.42

5 years ago

0.0.41

5 years ago

0.0.40

5 years ago

0.0.39

5 years ago

0.0.38

5 years ago

0.0.37

5 years ago

0.0.36

5 years ago

0.0.35

5 years ago

0.0.34

5 years ago

0.0.33

5 years ago

0.0.32

5 years ago

0.0.31

5 years ago

0.0.30

5 years ago

0.0.29

5 years ago

0.0.28

5 years ago

0.0.27

5 years ago

0.0.26

5 years ago

0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago