NizamUlMulk 1 Posted September 26, 2019 Share Posted September 26, 2019 I've 4 Series series in UniChart, with data for 4 years, each one is 1 year. (for anything type: area, bar, pie, scatter, radar, etc.) When mouse move over the series, and values triggers SeriesMouseOver(Sender: TUniCustomChart; Series: TUniChartSeries; Index: Integer; Value: Variant; X, Y, PageX, PageY: Integer); But always the series and Index are same, never changes. Only first serie is recognizing. I need the others too.! I try with tooltips in javascript (from Delphi): //graphic1 is TuniChart component graphic1.ClientEvents.UniEvents.Add( 'chart.beforeInit=function chart.beforeInit(sender, config){'+ ' config.innerPadding = {left: 4,right: 5};'+ ' if (config.series.length) { '+ ' for (i = 0; i < config.series.length; i++) {'+ ' config.series[i].tooltip = {'+ ' trackMouse: true,'+ ' width: 150,'+ ' renderer: function(tip, item) {'+ ' tip.setTitle(item.get(''LL''));'+ ' tip.update(''Valor: '' + item.get(String.fromCharCode(65+i)));'+ ' }'+ ' }'+ ' }'+ ' }'+ '}'); But when mouse moves over the graphic... only values from 1 serie shows, and same value when moving over anothers series. How can catch de current serie and current value? Quote Link to post Share on other sites
Sherzod 1188 Posted September 27, 2019 Share Posted September 27, 2019 8 hours ago, NizamUlMulk said: I try with tooltips in javascript (from Delphi): Hi, Can you make a simple testcase?! Quote Link to post Share on other sites
NizamUlMulk 1 Posted September 27, 2019 Author Share Posted September 27, 2019 8 hours ago, Sherzod said: Hi, Can you make a simple testcase?! Adj. zip file. In this case on mouse move shows tooltip, and on mouse over fires shows values in form caption. ChartDemo.zip Quote Link to post Share on other sites
Sherzod 1188 Posted September 27, 2019 Share Posted September 27, 2019 Thanks for the testcase. We will check. Quote Link to post Share on other sites
NizamUlMulk 1 Posted October 3, 2019 Author Share Posted October 3, 2019 Have you tested? I'm awaiting and must deliver to clients soon. Awhile ... exists another component as Teechart for web? Quote Link to post Share on other sites
Sherzod 1188 Posted October 4, 2019 Share Posted October 4, 2019 13 hours ago, NizamUlMulk said: Have you tested? I'm awaiting and must deliver to clients soon. Yes, sorry for the late reply. We will try to give you a solution for this. Quote Link to post Share on other sites
Administrators Farshad Mohajeri 1803 Posted October 4, 2019 Administrators Share Posted October 4, 2019 This issue has been fixed. Quote Link to post Share on other sites
NizamUlMulk 1 Posted October 6, 2019 Author Share Posted October 6, 2019 How can I obtain the actualization? Quote Link to post Share on other sites
Sherzod 1188 Posted October 6, 2019 Share Posted October 6, 2019 In the next build. Quote Link to post Share on other sites
NizamUlMulk 1 Posted October 7, 2019 Author Share Posted October 7, 2019 ;'( Quote Link to post Share on other sites
NizamUlMulk 1 Posted February 3, 2020 Author Share Posted February 3, 2020 On 10/6/2019 at 12:56 PM, Sherzod said: In the next build. Hi Sherzod, can I get update for this component? Quote Link to post Share on other sites
Sherzod 1188 Posted February 3, 2020 Share Posted February 3, 2020 Hi, Sorry, which build are you using? Quote Link to post Share on other sites
NizamUlMulk 1 Posted February 4, 2020 Author Share Posted February 4, 2020 22 hours ago, Sherzod said: Hi, Sorry, which build are you using? uni-1.50.0.1482 Quote Link to post Share on other sites
Sherzod 1188 Posted February 4, 2020 Share Posted February 4, 2020 1 hour ago, NizamUlMulk said: uni-1.50.0.1482 Can you upgrade to the latest build and test? Quote Link to post Share on other sites
NizamUlMulk 1 Posted February 4, 2020 Author Share Posted February 4, 2020 1 hour ago, Sherzod said: Can you upgrade to the latest build and test? it is the latest version that I am allowed to download Quote Link to post Share on other sites
picyka 31 Posted March 22, 2020 Share Posted March 22, 2020 Hello, I need to put tips on my charts, this example is cool, for example, pie chart or value field is undefined, did you fix it? Quote Link to post Share on other sites
Sherzod 1188 Posted March 22, 2020 Share Posted March 22, 2020 12 minutes ago, picyka said: Hello, I need to put tips on my charts, this example is cool, for example, pie chart or value field is undefined, did you fix it? Hello, Do you have a test example to test? Quote Link to post Share on other sites
picyka 31 Posted March 22, 2020 Share Posted March 22, 2020 The example is attached in that post, last pie chart .. http://forums.unigui.com/applications/core/interface/file/attachment.php?id=7854 Quote Link to post Share on other sites
picyka 31 Posted March 22, 2020 Share Posted March 22, 2020 I discovered the solution function chart.beforeInit(sender, config) { if (config.series.length) { for (i = 0; i < config.series.length; i++) { config.series.tooltip = { trackMouse: true, width: 150, renderer: function(tip, item) { tip.setTitle(item.get('LL')); tip.update('Quantidade: ' + item.get('A')); console.log(item); } } } } } Quote Link to post Share on other sites
Sherzod 1188 Posted March 22, 2020 Share Posted March 22, 2020 Yes. http://forums.unigui.com/index.php?/topic/10666-tooltip-on-chart/&do=findComment&comment=56122 Quote Link to post Share on other sites
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.