-
-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ (discrete bar) hide horizontal axis (#4371)
* ✨ (discrete bar) hide horizontal axis * 🔨 remove relative mode from discrete bar chart configs * 🤖 style: prettify code
- Loading branch information
1 parent
57ea52e
commit 0fbc2ea
Showing
2 changed files
with
23 additions
and
27 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
db/migration/1735896576517-RemoveRelativeModeFromDiscreteBarCharts.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm" | ||
|
||
export class RemoveRelativeModeFromDiscreteBarCharts1735896576517 | ||
implements MigrationInterface | ||
{ | ||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(` | ||
-- sql | ||
update chart_configs | ||
set | ||
patch = json_remove(patch, '$.stackMode'), | ||
full = json_remove(full, '$.stackMode') | ||
where | ||
chartType = 'DiscreteBar' | ||
and full ->> '$.stackMode' = 'relative'; | ||
`) | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-empty-function | ||
public async down(): Promise<void> {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters