@neo4j-ndl/react-charts 1.3.2 → 1.3.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react-charts",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of charts from Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"react": ">=19.0.0",
|
|
58
58
|
"react-dom": ">=19.0.0",
|
|
59
|
-
"@neo4j-ndl/base": "^4.21.
|
|
60
|
-
"@neo4j-ndl/react": "^4.22.
|
|
59
|
+
"@neo4j-ndl/base": "^4.21.1",
|
|
60
|
+
"@neo4j-ndl/react": "^4.22.1"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"classnames": "2.5.1",
|
|
@@ -882,9 +882,6 @@ const Component = () => {
|
|
|
882
882
|
zoomOnMouseWheel: false,
|
|
883
883
|
},
|
|
884
884
|
],
|
|
885
|
-
grid: {
|
|
886
|
-
right: '70px',
|
|
887
|
-
},
|
|
888
885
|
toolbox: {
|
|
889
886
|
feature: {
|
|
890
887
|
dataZoom: {
|
|
@@ -2053,7 +2050,9 @@ const Component = () => {
|
|
|
2053
2050
|
series={[
|
|
2054
2051
|
{
|
|
2055
2052
|
encode: {
|
|
2053
|
+
// oxlint-disable-next-line
|
|
2056
2054
|
x: 'Repositories',
|
|
2055
|
+
// oxlint-disable-next-line
|
|
2057
2056
|
y: 'language',
|
|
2058
2057
|
},
|
|
2059
2058
|
name: 'Repositories',
|
|
@@ -2096,7 +2095,7 @@ import { Chart } from '@neo4j-ndl/react-charts';
|
|
|
2096
2095
|
|
|
2097
2096
|
const sampleData = [
|
|
2098
2097
|
['time', 'response time', 'request volume'],
|
|
2099
|
-
...Array.from({ length: 180 }, (
|
|
2098
|
+
...Array.from({ length: 180 }, (_index, index) => {
|
|
2100
2099
|
const responseTime =
|
|
2101
2100
|
38 + Math.sin(index / 6) * 13 + Math.cos(index / 17) * 7;
|
|
2102
2101
|
const requestVolume =
|
|
@@ -2135,11 +2134,13 @@ const Component = () => {
|
|
|
2135
2134
|
]}
|
|
2136
2135
|
series={[
|
|
2137
2136
|
{
|
|
2137
|
+
// oxlint-disable-next-line
|
|
2138
2138
|
encode: { x: 'time', y: 'response time' },
|
|
2139
2139
|
name: 'Response time',
|
|
2140
2140
|
type: 'line',
|
|
2141
2141
|
},
|
|
2142
2142
|
{
|
|
2143
|
+
// oxlint-disable-next-line
|
|
2143
2144
|
encode: { x: 'time', y: 'request volume' },
|
|
2144
2145
|
name: 'Request volume',
|
|
2145
2146
|
type: 'line',
|