dbf_usr Posted July 7, 2022 Share Posted July 7, 2022 Как в UniChart -> UniLineSeries выводить подсказку при наведении мышью на вершину? В подсказке значение это самой вершины. Как должно быть: Всем за ранее благодарен за ответы! Link to comment Share on other sites More sharing options...
Sherzod Posted July 8, 2022 Share Posted July 8, 2022 10 hours ago, dbf_usr said: Как в UniChart -> UniLineSeries выводить подсказку при наведении мышью на вершину? Добрый день, Не пробовали искать ответы на форуме?! Link to comment Share on other sites More sharing options...
dbf_usr Posted July 8, 2022 Author Share Posted July 8, 2022 51 minutes ago, Sherzod said: Добрый день, Не пробовали искать ответы на форуме?! Простите, ничего не нашел по этой проблеме. Если Вам не трудно, дайте пожалуйста ссылку. Link to comment Share on other sites More sharing options...
Sherzod Posted July 8, 2022 Share Posted July 8, 2022 49 minutes ago, dbf_usr said: Простите, ничего не нашел по этой проблеме. Если Вам не трудно, дайте пожалуйста ссылку. Например, этот пост: 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')); } } } Link to comment Share on other sites More sharing options...
dbf_usr Posted July 8, 2022 Author Share Posted July 8, 2022 12 minutes ago, Sherzod said: Например, этот пост: 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')); } } } Очень благодарен! Спасибо! Link to comment Share on other sites More sharing options...
dbf_usr Posted July 8, 2022 Author Share Posted July 8, 2022 В примерах не раскрыта проблема - обработки события для нескольких графиков. Событие работает только для одного "А" или "В" графика. Проблема актуальна! Link to comment Share on other sites More sharing options...
dbf_usr Posted July 8, 2022 Author Share Posted July 8, 2022 3 hours ago, Sherzod said: Например, этот пост: 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')); } } } В примерах не раскрыта актуальная проблема - обработки события для нескольких графиков. Событие работает только для одного "А" или "В" графика. Проблема актуальна! Есть ли какие-то варианты? Link to comment Share on other sites More sharing options...
Sherzod Posted July 8, 2022 Share Posted July 8, 2022 1 hour ago, dbf_usr said: В примерах не раскрыта проблема - обработки события для нескольких графиков. Событие работает только для одного "А" или "В" графика. В вышеуказанном посте же есть: config.series[0] для A config.series[1] для B Меняется и Индекс и Буква... Link to comment Share on other sites More sharing options...
dbf_usr Posted July 8, 2022 Author Share Posted July 8, 2022 20 minutes ago, Sherzod said: В вышеуказанном посте же есть: config.series[0] для A config.series[1] для B Меняется и Индекс и Буква... Делаю так: 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 July 8, 2022 Share Posted July 8, 2022 12 minutes ago, dbf_usr said: Возникает ошибка. Где я не правильно делаю? Не хватает точки с запятой перед config.series[1] Link to comment Share on other sites More sharing options...
dbf_usr Posted July 8, 2022 Author Share Posted July 8, 2022 Спасибо!!!!! 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