Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to add event markers in QML ChartView?
Forum Updated to NodeBB v4.3 + New Features

How to add event markers in QML ChartView?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 397 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    QTLeearn
    wrote on last edited by QTLeearn
    #1

    Hi, I am using QML ChartView and I would like to add event markers like below:
    image_2021_01_07T15_38_51_444Z.png

    How to add the 2 green vertical lines and "Event1" "Event2" labels using QML ChartView?
    I am OK with any marker shape that can mark the position of an event, vertical line is not necessary

    Thank you very much

    1 Reply Last reply
    0
    • rrlopezR Offline
      rrlopezR Offline
      rrlopez
      wrote on last edited by
      #2

      Hello @QTLeearn, have you tried adding some new series to your chart (probably Bar Series) to have these values shown? https://doc.qt.io/qt-5/qml-qtcharts-barseries.html.

      Lic-Ing. Rodrigo Lopez Gonzalez
      Embedded Software Engineer
      RidgeRun Engineering Ltd.
      www.ridgerun.com
      Email: rodrigo.lopez@ridgerun.com

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved