loQsoft Posted November 17, 2021 Share Posted November 17, 2021 @Serzod, Hello Serzod; it works very well tooltip on the barchart with this code work very well series 0 function chart.beforeInit(sender, config) { config.series[0].tooltip = { trackMouse: true, width: 400, renderer: function(tip, item) { tip.setTitle(item.get('LL')); tip.update('DİF: ' + item.get('A')); } } } and for serie 1 function chart.beforeInit(sender, config) { config.series[1].tooltip = { trackMouse: true, width: 400, renderer: function(tip, item) { tip.setTitle(item.get('LL')); tip.update('DİF: ' + item.get('B')); } } } But how i can use this code for 2 series i mean, i want to show value tooltip when i mouse, for 2 series i.e. I want to see data from two series at the same time. but I can show the series one by one. Is it possible to show values for 2 series at same time ? Best Regards, Link to comment Share on other sites More sharing options...
Sherzod Posted November 17, 2021 Share Posted November 17, 2021 Hi, I will try to analyze. Link to comment Share on other sites More sharing options...
loQsoft Posted November 17, 2021 Share Posted November 17, 2021 4 minutes ago, Sherzod said: Hi, I will try to analyze. Thank you very much, Best Regards, Link to comment Share on other sites More sharing options...
Sherzod Posted November 17, 2021 Share Posted November 17, 2021 4 hours ago, loQsoft said: and for serie 1 UniBarSeries.Stacked = False ? Link to comment Share on other sites More sharing options...
Sherzod Posted November 17, 2021 Share Posted November 17, 2021 1 minute ago, Sherzod said: UniBarSeries.Stacked = False ? 4 hours ago, loQsoft said: Yes, that's what it is. Link to comment Share on other sites More sharing options...
Sherzod Posted November 17, 2021 Share Posted November 17, 2021 4 hours ago, loQsoft said: Is it possible to show values for 2 series at same time ? Maybe you want something like this? function chart.beforeInit(sender, config) { config.series[0].tooltip = { trackMouse: true, width: 400, renderer: function(tip, item) { tip.setTitle(item.get('LL')); tip.update('DİF: ' + item.get('A') + ', ' + item.get('B')); } }; } 1 Link to comment Share on other sites More sharing options...
loQsoft Posted November 17, 2021 Share Posted November 17, 2021 5 hours ago, Sherzod said: Maybe you want something like this? function chart.beforeInit(sender, config) { config.series[0].tooltip = { trackMouse: true, width: 400, renderer: function(tip, item) { tip.setTitle(item.get('LL')); tip.update('DİF: ' + item.get('A') + ', ' + item.get('B')); } }; } Yes Exactly, and Thank you very much @Serzod Best Regards, 1 Link to comment Share on other sites More sharing options...
easegura777 Posted January 13 Share Posted January 13 I need display tip for TuniLineSeries Link to comment Share on other sites More sharing options...
Sherzod Posted January 13 Share Posted January 13 23 minutes ago, easegura777 said: I need display tip for TuniLineSeries Link to comment Share on other sites More sharing options...
easegura777 Posted January 13 Share Posted January 13 1 hour ago, Sherzod said: only works for one series Link to comment Share on other sites More sharing options...
Sherzod Posted January 13 Share Posted January 13 10 minutes ago, easegura777 said: only works for one series Link to comment Share on other sites More sharing options...
easegura777 Posted January 13 Share Posted January 13 4 minutes ago, Sherzod said: Test this solution, but not found function chart.beforeInit(sender, config) { config.series[0].tooltip = { trackMouse: true, width: 120, renderer: function(tip, item) { tip.setTitle(item.get('LL')); tip.update('Значение: ' + item.get('A')); } } config.series[1].tooltip = { trackMouse: true, width: 120, renderer: function(tip, item) { tip.setTitle(item.get('LL')); tip.update('Значение: ' + item.get('B')); } } } Link to comment Share on other sites More sharing options...
Sherzod Posted January 13 Share Posted January 13 Please read the post above more carefully, there is an error, a semicolon is missing... Link to comment Share on other sites More sharing options...
Sherzod Posted January 15 Share Posted January 15 @easegura777 Were you able to resolve the issue? 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