Announcement

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

    Smart Gwt does not show on Hover Values for stacked Graph

    I had a test case where the data Values for stacked Graph are("Cost1", 160303),("Cost2", 234234),("Cost3",0.1)
    chart.setShowValueOnHover(true). These values are for single stack in graph.

    In the Graph shown values for Cost 1 is shown perfectly but I doesn't show values for other two Cost2, Cost3.
    Note:Graph shown is perfect, the issue is with the on hover values.

    This scenario is repeated when ever any one of the Cost is too low in comparision to the rest Costs. Please help for the solution

    Thanks in Advance

    #2
    Smart Gwt does not show on Hover Values for stacked Graph Reply to Thread

    Please let me know the fix. This bug is very necessary to be fixed as it is crucial for our applications.

    Comment


      #3
      Be sure to take a look at the FAQ for the information you need to post.

      Comment


        #4
        Not able to seek any solution from faqs.

        I searched all through out the faqs and previous discussions but this issue has not been discussed before. Please see to the issue ASAP.

        Comment


          #5
          Again, take a look at the FAQ **for the information you need to post**.

          That is, you need to provide more detail in order for us to investigate this issue, and the FAQ tells you what information you should (always) post.

          Comment


            #6
            Smart Gwt does not show on Hover Values for stacked Graph Reply to Thread

            There is issue while using show on hover values of Smart Gwt Graph. It does'nt show values of all the stacked parts when the values vary in higher range.
            I am using:

            I am using Mozilla Version 24.0
            and GWT developer plugin for firefox 1.24
            SMARTGWT version is Pro version 4.1

            I had a test case where the data Values for stacked Graph are("Cost1", 160303),("Cost2", 234234),("Cost3",0.1)
            chart.setShowValueOnHover(true). These values are for single stack in graph.

            In the Graph shown values for Cost 1 is shown perfectly but I doesn't show values for other two Cost2, Cost3.
            Note:Graph shown is perfect, the issue is with the on hover values.

            This scenario is repeated when ever any one of the Cost is too low in comparison to the rest Costs. Please help for the solution
            The minimal code is:
            Code:
             Facet callTypeFacet = new Facet();  
                    FacetValue[] FacetValueArray = new FacetValue[chartMetaDataArray.size()];
                    
                    int callTypesArrayindex = 0;
                    for(String callType: chartMetaDataArray)
                    {
                    	FacetValueArray[callTypesArrayindex] = new FacetValue(callType, callType);
                    	callTypesArrayindex++;
                    }
                    callTypeFacet.setValues(FacetValueArray);
                    callTypeFacet.setId("callCostType");
                    chart.setValueProperty("callCost");
                    chart.setFacets(new Facet("tariffPlan", "Tariff Plan"), callTypeFacet);

            Comment


              #7
              Ok, we'll take a look - one more thing - what *exact* version are you using? Just evaluate isc.version

              Comment


                #8
                Smart Gwt does not show on Hover Values for stacked Graph

                isc.version = v9.1p_2014-03-03/Pro Deployment

                Comment


                  #9
                  Sorry, after taking a closer look at your code, it is not a complete, ready-to-run test case demonstrating a problem, it's just a partial snippet of code that refers to variables defined elsewhere.

                  What we need is a complete, ready-to-run test case. See the FAQ.

                  Comment


                    #10
                    Complete Sample Code for the graph

                    The code is as follows:
                    Code:
                     public FacetChart getGraph()
                    {
                    FacetChart chart = new FacetChart();
                            chart.setWidth(500);
                            chart.setHeight(400);
                            chart.setChartType(ChartType.COLUMN);
                            chart.setStacked(true);
                            chart.setValueTitle("Cost");
                            chart.setBorder("1px solid black");
                            chart.setShowTitle(false);
                            chart.setShowChartRect(true);
                            chart.setDataMargin(12);
                            chart.setBarMargin(27);
                            chart.setMinBarThickness(25);
                            chart.setDataColors(new String[]{"#000bf0", "#92D050", "#ff0c00", "#A00Af0", "#0ACDF0"});
                      
                            Facet callTypeFacet = new Facet();  
                            
                            callTypeFacet.setValues(new FacetValue("SMSCOST", 3), new FacetValue("MMSCOST",38358383);
                            callTypeFacet.setId("callCostType");
                            chart.setValueProperty("callCost");
                            chart.setFacets(new Facet("tariffPlan", "Tariff Plan"), callTypeFacet); 
                    	Window chartPopup = new Window();
                    		chartPopup.setDismissOnEscape(false);
                    		chartPopup.setCanDragResize(true);
                    		chartPopup.setCanDragReposition(true);
                    
                    		// Add 'items' to Windows
                    		chartPopup.addItem(chartWidget);
                    		chartPopup.setAutoCenter(true);
                    		chartPopup.setTitle("Compare Graph");
                    		chartPopup.setAutoSize(true);
                    		chartPopup.setIsModal(true);
                    		chartPopup.setDismissOnOutsideClick(true);
                    		chartPopup.show();
                     }

                    Comment


                      #11
                      Thanks for the test case. This bug is now fixed for tomorrow's builds.

                      Comment

                      Working...
                      X