Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed Bar Chart Colors #33

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions packages/demo/src/AppCCP.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@
.set("other", "divers, intersexuell")
.set("unknown", "unbekannt");

const barChartBackgroundColors: string[] = ["#4dc9f6","#3da4c7"];

const vitalStateHeaders: Map<string, string> = new Map<string, string>()
.set("lebend", "alive")
.set("verstorben", "deceased")
Expand Down Expand Up @@ -250,6 +252,7 @@
filterRegex="^[CD].*"
xAxisTitle="Anzahl der Diagnosen"
yAxisTitle="ICD-10-Codes"
backgroundColor={JSON.stringify(barChartBackgroundColors)}
/>
</div>
<div class="chart-wrapper chart-age-distribution">
Expand All @@ -261,6 +264,7 @@
filterRegex="^(1*[12]*[0-9])"
xAxisTitle="Alter"
yAxisTitle="Anzahl der Primärdiagnosen"
backgroundColor={JSON.stringify(barChartBackgroundColors)}
/>
</div>
<div class="chart-wrapper">
Expand All @@ -280,6 +284,7 @@
headers={therapyHeaders}
xAxisTitle="Art der Therapie"
yAxisTitle="Anzahl der Therapien"
backgroundColor={JSON.stringify(barChartBackgroundColors)}
/>
</div>
<div class="chart-wrapper">
Expand All @@ -289,6 +294,7 @@
chartType="bar"
xAxisTitle="Art der Therapie"
yAxisTitle="Anzahl der Therapien"
backgroundColor={JSON.stringify(barChartBackgroundColors)}
/>
</div>
<div class="chart-wrapper">
Expand All @@ -299,6 +305,7 @@
xAxisTitle="Probentypen"
yAxisTitle="Probenanzahl"
filterRegex="^(?!(tissue-other|buffy-coat|peripheral-blood-cells|dried-whole-blood|swab|ascites|stool-faeces|saliva|liquid-other|derivative-other))"
backgroundColor={JSON.stringify(barChartBackgroundColors)}
>
<div class="sample-information-text">* Es sind in der Regel auch FFPE-Gewebeproben verfügbar</div>
</lens-chart>
Expand Down
Loading