KX Community

Find answers, ask questions, and connect with our KX Community around the world.

Home Forums KX Solutions Multiple Chart, Single Cursor — Chart GL

  • Multiple Chart, Single Cursor — Chart GL

    Posted by laura on January 24, 2023 at 12:00 am

    Greetings,

    I have 2 charts with identical datetime (y-axis).

    Id like to be able to make it so that when I move my cursor over one of the charts, it shows the values for the corresponding timestamp on the other chart.

    Similarly, I’d like to do the same thing but with zoom. So, both charts would be zoomed to the same point and show the same timestamps.

    Any help greatly appreciated.

    laura replied 1 month, 3 weeks ago 2 Members · 3 Replies
  • 3 Replies
  • ahackett

    Member
    January 25, 2023 at 12:00 am

    The zoom can be set by assigning the same viewstates to both charts on the Y-Axis > Range > Selection Min and Max properties. For hovering, this can be set in Basics > Hover by assigning both charts the same viewstate, but it follows the x-axis rather than the y-axis

  • laura

    Administrator
    January 25, 2023 at 12:00 am

    Basics > Hover worked.

    Y-Axis > Range > Selection Min and Max  — hasnt worked so far. Do I need to click the min/max button too ?

  • ahackett

    Member
    January 26, 2023 at 12:00 am

    No this isn’t necessary, you just need the same Selection Min viewstate for both charts and same Selection Max viewstate. I’ve attached a demo here with both the x-axis and y-axis viewstates set

Log in to reply.