[FIXED] [#923] [3.2.1] Charts: ChartLabel.Font issue
Hello,
ChartLabel.Font doesn't work. Code below
Code:
@using Ext.Net;
@using Ext.Net.MVC;
@{
Layout = null;
var X = Html.X();
}
@functions
{
private IEnumerable<object> GetData()
{
return new List<object>
{
new { X = 1, Y = 1 },
new { X = 2, Y = 2 }
};
}
}
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
@(Html.X().ResourceManager().Theme(Theme.CrispTouch))
@(X.Panel()
.Layout("fit")
.Width(500)
.Height(500)
.Items(
X.CartesianChart()
.Store(X.Store()
.Fields(
X.ModelField().Name("X"),
X.ModelField().Name("Y")
)
.Data(GetData())
)
.Axes(
X.NumericAxis()
.Position(Position.Left)
.Fields("Y")
.Grid(true)
.Label(X.ChartLabel()
.Font("600 20px sans-serif")
//.FontFamily("sans-serif")
//.FontSize("20px")
//.FontWeight("600")
),
X.CategoryAxis()
.Position(Position.Bottom)
.Fields("X")
.Grid(true)
)
.Series(
X.AreaSeries()
.XField("X")
.YField("Y")
)
)
)
</body>
</html>