Gerardo Arana Posted June 30, 2021 Share Posted June 30, 2021 Hello, I have a TUnichart, how do I show the Y scale with 3 decimals, what happens is that I have 3 lines where I have a max of 0.020, min of 0.001 and the values in that range Now it looks like this. Link to comment Share on other sites More sharing options...
Sherzod Posted July 1, 2021 Share Posted July 1, 2021 3 hours ago, Gerardo Arana said: I have a TUnichart, how do I show the Y scale with 3 decimals, what happens is that I have 3 lines where I have a max of 0.020, min of 0.001 and the values in that range Hello, Can you try this approach? UniChart -> 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, "#.000") } return b }) } Link to comment Share on other sites More sharing options...
Gerardo Arana Posted July 1, 2021 Author Share Posted July 1, 2021 Thanks, it worked for the labels, But it is rounding the values, when in reality I have other values. All values are rounded to two decimal places. Link to comment Share on other sites More sharing options...
Sherzod Posted July 1, 2021 Share Posted July 1, 2021 Could you please make a simple testcase to see the issue? Link to comment Share on other sites More sharing options...
Gerardo Arana Posted July 1, 2021 Author Share Posted July 1, 2021 Hello, Attached as requested ChartDemo - DB.rar Link to comment Share on other sites More sharing options...
Sherzod Posted July 1, 2021 Share Posted July 1, 2021 27 minutes ago, Gerardo Arana said: Attached as requested ChartDemo - DB.rar 93.05 kB · 1 download We need to check. Since the data is already loaded as rounded values. Link to comment Share on other sites More sharing options...
Gerardo Arana Posted July 1, 2021 Author Share Posted July 1, 2021 The current Chart looks like this The Chart should look like this ..: I attach the excel of as an example Libro1.xls Link to comment Share on other sites More sharing options...
Gerardo Arana Posted July 1, 2021 Author Share Posted July 1, 2021 Here the excel with the two examples with three decimals and as it is being graphed unigui, rounding gives two decimal places Libro1.xls Link to comment Share on other sites More sharing options...
Gerardo Arana Posted July 2, 2021 Author Share Posted July 2, 2021 They need something more ..? Link to comment Share on other sites More sharing options...
Sherzod Posted July 10, 2021 Share Posted July 10, 2021 Hello, Sorry for the late response. At the moment, we consider two digits after decimal point. I will open a ticket in the support portal. Link to comment Share on other sites More sharing options...
Sherzod Posted July 10, 2021 Share Posted July 10, 2021 I opened the ticket. Link to comment Share on other sites More sharing options...
Gerardo Arana Posted August 6, 2021 Author Share Posted August 6, 2021 Dear, some notice from this theme Link to comment Share on other sites More sharing options...
Recommended Posts