Frederick Posted June 15, 2021 Share Posted June 15, 2021 I have a TUniChart with a TUniBar3DSeries. The values assigned to the bar are all integers but the Y-axis shows decimal portions. How do I remove them? Note: I have included a testcase. -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1549) chart.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 15, 2021 Share Posted June 15, 2021 12 hours ago, Frederick said: I have a TUniChart with a TUniBar3DSeries. The values assigned to the bar are all integers but the Y-axis shows decimal portions. How do I remove them? Note: I have included a testcase. Hello, Try this approach for now. chtTran -> ClientEvents -> ExtEvents -> Ext.chart.CartesianChart [chart] -> function chart.redraw: function chart.redraw(sender, eOpts) { this.axes[0].setRenderer(function(d, b, c, f) { if (Ext.isArray(d.cLables)) { var a = d.uLastIx; if (f === null) { a = 0 } d.uLastIx = a + 1; if (a < d.cLables.length) { return d.cLables[a] } } if (d.hideLabel == true) { return "" } if (Ext.isNumber(b)) { return Ext.util.Format.number(b, "#") } return b }) } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 15, 2021 Share Posted June 15, 2021 Quote Link to comment Share on other sites More sharing options...
Frederick Posted June 16, 2021 Author Share Posted June 16, 2021 Thanks. This achieves what I want. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.