Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ChartPointHoverCustomizer for dual axis Facet chart.

    I'm using SmartGWT version 4.1p-20141114.
    I've a dual axis chart in which I'm trying to display information about each point when mouse hover on a point.

    In addition to the value of each metric, I've additional information for each metric which I want to access to be displayed in the pop up.

    String hoverHTML(Float value, Record record); from com.smartgwt.client.widgets.chart.ChartPointHoverCustomizer gives me the value and the Record. Since each metric data is inline within the record, I could not find a way to access the the object that has more information about the metric.

    Is there a way to identify which metric or which axis the point being hovered on belongs to? Without that I cannot display additional metric specific information other than the value.

    Thanks,
    Kiran

    #2
    You're right, there's no current foolproof way to get the metric in this case.

    We've added a new getter, getMetricId(), to the ChartPointClickEvent and ChartPointHoverCustomizer classes - but note that this will only be available in 5.0 and later, it will not be backported to 4.1.

    So you'll need to upgrade to make use of it.

    Comment

    Working...
    X