I suggest you ...

Stacked area (spline etc) in irregular datetime series

When you create more datetime irregular series, by now only the same datetime values are used to create the stack, resulting in a correct-but-ugly graph.

319 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Mauro Morello shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    4 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Tomas Nilsson commented  ·   ·  Flag as inappropriate

        Here is an example with the desired behavior according to us when it comes to stacking with different x-values: http://jsfiddle.net/on4sm4zt/1/

        The first chart shows that the stacking doesn't work if the x values for two series are not the same. Both series have data for the x values 1, 3, 4 and 5 and the stacking works correctly there. However, if there is a small offset for the x values (x=2 and x=2.2 in our example) the stacking doesn't work.

        Our goal is to visualize the sum of the two lines for an arbitrary x value even though they might not have identical x values in their data sets. Is this possible to achieve with the current version of Highcharts/Highstock? Or would it be possible to fix?

        Since the points are connected by a line it would make sense to use the interpolated value of the bottom line for x=2 and add the value of the upper line for x=2 in order to get the y-position of the blue line. We have tried to visualize what we mean by adding extra points in the second chart of our example. Ideally, you wouldn't have to add extra points to achieve this effect.

      • Anonymous commented  ·   ·  Flag as inappropriate

        Hi has there been any improvement on this?
        In the jsFiddle the y-value of the series that doesn't have x-value where the other one does, drops to zero. Which results in a strange graph.
        Wouldn't it make more sense that the y-value is stacked above the other y-value where the dates don't mach?

      • Terry commented  ·   ·  Flag as inappropriate

        This seems to be fine. I will try it in my application next week and let you know if there are any problems. Thanks for being responsive to requests.

      Feedback and Knowledge Base