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 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 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? 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. 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. Link to comment Share on other sites More sharing options...
NNPaulo Posted August 23, 2019 Author Share Posted August 23, 2019 Any news? 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. 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. Link to comment Share on other sites More sharing options...
NNPaulo Posted August 26, 2019 Author Share Posted August 26, 2019 Any News? 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? 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. 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. 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 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? 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. 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 ? Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted August 28, 2019 Share Posted August 28, 2019 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now