Project

General

Profile

Actions

Bug #6333

closed

CurveLabels in DateTimeSeries - CartesianChart not working

Added by Harald Elmer almost 6 years ago. Updated over 5 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
Actions #1

Updated by Roel Standaert over 5 years ago

  • Target version changed from 4.0.4 to 4.0.5
Actions #2

Updated by Roel Standaert over 5 years ago

  • Status changed from New to Resolved
Actions #3

Updated by Roel Standaert over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF