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:
	For my chart, it always uses values[0] because "required" is false because "clustered" is false:
	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
					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;
        }
    }
Code:
	
	clustered=(chartType=="Bar"||chartType=="Column")
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

Comment