Project

General

Profile

Actions

Bug #6333

closed
HE

CurveLabels in DateTimeSeries - CartesianChart not working

Bug #6333: CurveLabels in DateTimeSeries - CartesianChart not working

Added by Harald Elmer over 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Target version:
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

ChartsExample.rar (4.12 KB) ChartsExample.rar Harald Elmer, 04/12/2018 03:36 PM

RS Updated by Roel Standaert about 8 years ago Actions #1

  • Target version changed from 4.0.4 to 4.0.5

RS Updated by Roel Standaert about 8 years ago Actions #2

  • Status changed from New to Resolved

RS Updated by Roel Standaert over 7 years ago Actions #3

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom