Oct 28, 2015, 12:39 PM
[OPEN] [#930] [3.2.1] VerticalMarker plugin issue
Hello,
It seems that the VericalMarker plugin doesn't work. Example below:
It seems that the VericalMarker plugin doesn't work. Example below:
@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 },
new { X = 3, Y = 2 },
new { X = 3, Y = 3 }
};
}
}
<!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()
.Interactions(X.ItemHighlightInteraction())
.Store(X.Store()
.Fields(
X.ModelField().Name("X"),
X.ModelField().Name("Y")
)
.Data(GetData())
)
.Axes(
X.NumericAxis()
.Position(Position.Left)
.Fields("Y")
.Grid(true),
X.CategoryAxis()
.Position(Position.Bottom)
.Fields("X")
.Grid(true)
)
.Series(
X.LineSeries()
.XField("X")
.YField("Y")
.Marker(X.CircleSprite().Radius(4))
.HighlightConfig(X.CircleSprite())
)
.Plugins(
X.VerticalMarker().Snap(true).ShowXLabel(false)
)
)
)
</body>
</html>
Last edited by Daniil; Oct 29, 2015 at 1:56 PM.
Reason: [OPEN] [#930] [3.2.1]