Hi,
I have a linear type graph where on the PrimaryXAxis axis I represent Datetime type data while on the PrimaryYAxis axis I represent money type data; On the axis PrimaryYAxis I also added a representation of the volumes through the Axes property, which I would need to be able to dynamically set the minimum and maximum; it's possible to do it?
This is my code
@Html.EJS().Chart("containerdue").Rows(rows =>
{
rows.Height("20%").Add();
rows.Height("80%").Add();
}).Axes(ax =>
{
ax.Name("secondary").
RangePadding(Syncfusion.EJ2.Charts.ChartRangePadding.None).
RowIndex(1).
PlotOffset(30).
Title("Price").
LineStyle(ls => ls.Width(0)).Add();
}).Locale("en").ChartArea(area => area.Border(ViewBag.ChartBorder)).Width("100%").TooltipRender("tooltip").UseGroupingSeparator(true).Series(series =>
{
series.Animation(ViewBag.animation).Type(Syncfusion.EJ2.Charts.ChartSeriesType.Line).Width(1).XName("Time").YName("Value").Name("Asset").YAxisName("secondary").Add();
series.Animation(ViewBag.animation).Type(Syncfusion.EJ2.Charts.ChartSeriesType.Column).Width(1).XName("Time").YName("Volume24h").Name("Volume").Add();
}).PrimaryXAxis(px => px.ValueType(Syncfusion.EJ2.Charts.ValueType.DateTime)
.MajorGridLines(mgx=> mgx.Width(0))
.EdgeLabelPlacement(Syncfusion.EJ2.Charts.EdgeLabelPlacement.Shift)
.MajorTickLines(mtx => mtx.Width(0))
.MinorTickLines(mtlx => mtlx.Width(0))
.LineStyle(lsx => lsx.Width(0))
).PrimaryYAxis(py => py.RangePadding(Syncfusion.EJ2.Charts.ChartRangePadding.None)
.StripLines(sl => sl.StartFromAxis(true).Color("black").Opacity(0.03).Visible(true).ZIndex(Syncfusion.EJ2.Charts.ZIndex.Behind))
.MajorTickLines(mt=> mt.Width(0))
.MinorTickLines(mtl=>mtl.Width(0))
.LineStyle(ls=>ls.Width(0))
.Title("Volume")
.ValueType(Syncfusion.EJ2.Charts.ValueType.Double)
).Tooltip(tt => tt.Enable(true).Header(ViewBag.Asset)).Load("chartLoad").Loaded("charLoaded").Render()
Thanks so much
Barbara Inzitari