Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
2d2e8a4
Bump flatted from 3.4.1 to 3.4.2
dependabot[bot] Mar 21, 2026
d670ca6
Merge 2d2e8a403b968945eb409298effe8ddf68c043d8 into 8b8d748eec57b6824…
dependabot[bot] Mar 21, 2026
15e74d4
Version bump from 1.4.5 to 1.4.6
github-actions[bot] Mar 21, 2026
c715a33
Bump picomatch from 2.3.1 to 2.3.2
dependabot[bot] Mar 26, 2026
07383cf
Merge c715a334cfc2d2abfcfc9df17c07a65ea170d758 into 8b8d748eec57b6824…
dependabot[bot] Mar 26, 2026
4771ef4
Version bump from 1.4.5 to 1.4.6
github-actions[bot] Mar 26, 2026
9a1dfad
Bump handlebars from 4.7.8 to 4.7.9
dependabot[bot] Mar 27, 2026
d1b76df
Merge 9a1dfad1de9c7cdb0d66f8ff8edefbe5ecc58be8 into 8b8d748eec57b6824…
dependabot[bot] Mar 27, 2026
a4d1da9
Version bump from 1.4.5 to 1.4.6
github-actions[bot] Mar 27, 2026
e8b7de8
Bump lodash from 4.17.23 to 4.18.1
dependabot[bot] Apr 10, 2026
3451818
Merge e8b7de8d441795a6e7c72dbfba1b8d2e171bc199 into 8b8d748eec57b6824…
dependabot[bot] Apr 10, 2026
5f6914e
Version bump from 1.4.5 to 1.4.6
github-actions[bot] Apr 10, 2026
b0f83f4
Assign explicit color index for bar and column chart series
sakari-malkki Apr 27, 2026
55e3e54
Update tests to cover changes
sakari-malkki Apr 27, 2026
dc62782
Raise patch version number
sakari-malkki Apr 27, 2026
29cba23
Merge pull request #164 from StatisticsFinland/bugfix/stacked-bar-cha…
sakari-malkki Apr 29, 2026
8aa824d
Merge pull request #159 from StatisticsFinland/dependabot/npm_and_yar…
sakari-malkki Apr 29, 2026
7ae8979
Merge pull request #160 from StatisticsFinland/dependabot/npm_and_yar…
sakari-malkki Apr 29, 2026
2d7c179
Merge pull request #161 from StatisticsFinland/dependabot/npm_and_yar…
sakari-malkki Apr 29, 2026
8fb1b08
Bump uuid and jest-junit
dependabot[bot] Apr 29, 2026
5d44bfc
Bump postcss and styled-components
dependabot[bot] Apr 29, 2026
3420a42
Merge pull request #163 from StatisticsFinland/dependabot/npm_and_yar…
sakari-malkki Apr 29, 2026
a289440
Merge pull request #166 from StatisticsFinland/dependabot/npm_and_yar…
sakari-malkki Apr 29, 2026
16576e2
Merge pull request #165 from StatisticsFinland/dependabot/npm_and_yar…
sakari-malkki Apr 29, 2026
b154033
Resolve dependency issues
sakari-malkki Apr 29, 2026
8ec664c
Update snapshots
sakari-malkki Apr 29, 2026
9007d5f
Rebuild package lock file
sakari-malkki Apr 29, 2026
2c37ad8
Remove microbundle/picomatch/rollup overrides
sakari-malkki Apr 29, 2026
e8b2535
Increment version number
sakari-malkki Apr 29, 2026
e1bd159
Import jest styled components for more resilient snapshots
sakari-malkki Apr 30, 2026
6ba3991
Merge pull request #171 from StatisticsFinland/bugfix/fix-merge-issues
sakari-malkki Jun 3, 2026
3ad1583
Updated dependencies. Picomatch override
sakari-malkki Jun 4, 2026
aabea3c
Merge pull request #176 from StatisticsFinland/feature/dependency-upd…
sakari-malkki Jun 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,279 changes: 646 additions & 633 deletions package-lock.json

Large diffs are not rendered by default.

