JohanC Posted February 5, 2022 Share Posted February 5, 2022 Hello, I need some help please. I am using theme uni_sencha_classic and ver. 1.90.0.1556 (paid version) With a Radar chart, I use a table with values = SmallInt (max value of data =7 and min value of data =0) I need to show a maximum value of 7 on the chart with intervals of 1 I set parameters Axis A, Major TickSteps = 1 and Max = 7 These parameters shows a Radar with value increments = 0.5 and Max = 6.5 If I change the parameters Axis A, Major TickSteps = 1 and Max = 9 shows a Radar with value increments = 1 My client insists to see Max = 7 with increments = 1 What settings should I change Thank you very much Johan Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 6, 2022 Share Posted February 6, 2022 Hello, We will check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 10, 2022 Share Posted February 10, 2022 Hello, I haven't been able to resolve the "issue" yet. Quote Link to comment Share on other sites More sharing options...
JohanC Posted February 10, 2022 Author Share Posted February 10, 2022 OK thanks, I can imagine that you have many other Tasks, I have no doubt that you will find some time soon. Regards Johan Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 10, 2022 Share Posted February 10, 2022 1 hour ago, JohanC said: OK thanks, I can imagine that you have many other Tasks, I have no doubt that you will find some time soon. Thanks. You can try this approach for now: UniChart -> ClientEvents -> UniEvents -> [chart] -> function chart.beforeInit(sender, config) { config.axes[0].renderer = 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...
JohanC Posted February 10, 2022 Author Share Posted February 10, 2022 Thanks, I will try later today Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 10, 2022 Share Posted February 10, 2022 Okay. Quote Link to comment Share on other sites More sharing options...
JohanC Posted February 10, 2022 Author Share Posted February 10, 2022 Hello again, Thanks, it is a good improvement, even if the increments are still = 0.5 See attached, parameters Axis A, Major TickSteps = 1 and Max = 7 Thanks Johan Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 10, 2022 Share Posted February 10, 2022 Hello, 8 minutes ago, JohanC said: even if the increments are still = 0.5 ? Quote Link to comment Share on other sites More sharing options...
JohanC Posted February 10, 2022 Author Share Posted February 10, 2022 I mean, The Gridlines are at each 0.5 increment Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 11, 2022 Share Posted February 11, 2022 8 hours ago, JohanC said: I mean, The Gridlines are at each 0.5 increment I will try to analyze. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 11, 2022 Share Posted February 11, 2022 13 hours ago, JohanC said: I mean, The Gridlines are at each 0.5 increment Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 11, 2022 Share Posted February 11, 2022 function chart.beforeInit(sender, config) { config.axes[0].maximum = 7; config.axes[0].minimum = 1; config.axes[0].majorTickSteps = config.axes[0].maximum; config.axes[0].renderer = 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...
JohanC Posted February 11, 2022 Author Share Posted February 11, 2022 My request solved Brilliant, thank you very much 1 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.