Apr 12, 2017, 2:44 AM
[CLOSED] ChartLabel.RotationDegrees Not Work
The default label of barseries is vertical way but we want it present as horizonal with X.ChartLabel().RotationDegrees(90) which doesn't work.
Code
The Code we try to rotate it.
Ted
Code
X.CartesianChart()
.Height(370)
.AnimationConfig(new AnimConfig { Duration = 250, Easing = Easing.EaseOut })
.Store(
storeAllRadioDevicesBar
).Axes(
X.NumericAxis()
.Position(Position.Left)
.Fields("數é‡")
.Minimum(0)
.Renderer(r => r.Handler = "return (((label%1==0)?label.toFixed(0):'')+((Ext.getCmp('ComboBoxReportType' + handlerPrint_Report5.getVariable()).getValue()=='申請數é‡')?'':'%'));")
.Grid(true),
X.CategoryAxis()
.Position(Position.Bottom)
.Fields("å–®ä½")
.Grid(true)
.Renderer(r => r.Handler = "return (handlerPrint_Report5.renderLabel(label));")
).Series(
X.BarSeries()
.XField("å–®ä½")
.YField("數é‡")
.StyleSpec(
X.SeriesSprite().Opacity(0.8).MinGapWidth(10))
.HighlightConfig(
X.Sprite()
.FillStyle("rgba(249, 204, 157, 1.0)")
.StrokeStyle("black")
.LineWidth(2)
).Label(
X.ChartLabel()
.Display(SeriesLabelDisplay.InsideEnd)
.Field("數é‡")
).Tooltip(
X.ChartTip()
.TrackMouse(true)
.Renderer(r => r.Fn = "handlerPrint_Report5.barAllTipRenderer")
)
.Listeners(lis => {
lis.ItemDblClick.Handler = "handlerPrint_Report5.onItemDblClick(item.record);";
})
)
.Plugins(
X.ChartItemEvents()
)
The Code we try to rotate it.
X.ChartLabel()
.Display(SeriesLabelDisplay.InsideEnd)
.Field("數é‡")
.RotationDegrees(90)
Any suggestion?Ted
Last edited by fabricio.murta; Apr 13, 2017 at 2:21 AM.