ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  setClipping - Label get Tooltip of Gantt
Posted by Fabian on Dec-19-2011 16:03
Attachments:
Hi Peter,

I'm using setClipping to clip my gantts to the plotarea, but the "mouseover", "click", ect.
isn't clip to the plotarea. For Example, the tooltip of the gantt appear instead the label tooltip. How could I prevent this?
Unbenannt.png

  Re: setClipping - Label get Tooltip of Gantt
Posted by Peter Kwan on Dec-20-2011 08:15
Hi Fabian,

Unluckily, ChartDirector currently does not clip the image map.

If your need to use XYChart.setClipping, your code should be setting the axis scale (if the scale is auto-determined by ChartDirector, you should not need to clip the chart). In this case, you can "clip your data" before passing them to ChartDirector. An example is like:

for (int i = 0; i < noOfBars; ++i) {
    startDate[i] = (startDate[i] > axisEndDate) ? Chart::NoValue : std::max(startDate[i], axisStartDate);
    endDate[i] = (endDate[i] > axisStartDate) ? Chart::NoValue : std::min(endDate[i], axisEndDate);
}

With the above method, you do not need to use XYChart.setClipping at all.

Hope this can help.

Regards
Peter Kwan