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

Message ListMessage List     Post MessagePost Message

  chartdir.dll freeze
Posted by mikael on Jul-25-2017 17:06
Hi,

    import pychartdir as p
    c = p.XYChart(800, 600)
    c.xAxis().setDateScale(0, 1e-10)
    c.layoutAxes()
    # neverending loop somewhere in chartdir.dll

I guess fixing this in CD would be straightforward.

    >>> hex(p.getVersion())
    '0x6000002'

On 32bit windows build.

Thanks,
Mikael

  Re: chartdir.dll freeze
Posted by Peter Kwan on Jul-26-2017 02:03
Hi Mikael,

Thanks for reporting of this issue to us. We are able to reproduce the issue. It turns out ChartDirector date scale may not work if the tick increment is less than 0.1ms. We will probably fixed it in future versions of ChartDirector by not handling (that is, ignoring) the short tick increment. The main reason is that even with 64-bit double precision number, it is not accurate enough to represent a general date/time down to 0.01ms (such as 2017-01-01 14:45:19.00000001).

If the axis uses 1ms ticks, the entire axis would be at most a few tens of  milliseconds long, and so the date yyyy-mm-dd is usually not important for the axis labels. The time in this case can be considered as "elapsed time" (as opposed to date/time), and can be handled with a linear axis.

Regards
Peter Kwan

  Re: chartdir.dll freeze
Posted by mikael on Jul-26-2017 16:02
Thank you. This happened to us by accident when our source supplied unexpected data. It is merely the way in which it failed that is troublesome.

Mikael