// get the data point...
double x = dataset.getXValue( series, item );
double y = dataset.getYValue( series, item );
double z = Double.NaN;
if ( dataset instanceof XYZDataset ) {
XYZDataset xyzData = (XYZDataset) dataset;
z = xyzData.getZValue( series, item );
}
if ( !Double.isNaN( z ) ) {
RectangleEdge domainAxisLocation = plot.getDomainAxisEdge();
RectangleEdge rangeAxisLocation = plot.getRangeAxisEdge();
double transX = domainAxis.valueToJava2D( x, dataArea, domainAxisLocation );