32 changes: 19 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@statisticsfinland/pxvisualizer",
"version": "1.4.5",
"version": "1.4.8",
"description": "Component library for visualizing PxGraf data",
"main": "./dist/pxv.cjs",
"jestSonar": {
Expand Down Expand Up @@ -47,12 +47,12 @@
"license": "Apache-2.0",
"devDependencies": {
"@babel/core": "^7.28.4",
"@storybook/addon-a11y": "^10.2.17",
"@storybook/addon-docs": "^10.2.17",
"@storybook/addon-links": "^10.2.17",
"@storybook/addon-a11y": "^10.3.5",
"@storybook/addon-docs": "^10.3.5",
"@storybook/addon-links": "^10.3.5",
"@storybook/addon-webpack5-compiler-swc": "^4.0.2",
"@storybook/react": "^10.2.17",
"@storybook/react-webpack5": "^10.2.17",
"@storybook/react": "^10.3.5",
"@storybook/react-webpack5": "^10.3.5",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.3.0",
"@types/file-saver": "^2.0.7",
Expand All @@ -62,24 +62,25 @@
"@types/styled-components": "^5.1.34",
"@types/uuid": "^10.0.0",
"babel-loader": "^10.0.0",
"clean-publish": "^6.0.3",
"clean-publish": "^6.0.5",
"decimal.js": "^10.5.0",
"jest": "^30.2.0",
"jest-environment-jsdom": "^30.2.0",
"jest-junit": "^16.0.0",
"jest-junit": "^17.0.0",
"jest-sonar-reporter": "^2.0.0",
"jest-styled-components": "^7.2.0",
"microbundle": "^0.15.1",
"papaparse": "^5.5.2",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"semver": "^7.7.0",
"storybook": "^10.2.17",
"styled-components": "^6.1.17",
"ts-jest": "^29.2.5",
"storybook": "^10.3.5",
"styled-components": "^6.4.1",
"ts-jest": "^29.4.9",
"ts-node": "^10.9.2",
"typescript": "^5.8.3",
"uuid": "^13.0.0"
"uuid": "^14.0.0",
"yaml": "^1.10.3"
},
"dependencies": {
"decimal.js": "^10.5.0",
Expand All @@ -97,6 +98,11 @@
"visualization"
],
"overrides": {
"serialize-javascript": "^7.0.4"
"brace-expansion": "^2.0.3",
"postcss": "^8.5.10",
"serialize-javascript": "^7.0.4",
"rollup-plugin-typescript2": {
"picomatch": "2.3.1"
}
}
}
44 changes: 44 additions & 0 deletions src/core/chartOptions/Utility/seriesDataBuilder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ describe('Highcharts series builder tests', () => {
width: 10,
}
},
colorIndex: 0,
data: [
{
custom: { "precision": 0, "preliminary": false },
Expand Down Expand Up @@ -131,6 +132,7 @@ describe('Highcharts series builder tests', () => {
width: 10,
},
},
colorIndex: 1,
data: [
{
custom: { "precision": 0, "preliminary": false },
Expand Down Expand Up @@ -168,6 +170,7 @@ describe('Highcharts series builder tests', () => {
width: 10,
},
},
colorIndex: 0,
data: [
{
custom: { "precision": 1, "preliminary": false },
Expand Down Expand Up @@ -203,6 +206,7 @@ describe('Highcharts series builder tests', () => {
const expectedSeries = [
{
animation: false,
colorIndex: 0,
data: [
{
custom: { "precision": 0, "preliminary": false },
Expand All @@ -221,6 +225,7 @@ describe('Highcharts series builder tests', () => {
},
{
animation: false,
colorIndex: 1,
data: [
{
custom: { "precision": 0, "preliminary": false },
Expand All @@ -246,6 +251,7 @@ describe('Highcharts series builder tests', () => {
const expectedSeries = [
{
animation: false,
colorIndex: 0,
data: [
{
custom: { "precision": 1, "preliminary": false },
Expand Down Expand Up @@ -276,4 +282,42 @@ describe('Highcharts series builder tests', () => {

expect(buildColumnChartSeries(simpleQuarterVerticalBarchartViewFixture, 'fi')).toEqual(expectedSeries);
});

it('Should keep color assignment stable when horizontal bar series order is reversed', () => {
const reversedSeries = buildBarChartSeries(simpleGroupHorizontalBarchartViewFixture, 'fi', true);

expect(reversedSeries).toMatchObject([
{
colorIndex: 0,
index: 1,
name: '2015Q1',
type: 'bar'
},
{
colorIndex: 1,
index: 0,
name: '2015Q2',
type: 'bar'
}
]);
});

it('Should keep color assignment stable when column series order is reversed', () => {
const reversedSeries = buildColumnChartSeries(simpleGroupHorizontalBarchartViewFixture, 'fi', true);

expect(reversedSeries).toMatchObject([
{
colorIndex: 0,
index: 1,
name: '2015Q1',
type: 'column'
},
{
colorIndex: 1,
index: 0,
name: '2015Q2',
type: 'column'
}
]);
});
});
2 changes: 2 additions & 0 deletions src/core/chartOptions/Utility/seriesDataBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const buildBarChartSeries = (view: View, locale: string, reverseOrder: bo
view.series.map((s, sIndex) => ({
...commonSeriesOptions(s, view, locale),
...(patternFill && buildPatternObject(sIndex)),
colorIndex: sIndex,
index: reverseOrder ? view.series.length - 1 - sIndex : sIndex,
type: 'bar',
}));
Expand All @@ -21,6 +22,7 @@ export const buildColumnChartSeries = (view: View, locale: string, reverseOrder:
view.series.map((s, sIndex) => ({
...commonSeriesOptions(s, view, locale),
...(patternFill && buildPatternObject(sIndex)),
colorIndex: sIndex,
index: reverseOrder ? view.series.length - 1 - sIndex : sIndex,
type: 'column'
}));
Expand Down
1 change: 1 addition & 0 deletions src/react/components/chart/ErrorInfo.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import { ErrorInfo } from "./ErrorInfo";
import { render } from "@testing-library/react";
import "jest-styled-components";

describe('Rendering test', () => {

Expand Down
10 changes: 8 additions & 2 deletions src/react/components/chart/__snapshots__/ErrorInfo.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@

exports[`Rendering test renders correctly 1`] = `
<DocumentFragment>
<div
class="sc-aXZVf fyUppu"
.c0 {
width: 100%;
position: relative;
font-family: 'Barlow Semi Condensed';
}

<div
class="c0"
>
<h1>
Kuviota ei voitu muodostaa
Expand Down
Loading
Loading