Skip to content

Commit 8997ccb

Browse files
committed
Updated README.md
1 parent 99844a1 commit 8997ccb

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

README.md

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,46 @@
11
# SharpAstrology.HumanDesign.BlazorComponents - A Blazor component library for SharpAstrology.HumanDesign
22

3+
The goal of this package is to provide typical human design components. Contributions for alternative charts are welcome.
4+
5+
## How to use the chart in Blazor?
36
```C#
47
@using SharpAstrology.DataModels
8+
@using SharpAstrology.Enums
59
@using SharpAstrology.Ephemerides
610
@using SharpAstrology.HumanDesign.BlazorComponents
711

8-
9-
<HumanDesignGraph Chart="chart" Height="800px"/>
12+
<PageTitle>Human Design Chart Example</PageTitle>
13+
14+
15+
<HumanDesignGraph Chart="chart" Height="800px"
16+
CenterColorMap="_centerColorMap"
17+
FirstComparerColor="@firstComparerColor"
18+
SecondComparerColor="@secondComparerColor"
19+
/>
1020

1121

1222
@code
1323
{
1424
[Inject] SwissEphemeridesService EphService { get; set; }
1525
private HumanDesignChart chart;
1626

27+
// These are the default colors and optional parameters.
28+
private readonly string firstComparerColor = "#000000";
29+
private readonly string secondComparerColor = "#ff4081";
30+
private Dictionary<Centers, string> _centerColorMap = new()
31+
{
32+
[Centers.Root] = "#E88835",
33+
[Centers.Sacral] = "#FE352C",
34+
[Centers.Emotions] = "#E88835",
35+
[Centers.Spleen] = "#E88835",
36+
[Centers.Heart] = "#FE352C",
37+
[Centers.Self] = "#FFD12B",
38+
[Centers.Throat] = "#E88835",
39+
[Centers.Mind] = "#87FE49",
40+
[Centers.Crown] = "#FFD12B"
41+
};
42+
43+
1744
protected override void OnInitialized()
1845
{
1946
using var eph = EphService.CreateContext();

0 commit comments

Comments
 (0)