同步工具提示热图Holoviews

时间:2019-05-25 22:03:01

标签: python heatmap holoviews

我从以下csv创建了2个热点图(每年一个) https://drive.google.com/file/d/1JRgKCMZsv_e8UifbAz-OuLteBrdZTulb/view?usp=sharing使用此代码

const regex = /(mystring\/([0-9]{10}))/gm;
const str = `hello mystring/1234567890 hello world mystring/2345678901 hellomystring/1234567890 hello world mystring/2345678901 hello`;
let m;

while ((m = regex.exec(str)) !== null) {
    // This is necessary to avoid infinite loops with zero-width matches
    if (m.index === regex.lastIndex) {
        regex.lastIndex++;
    }
    
    // The result can be accessed through the `m`-variable.
    m.forEach((match, groupIndex) => {
        console.log(`Found match, group ${groupIndex}: ${match}`);
    });
}

当我将鼠标悬停在第一个热图上的一个单元格上以显示工具提示以及第二个热图上的相应单元格时,有人知道一种方法吗?

enter image description here

谢谢。

0 个答案:

没有答案
相关问题