abstract-chart 3.2.3 → 3.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -15
- package/LICENSE +21 -21
- package/README.md +106 -106
- package/lib/axis.js +1 -1
- package/lib/axis.js.map +1 -1
- package/package.json +3 -3
- package/src/axis.ts +234 -234
- package/src/chart.ts +761 -761
- package/src/index.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
|
-
|
|
5
|
-
## [Unreleased](https://github.com/promaster-sdk/property/compare/abstract-chart@3.2.3...master)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
|
+
|
|
5
|
+
## [Unreleased](https://github.com/promaster-sdk/property/compare/abstract-chart@3.2.3...master)
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Support for larger axis numbers
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
### Removed
|
|
14
|
+
|
|
15
|
+
## [v3.2.1](https://github.com/promaster-sdk/property/compare/abstract-chart@3.0.0...abstract-chart@3.2.1) - 2022-06-02
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- Support for other font than Arial.
|
|
20
|
+
|
|
21
|
+
## v3.0.0 - 2021-03-24
|
|
22
|
+
|
|
23
|
+
- Start of changelog.
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2018 Divid AB
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Divid AB
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
# abstract-chart
|
|
2
|
-
|
|
3
|
-
[![npm version][version-image]][version-url]
|
|
4
|
-
[![code style: prettier][prettier-image]][prettier-url]
|
|
5
|
-
[![MIT license][license-image]][license-url]
|
|
6
|
-
|
|
7
|
-
Drawing charts using multiple unit of measure axes as coordinate system
|
|
8
|
-
|
|
9
|
-
## Introduction
|
|
10
|
-
|
|
11
|
-
When drawing complex scientific charts, regular line/bar/pie chart libraries are not very useful. This aim of this library is to enable any chart to be drawn, no matter how complex. This is achieved by treating the chart as a canvas where you can draw anything, but in constract to a regular canvas, the chart has a coordinate system specified by axes that can be of different units of measure. You can have multiple coordinate systems overlayed in the same chart by adding more axes to the chart.
|
|
12
|
-
|
|
13
|
-
The chart is created as an abstract representation which can then be converted to an [abstract-image] which then in turn can be realised into different concrete formats such as .png, .svg etc.
|
|
14
|
-
|
|
15
|
-
## Installation
|
|
16
|
-
|
|
17
|
-
`npm install --save abstract-chart`
|
|
18
|
-
|
|
19
|
-
The library is compiled to ES5 and no polyfills are required.
|
|
20
|
-
|
|
21
|
-
## Usage
|
|
22
|
-
|
|
23
|
-
Example of chart <a href="https://www.xkcd.com/1612/">XKCD 1612</a>, "The worst part of colds".
|
|
24
|
-
|
|
25
|
-
```typescript
|
|
26
|
-
import * as React from "react";
|
|
27
|
-
import * as AbstractChart from "abstract-chart";
|
|
28
|
-
import * as AbstractImage from "abstract-image";
|
|
29
|
-
|
|
30
|
-
const svg = AbstractImage.createSvg(
|
|
31
|
-
AbstractChart.renderChart(generateLineChart())
|
|
32
|
-
);
|
|
33
|
-
|
|
34
|
-
function generateLineChart(): AbstractChart.Chart {
|
|
35
|
-
const series = [
|
|
36
|
-
AbstractChart.createChartLine({
|
|
37
|
-
points: [
|
|
38
|
-
{ x: 0, y: 0 },
|
|
39
|
-
{ x: 1, y: 2 },
|
|
40
|
-
{ x: 2, y: 4 },
|
|
41
|
-
{ x: 3, y: 1.5 },
|
|
42
|
-
{ x: 4, y: 1 },
|
|
43
|
-
{ x: 5, y: 0 },
|
|
44
|
-
{ x: 6, y: 0 },
|
|
45
|
-
{ x: 7, y: 0 },
|
|
46
|
-
{ x: 8, y: 0 }
|
|
47
|
-
],
|
|
48
|
-
color: AbstractImage.red,
|
|
49
|
-
label: "How bad you feel",
|
|
50
|
-
xAxis: "bottom",
|
|
51
|
-
yAxis: "left"
|
|
52
|
-
}),
|
|
53
|
-
AbstractChart.createChartLine({
|
|
54
|
-
points: [
|
|
55
|
-
{ x: 0, y: 0 },
|
|
56
|
-
{ x: 1, y: 0 },
|
|
57
|
-
{ x: 2, y: 0 },
|
|
58
|
-
{ x: 3, y: 1 },
|
|
59
|
-
{ x: 4, y: 2 },
|
|
60
|
-
{ x: 5, y: 3 },
|
|
61
|
-
{ x: 6, y: 2.8 },
|
|
62
|
-
{ x: 7, y: 2 },
|
|
63
|
-
{ x: 8, y: 1.5 }
|
|
64
|
-
],
|
|
65
|
-
color: AbstractImage.blue,
|
|
66
|
-
label: "How bad you sound",
|
|
67
|
-
xAxis: "bottom",
|
|
68
|
-
yAxis: "left"
|
|
69
|
-
})
|
|
70
|
-
];
|
|
71
|
-
|
|
72
|
-
const [xMin, xMax] = getLineRange(series, point => point.x);
|
|
73
|
-
const [yMin, yMax] = getLineRange(series, point => point.y);
|
|
74
|
-
|
|
75
|
-
const chart = AbstractChart.createChart({
|
|
76
|
-
chartLines: series,
|
|
77
|
-
xAxisBottom: AbstractChart.createLinearAxis(xMin, xMax, "Days with cold"),
|
|
78
|
-
yAxisLeft: AbstractChart.createLinearAxis(yMin, yMax + 1, "Badness"),
|
|
79
|
-
labelLayout: "center"
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
return chart;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function getLineRange(
|
|
86
|
-
series: AbstractChart.ChartLine[],
|
|
87
|
-
axisSelector: (point: AbstractImage.Point) => number
|
|
88
|
-
): [number, number] {
|
|
89
|
-
const axisValues = series.map(serie => serie.points.map(axisSelector)).reduce(
|
|
90
|
-
(soFar, current) => {
|
|
91
|
-
return [...soFar, ...current];
|
|
92
|
-
},
|
|
93
|
-
[] as ReadonlyArray<number>
|
|
94
|
-
);
|
|
95
|
-
return [Math.min(...axisValues), Math.max(...axisValues)];
|
|
96
|
-
}
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
[version-image]: https://img.shields.io/npm/v/abstract-chart.svg?style=flat
|
|
100
|
-
[version-url]: https://www.npmjs.com/package/abstract-chart
|
|
101
|
-
[license-image]: https://img.shields.io/github/license/dividab/abstract-visuals.svg?style=flat
|
|
102
|
-
[license-url]: https://opensource.org/licenses/MIT
|
|
103
|
-
[prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat
|
|
104
|
-
[prettier-url]: https://github.com/prettier/prettier
|
|
105
|
-
[abstract-image]: https://www.npmjs.com/package/abstract-image
|
|
106
|
-
[uom]: https://www.npmjs.com/package/uom
|
|
1
|
+
# abstract-chart
|
|
2
|
+
|
|
3
|
+
[![npm version][version-image]][version-url]
|
|
4
|
+
[![code style: prettier][prettier-image]][prettier-url]
|
|
5
|
+
[![MIT license][license-image]][license-url]
|
|
6
|
+
|
|
7
|
+
Drawing charts using multiple unit of measure axes as coordinate system
|
|
8
|
+
|
|
9
|
+
## Introduction
|
|
10
|
+
|
|
11
|
+
When drawing complex scientific charts, regular line/bar/pie chart libraries are not very useful. This aim of this library is to enable any chart to be drawn, no matter how complex. This is achieved by treating the chart as a canvas where you can draw anything, but in constract to a regular canvas, the chart has a coordinate system specified by axes that can be of different units of measure. You can have multiple coordinate systems overlayed in the same chart by adding more axes to the chart.
|
|
12
|
+
|
|
13
|
+
The chart is created as an abstract representation which can then be converted to an [abstract-image] which then in turn can be realised into different concrete formats such as .png, .svg etc.
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
`npm install --save abstract-chart`
|
|
18
|
+
|
|
19
|
+
The library is compiled to ES5 and no polyfills are required.
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
Example of chart <a href="https://www.xkcd.com/1612/">XKCD 1612</a>, "The worst part of colds".
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import * as React from "react";
|
|
27
|
+
import * as AbstractChart from "abstract-chart";
|
|
28
|
+
import * as AbstractImage from "abstract-image";
|
|
29
|
+
|
|
30
|
+
const svg = AbstractImage.createSvg(
|
|
31
|
+
AbstractChart.renderChart(generateLineChart())
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
function generateLineChart(): AbstractChart.Chart {
|
|
35
|
+
const series = [
|
|
36
|
+
AbstractChart.createChartLine({
|
|
37
|
+
points: [
|
|
38
|
+
{ x: 0, y: 0 },
|
|
39
|
+
{ x: 1, y: 2 },
|
|
40
|
+
{ x: 2, y: 4 },
|
|
41
|
+
{ x: 3, y: 1.5 },
|
|
42
|
+
{ x: 4, y: 1 },
|
|
43
|
+
{ x: 5, y: 0 },
|
|
44
|
+
{ x: 6, y: 0 },
|
|
45
|
+
{ x: 7, y: 0 },
|
|
46
|
+
{ x: 8, y: 0 }
|
|
47
|
+
],
|
|
48
|
+
color: AbstractImage.red,
|
|
49
|
+
label: "How bad you feel",
|
|
50
|
+
xAxis: "bottom",
|
|
51
|
+
yAxis: "left"
|
|
52
|
+
}),
|
|
53
|
+
AbstractChart.createChartLine({
|
|
54
|
+
points: [
|
|
55
|
+
{ x: 0, y: 0 },
|
|
56
|
+
{ x: 1, y: 0 },
|
|
57
|
+
{ x: 2, y: 0 },
|
|
58
|
+
{ x: 3, y: 1 },
|
|
59
|
+
{ x: 4, y: 2 },
|
|
60
|
+
{ x: 5, y: 3 },
|
|
61
|
+
{ x: 6, y: 2.8 },
|
|
62
|
+
{ x: 7, y: 2 },
|
|
63
|
+
{ x: 8, y: 1.5 }
|
|
64
|
+
],
|
|
65
|
+
color: AbstractImage.blue,
|
|
66
|
+
label: "How bad you sound",
|
|
67
|
+
xAxis: "bottom",
|
|
68
|
+
yAxis: "left"
|
|
69
|
+
})
|
|
70
|
+
];
|
|
71
|
+
|
|
72
|
+
const [xMin, xMax] = getLineRange(series, point => point.x);
|
|
73
|
+
const [yMin, yMax] = getLineRange(series, point => point.y);
|
|
74
|
+
|
|
75
|
+
const chart = AbstractChart.createChart({
|
|
76
|
+
chartLines: series,
|
|
77
|
+
xAxisBottom: AbstractChart.createLinearAxis(xMin, xMax, "Days with cold"),
|
|
78
|
+
yAxisLeft: AbstractChart.createLinearAxis(yMin, yMax + 1, "Badness"),
|
|
79
|
+
labelLayout: "center"
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
return chart;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function getLineRange(
|
|
86
|
+
series: AbstractChart.ChartLine[],
|
|
87
|
+
axisSelector: (point: AbstractImage.Point) => number
|
|
88
|
+
): [number, number] {
|
|
89
|
+
const axisValues = series.map(serie => serie.points.map(axisSelector)).reduce(
|
|
90
|
+
(soFar, current) => {
|
|
91
|
+
return [...soFar, ...current];
|
|
92
|
+
},
|
|
93
|
+
[] as ReadonlyArray<number>
|
|
94
|
+
);
|
|
95
|
+
return [Math.min(...axisValues), Math.max(...axisValues)];
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
[version-image]: https://img.shields.io/npm/v/abstract-chart.svg?style=flat
|
|
100
|
+
[version-url]: https://www.npmjs.com/package/abstract-chart
|
|
101
|
+
[license-image]: https://img.shields.io/github/license/dividab/abstract-visuals.svg?style=flat
|
|
102
|
+
[license-url]: https://opensource.org/licenses/MIT
|
|
103
|
+
[prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat
|
|
104
|
+
[prettier-url]: https://github.com/prettier/prettier
|
|
105
|
+
[abstract-image]: https://www.npmjs.com/package/abstract-image
|
|
106
|
+
[uom]: https://www.npmjs.com/package/uom
|
package/lib/axis.js
CHANGED
|
@@ -41,7 +41,7 @@ function createLogarithmicAxis(min, max, label) {
|
|
|
41
41
|
}
|
|
42
42
|
exports.createLogarithmicAxis = createLogarithmicAxis;
|
|
43
43
|
const linearMultiples = [1, 2, 5];
|
|
44
|
-
const linearPowers = [-2, -1, 0, 1, 2, 3, 4, 5, 6];
|
|
44
|
+
const linearPowers = [-2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
|
|
45
45
|
function getTicks(desiredTicks, axis) {
|
|
46
46
|
switch (axis.type) {
|
|
47
47
|
case "linear":
|
package/lib/axis.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axis.js","sourceRoot":"","sources":["../src/axis.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,8DAAgD;AAWhD,SAAgB,gBAAgB,CAC9B,GAAW,EACX,GAAW,EACX,KAAa;IAEb,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,GAAG,EAAE,GAAG;QACR,GAAG,EAAE,GAAG;QACR,KAAK,EAAE,KAAK;KACb,CAAC;AACJ,CAAC;AAXD,4CAWC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Aa,EACb,GAAW,EACX,GAAW;IAEX,IAAI,KAAK,GAAG,CAAC,EAAE;QACb,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACrC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CACpC,CAAC;KACH;SAAM,IAAI,KAAK,GAAG,CAAC,EAAE;QACpB,OAAO,GAAG,CAAC;KACZ;SAAM;QACL,OAAO,GAAG,CAAC;KACZ;AACH,CAAC;AAfD,oDAeC;AAED,SAAgB,sBAAsB,CACpC,KAAa,EACb,GAAW,EACX,GAAW;IAEX,OAAO,GAAG,GAAG,KAAK,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC;AACnC,CAAC;AAND,wDAMC;AAED,SAAgB,2BAA2B,CACzC,KAAa,EACb,GAAW,EACX,GAAW;IAEX,OAAO,IAAI,CAAC,GAAG,CACb,EAAE,EACF,KAAK,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAC9D,CAAC;AACJ,CAAC;AATD,kEASC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "abstract-chart",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.5",
|
|
4
4
|
"description": "Drawing charts using multiple unit of measure axes as coordinate system",
|
|
5
5
|
"repository": "https://github.com/dividab/abstract-visuals/tree/master/packages/abstract-chart",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"abstract-image": "^3.3.
|
|
18
|
+
"abstract-image": "^3.3.3",
|
|
19
19
|
"ramda": "^0.22.1",
|
|
20
20
|
"ts-exhaustive-check": "^1.0.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/ramda": "^0.25.29"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "5be117e7b0e57ff87e2c0652b466e273954f4c07"
|
|
26
26
|
}
|