Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Representation of infinite in ultrachart
posted

Hello,

     I'm currently trying to draw a chart (scatterchart, but with 'composite' mode), were the input data may contain infinite values on the Y axis (Y axis has a custom range set; not autocalculated). I have the 'connect with lines' options set to ON. The problem is, the charts are not representing the infinity as I'd expect.

What I'd expect:

   - [1] Having the line go straight up (where it's noticeable that it's outside of range), regardless of the current Y axis range

   - [2] Having a gap where the infinite value is located (i.e., do not plot), but continue with the line after the infinite

What I'm currently able to get

   - [a] Without any special code, when I plot an infinite value, the 'connect with lines' option gets disable, and I only see datapoints up until the infinite point (and nothing after)

   - [b] If I add code to 'turn off' the infinite point itself with the "empty' boolean property of XYDatapoint, it looks like there was no infinite there to begin with (which would be misrepresenting the data).

   - [c] I could scan the series for infinite values, and replace them with something outside of the Y-range value, which would achieve something similar to what I'm looking for. However, this would take some refactoring outside the graph code, which I'd rather avoid.

Graph images : Check attachment

source code : https://pastee.org/73y73

Thanks in advanced for any reply,

    - Nicolas.

Parents
No Data
Reply
  • 195
    posted

    Ammend:

    On the chart labels, the top left should read "1 or C", and the top right should read just "2".

    Please also take into account modifying /testing the source code, the line

        string graphToReproduce = "c";

    accordingly.

    And finally, I forgot to actually ask, Is there a quick setting or configuration I could use to obtain the desired effect?

    Thanks again,

       - Nicolas.

Children