Actions
Bug #6333
closedCurveLabels in DateTimeSeries - CartesianChart not working
Start date:
04/12/2018
Due date:
% Done:
0%
Estimated time:
Description
CurveLabels in DateTimeSeries-Charts are not added.
reason imho is: ChartLabel wants WPointF as Parameter in creation which is class of double member's x and y. When rendering Labels in WCartesianChart.C (see Line 3414/renderCurveLabels) implicit mapToDeviceWithoutTransform is called with this double-typed Parameter for x too. But later in WAxis::mapToDevice and WAxis::getValue() x-Parameter has to be a cpp17::any of type WDateTime for AxisScale::DateTime. Otherwise mapping Returns nan for x.
Find attached your ChartsExample.c an h. I added two Event-Metods. ScatterPlotExample::OnMouseWentDown draws Label over clicked Position of ScatterPlot. TimeSeriesExample::OnMouseWentDown does not.
Files
Updated by Roel Standaert about 6 years ago
- Target version changed from 4.0.4 to 4.0.5
Updated by Roel Standaert almost 6 years ago
- Status changed from Resolved to Closed
Actions