NNPaulo Posted August 22, 2019 Share Posted August 22, 2019 I need change the label of UniChart Axis. Graph.bmp The value is in seconds and i need change to HH:MM:SS ex 1800 sec -> 00:46:40 Quote Link to comment Share on other sites More sharing options...
NNPaulo Posted August 22, 2019 Author Share Posted August 22, 2019 Example project ChartSample01.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 22, 2019 Share Posted August 22, 2019 4 minutes ago, NNPaulo said: The value is in seconds and i need change to HH:MM:SS ex 1800 sec -> 00:46:40 ... 2500,0 2800,0 3100,0 - are they seconds? Quote Link to comment Share on other sites More sharing options...
NNPaulo Posted August 22, 2019 Author Share Posted August 22, 2019 I Sherzod, thanks for answer. Yes they are. Possible the solution is the ExtJS rendered function of chart, but i need help. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 22, 2019 Share Posted August 22, 2019 44 minutes ago, NNPaulo said: Yes they are. Possible the solution is the ExtJS rendered function of chart, but i need help. Need to analyze. Quote Link to comment Share on other sites More sharing options...
NNPaulo Posted August 23, 2019 Author Share Posted August 23, 2019 Any news? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 23, 2019 Share Posted August 23, 2019 1 hour ago, NNPaulo said: Any news? Sorry, no news yet. Quote Link to comment Share on other sites More sharing options...
NNPaulo Posted August 23, 2019 Author Share Posted August 23, 2019 Thanks for answer. In: https://docs.sencha.com/extjs/6.7.0/modern/Ext.chart.series.Bar.html ... axes: [{ type: 'numeric', position: 'left', title: { text: 'Sample Values', fontSize: 15 }, fields: 'value', renderer: function(axis,label,layoutContext,lastLabel){ return lastLabel + ' KB'; } }, { type: 'category', ... Change the label of Chart, but i try change ... beforeinit in my project, but not working. Quote Link to comment Share on other sites More sharing options...
NNPaulo Posted August 26, 2019 Author Share Posted August 26, 2019 Any News? Quote Link to comment Share on other sites More sharing options...
NNPaulo Posted August 28, 2019 Author Share Posted August 28, 2019 I Sherzod, any news about this? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 28, 2019 Share Posted August 28, 2019 59 minutes ago, NNPaulo said: I Sherzod, any news about this? Hi, I haven't succeeded yet. Quote Link to comment Share on other sites More sharing options...
NNPaulo Posted August 28, 2019 Author Share Posted August 28, 2019 Ok, but please don't forget this question, is very important for me. Thanks. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted August 28, 2019 Share Posted August 28, 2019 Hi Can you try this? MainForm -> Script : function _rndAxis_(d, b, c, f) { if (Ext.isNumber(b)) { var date = new Date(null); date.setSeconds(b); var timeString = date.toISOString().substr(11, 8); return timeString; } return b; } 1 Quote Link to comment Share on other sites More sharing options...
NNPaulo Posted August 28, 2019 Author Share Posted August 28, 2019 Hi Hayri; Yes is working! I try in my test case of Dephi and in my main project in C++Builder and is working! Thank you very much! Where i can find more information about this _rndAxis_ and another functions that i can use to customize the axis of chart? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted August 28, 2019 Share Posted August 28, 2019 _rndAxis_ is a unigui function to render axis. I just override it. Quote Link to comment Share on other sites More sharing options...
NNPaulo Posted August 28, 2019 Author Share Posted August 28, 2019 Ok I suspected of that, and parameters are ? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted August 28, 2019 Share Posted August 28, 2019 Quote Link to comment Share on other sites More sharing options...
SISBLU Software Posted September 21, 2020 Share Posted September 21, 2020 Please, how do I appear Decimal numeric 18.2? Ex: 12.500,10 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.