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

Chart Title and Description is not Displayed

オープン
#78 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
186
フォーク
44
PR マージ指標
30日以内にマージされた PR はありません

説明

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
};
}
}
`

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。