Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Nov 2009
    Posts
    4
    Vote Rating
    0
    dsitkin is on a distinguished road

      0  

    Default [CLOSED] Horizontal Stacked Bar Chart Tooltip Issue

    [CLOSED] Horizontal Stacked Bar Chart Tooltip Issue


    When mousing over the stack values in a horizontal stacked bar chart, the tooltip text is not updated correctly at the boundary between stack values. Instead, the text is updated well before or after the cursor passes over the boundary. This is confusing to users because the tooltip text does not accurately represent the currently highlighted value.

    GXT Version: 2.0.1
    GWT Version: 1.7.0

    Mode: Hosted and Web

    Browsers: Firefox 3.5.4, IE6 and IE7
    Flash Version: 10

    OS: Windows XP

    Code Sample

    public
    class LayoutTest implements EntryPoint {

    publicvoid onModuleLoad() {
    RootPanel.get().add(
    new HorizontalStackedChart());
    }

    class HorizontalStackedChart extends ContentPanel {

    public HorizontalStackedChart() {
    setBorders(
    false);
    setBodyBorder(
    false);
    setHeaderVisible(
    false);
    setHeight(200);
    setWidth(500);
    }

    @Override

    protectedvoid onRender(Element parent, int index) {
    super.onRender(parent, index);
    XAxis xAxis =
    new XAxis();
    xAxis.setMin(0);
    xAxis.setMax(800);
    xAxis.setSteps(100);

    YAxis yAxis =
    new YAxis();
    yAxis.setMin(0);
    yAxis.setMax(1);
    yAxis.setSteps(1);

    HorizontalStackedBarChart barChart =
    new HorizontalStackedBarChart();
    barChart.setTooltip(
    "#key# - #val#");

    List<HorizontalStackedBarChart.StackValue> data =
    new ArrayList<HorizontalStackedBarChart.StackValue>();
    data.add(
    new HorizontalStackedBarChart.StackValue(0, 100, "#AF1E2D", "Text 1"));
    data.add(
    new HorizontalStackedBarChart.StackValue(100, 300, "#006B54", "Text 2"));
    data.add(
    new HorizontalStackedBarChart.StackValue(300, 700, "#003F87", "Text 3"));
    HorizontalStackedBarChart.StackValue[] dataArray = data.toArray(
    new HorizontalStackedBarChart.StackValue[0]);

    barChart.addStack(dataArray);

    ChartModel model =
    new ChartModel();
    model.setXAxis(xAxis);
    model.setYAxis(yAxis);
    model.addChartConfig(barChart);

    Chart chart =
    new Chart("resources/chart/open-flash-chart.swf");
    chart.setChartModel(model);

    add(chart);

    barChart.addChartListener(
    new ChartListener(){

    @Override

    publicvoid chartClick(ChartEvent ce) {
    // TODO Auto-generated method stub
    super.chartClick(ce);
    Window.alert(
    "Chart Click");
    }

    @Override

    publicvoid handleEvent(ChartEvent ce) {
    // TODO Auto-generated method stub

    super.handleEvent(ce);
    Window.alert(
    "Chart Event");
    }});
    }
    }
    }


  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    GXT is not displaying the tooltip. This is done by OFC. Marking this as closed for GXT.

    We are looking into updateing the used OFC version for 2.1

Thread Participants: 1