简体   繁体   English

在图表点上显示自定义工具提示

[英]displaying custom tooltip on chart points

I am looking for a chat library where i can show custom tool tips on chart points. 我正在寻找一个聊天库,可以在图表上显示自定义工具提示。 and can give click events on axis and points. 并可以给出有关轴和点的单击事件。

I have wasted lot of my time for Google all these but can't find all these feature in chart library. 我在Google上花了很多时间,但在图表库中找不到所有这些功能。

Please suggest me chart api which have all such features. 请建议我具有所有这些功能的图表API。

Use Open Flash Chart 2 使用Open Flash Chart 2

It's Basic features are : 它的基本功能是:

It provides functions for custom Tool-tips, user interactivity and data exploration 它提供了用于自定义工具提示,用户交互性和数据浏览的功能

you can re-size the charts 您可以调整图表大小

Can save the chart as an image 可以将图表另存为图像

You can highlight or emphasize one (or many) points 您可以突出或强调一个(或多个)点

You can Perform click events on it's elements. 您可以对其元素执行点击事件。

You can use tooltips with Google's Visualization Chart. 您可以在Google的可视化图表中使用工具提示。 As an example, the following adds a tooltip to a bar chart: 例如,以下内容将工具提示添加到条形图中:

function drawVisualization() {
    data = new google.visualization.DataTable()
    data.addColumn('string', 'Date');
    data.addColumn('number');
    data.addColumn({type:'string',role:'tooltip'});
    data.addRow();
    base = 10;
    data.setValue(0, 0, 'Datapoint1');
    data.setValue(0, 1, base++);
    data.setValue(0, 2, " This is my tooltip1 ");

    data.addRow();
    data.setValue(1, 0, 'Datapoint2');
    data.setValue(1, 1, base++);
    data.setValue(1, 2, "This is my second tooltip2");

    // Draw the chart.
    var chart = new google.visualization.BarChart(document.getElementById('visualization'));
    chart.draw(data, {legend:'none', width:600, height:400});
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM