Announcement

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

    Can't find DrawnValue class from ver 3.0p

    Hello,

    I am using SmartGWT pro 3.0p(SmartClient Version: v8.2p_2012-10-12/Pro Deployment (built 2012-10-12)) and want to use DrawnValue class to display data value from FacetChart as below code. But I was unable to find DrawnValue class and FacetChart.getNearestDrawnValue() method in my platfrom. Please let me know how I can display the value when hover or click.

    =======================================================
    chart.setPointClickHandler(new ChartPointClickHandler()
    {
    public void onPointClick(ChartPointClickEvent chartPointClickEvent)
    {
    DrawnValue nearestDrawnValue = chart.getNearestDrawnValue();

    try{
    FacetValueMap facetValues = nearestDrawnValue.getFacetValues();

    String[] facets = facetValues.getFacetIds();

    Log.warn("Clicked record, value was " + chartPointClickEvent.getValue());
    StringBuilder facetNames = new StringBuilder();
    for (String facet : facets){
    facetNames.append("\n'").append(facet).append("'");
    }
    Log.warn("\n\n" + facetNames.toString());
    }
    catch (Throwable t){
    Log.error("Error getting facetValues: ", t);
    }
    }
    });

    =======================================================

    #2
    This is because this feature was introduced in 3.1 or later, so you need to download the new version.

    Comment

    Working...
    X