ant-design-blazor / ant-design-blazor/ant-design-charts-blazor

Chart Title and Description is not Displayed

Aperta
#78 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
186
Fork
44
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi,
I have got an issue when displaying the title and description of the cart.
Here is a simple code snippet. Please let me know what is missing in my code. I did everything as described in the documentation.

`@page "/"

@code{
LineConfig config;

object[] data;

protected override void OnInitialized()
{

SetChartConfigurations();

data = new object[] {
new { year= "1991", value= 3 },
new { year= "1992", value= 4 },
new { year= "1993", value= 3.5 },
new { year= "1994", value= 5 },
new { year= "1995", value= 4.9 },
new { year= "1996", value= 6 },
new { year= "1997", value= 7 },
new { year= "1998", value= 9 },
new { year= "1999", value= 13 },
};
}

private void SetChartConfigurations()
{
config = new LineConfig()
{

IsStack=true,
Title = new AntDesign.Charts.Title()
{
Visible = true,
Text = "Test1",
Style = new TextStyle()
{
FontFamily = "arial",
FontSize = 16
}
},
Description = new AntDesign.Charts.Description()
{
Visible = true,
Text = "Test1",
Style = new TextStyle()
{
FontFamily = "arial",
FontSize = 8
}
},
Padding = "auto",
ForceFit = true,
XField = "year",
YField = "value",
Smooth = true
};
}
}
`

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.