BREAKING drop hardcoded and generated colors#1806
BREAKING drop hardcoded and generated colors#1806santam85 merged 1 commit intovalor-software:masterfrom
Conversation
|
Checks are failing because you only regenerated the macOS (darwin) screenshots. There is a command in the tools folder to regenerate the linux ones using Docker, but it might need some tweaking... |
|
I'm on linux, so I am actually generating linux images: However, I am having trouble to generate the correct screenshots systematically. They sometimes happens to be 1248px wide, whereas they should all be 600px. Could you give it a try on your side ? PS: I suspect a timing issue where a animation is sometimes running while it takes a screenshot. But the canvas is styled to be 600px wide, so I don't get how an animation could change that... 🤷 |
|
Very strange this is happening to me too now. Perhaps an update from Chart.js behaviour when rendering |
|
@PowerKiKi I ended up having to do substantial changes to the demo app, as it seems the e2e flakyness was caused by the canvas being hidden/animating while the chart was initializing in the lazy loaded tabs. See if the new setup works better for you too, I'll start working on fixing unit tests. |
`builtInDefaults` and `baseColors` were dropped. That means that colors will change to be the default as defined by Chart.js, and we will no longer generate colors on the fly. If you need this kind of features, see https://www.chartjs.org/docs/latest/general/colors.html#advanced-color-palettes As discussed in valor-software#1801 (comment)
|
I rebased on top of master, and regenerated screenshots. It can now run consistently every single time on my machine. However I see the CI is still failing... I'll see if I can grab the screen shot generated by CI... |
7833966 to
8fd1b96
Compare
|
I'm getting crazy here. I'm convinced that local e2e is non-flaky. I pushed to CI and it fails. I spend way too much time trying random things with constants failure. And when I'm about to give up, it works ! 🙄 ... so I guess it can be merged ... ? |
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [ng2-charts](https://github.com/valor-software/ng2-charts) | [`^5.0.3` -> `^6.0.0`](https://renovatebot.com/diffs/npm/ng2-charts/5.0.4/6.0.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>valor-software/ng2-charts (ng2-charts)</summary> ### [`v6.0.0`](https://github.com/valor-software/ng2-charts/releases/tag/v6.0.0) [Compare Source](valor-software/ng2-charts@v5.0.4...v6.0.0) #### What’s Changed - BREAKING Tree shakable standalone library ([#​1801](valor-software/ng2-charts#1801)) [@​PowerKiKi](https://github.com/PowerKiKi) Users must import the library in standalone mode - BREAKING drop hardcoded and generated colors ([#​1806](valor-software/ng2-charts#1806)) [@​PowerKiKi](https://github.com/PowerKiKi) Users must migrate to the Colors [plugin](https://www.chartjs.org/docs/latest/general/colors.html) from Chart.js for color generation - Angular 17 ([#​1757](valor-software/ng2-charts#1757)) [@​santam85](https://github.com/santam85) Angular 17 is the minimum version for v6 - Target ES2022 as is done in Angular 17 new projects ([#​1802](valor-software/ng2-charts#1802)) [@​PowerKiKi](https://github.com/PowerKiKi) - Enforce prettier in CI ([#​1804](valor-software/ng2-charts#1804)) [@​PowerKiKi](https://github.com/PowerKiKi) - Drop CHANGELOG.md ([#​1805](valor-software/ng2-charts#1805)) [@​PowerKiKi](https://github.com/PowerKiKi) - Migrate to new control flow syntax ([#​1827](valor-software/ng2-charts#1827)) [@​PowerKiKi](https://github.com/PowerKiKi) - Make defaults type safe ([#​1836](valor-software/ng2-charts#1836)) [@​Cselt](https://github.com/Cselt) - chore(deps-dev): bump [@​types/node](https://github.com/types/node) from 20.11.23 to 20.11.24 ([#​1857](valor-software/ng2-charts#1857)) [@​dependabot](https://github.com/dependabot) - chore(deps-dev): bump [@​types/node](https://github.com/types/node) from 20.11.20 to 20.11.21 ([#̴...

builtInDefaultsandbaseColorswere dropped. That means that colorswill change to be the default as defined by Chart.js, and we will no
longer generate colors on the fly.
If you need this kind of features, see https://www.chartjs.org/docs/latest/general/colors.html#advanced-color-palettes
As discussed in #1801 (comment)
To be merged afer #1804