Skip to content

Commit

Permalink
Merge pull request #33 from samply/fix/barColorCCP
Browse files Browse the repository at this point in the history
Changed Bar Chart Colors
  • Loading branch information
patrickskowronekdkfz authored Jan 12, 2024
2 parents 95bfae6 + 85de681 commit cc973e2
Showing 1 changed file with 7 additions and 0 deletions.
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)}
>
</lens-chart>
</div>
Expand Down

0 comments on commit cc973e2

Please sign in to comment.