Announcement

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

    FacetChart getXCoord for multi value line chart

    Hi,

    I have a LINE FacetChart with two data lines and I want to draw a DrawOval on an import point on each line.
    Using ChartDrawnHandler for that.

    For one of the lines getXCoord(FacetValueMap) is OK, for the other one it's 0.


    SmartClient Version: v9.1p_2014-07-12/Pro Deployment (built 2014-07-12)

    I've step debugged and got stuck here:
    Code:
    function isc_FacetChart__completeCriteria(criteria,context)
    
    
        if(this.isMultiFacet()){
            legendFacet=this.getLegendFacet();
            var chartType=context.chartType,
                clustered=(chartType=="Bar"||chartType=="Column")&&!this.isStacked(context),
                required=context.isMultiFacet()&&clustered&&(legendFacet.values.length>1);
            if(required){
                var legendFacetValue=this.getFacetValue(legendFacet.id,criteria[legendFacet.id]);
                if(legendFacetValue==null){
                    return null;
                }else{
                    ret[legendFacet.id]=legendFacetValue.id;
                }
            }else{
                ret[legendFacet.id]=legendFacet.values[0].id;
            }
        }
    For my chart, it always uses values[0] because "required" is false because "clustered" is false:
    Code:
    clustered=(chartType=="Bar"||chartType=="Column")
    while my chartType == "Line".


    My case works when "required" would be true. Is this indeed a problem, or am I handling the chart wrongly?
    I've added a screenshot of the case for "Column", then both red dots are OK.

    TIA
    Attached Files
    Last edited by levi; 3 Sep 2014, 02:10.

    #2
    Unfortunately this depth of information about the paths taken by framework code is really not useful without the chart data and chart configuration. So, as usual, the best thing would be to try adding a small amount of your logic to a sample and see if you can reproduce the issue.

    Also just a note - the feature you are working on seems to be redundant with the built-in facetChart.showDataPoints feature, although maybe you have further behaviors planned.

    Comment

    Working...
    X