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. Qt Chart custom line series with labels
Forum Updated to NodeBB v4.3 + New Features

Qt Chart custom line series with labels

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 442 Views
  • 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.
  • S Offline
    S Offline
    St.Stanislav
    wrote on last edited by
    #1

    Hello everyone!

    I'm trying to implement custom line series with the following behaviour and appearance: Instead of points I need to display labels in appropriate y-coordinate, but with the fixed x-coordinate (that can be set different). Text that should be displayed should be equal to real x-coordinate. When I have tried to implement it with built-in plots I have faces with the issue that pointLabelsFormat property can be used with only x and y coordinate. In my case I need to use some constant x coordinate but display the real one. So this approach isn't suitable for me (looks like).

    Then I have tried to implement manually custom plot with the QGraphicsItem but in this case I have received incorrect drawing out of chart bounds (some graphical artefacts can be found there while scrolling the plot e.g.).

    What is the correct way to implement such behaviour? As I supposed this question not only about QML, but about base Qt QChart widget.

    V 1 Reply Last reply
    1
    • S St.Stanislav

      Hello everyone!

      I'm trying to implement custom line series with the following behaviour and appearance: Instead of points I need to display labels in appropriate y-coordinate, but with the fixed x-coordinate (that can be set different). Text that should be displayed should be equal to real x-coordinate. When I have tried to implement it with built-in plots I have faces with the issue that pointLabelsFormat property can be used with only x and y coordinate. In my case I need to use some constant x coordinate but display the real one. So this approach isn't suitable for me (looks like).

      Then I have tried to implement manually custom plot with the QGraphicsItem but in this case I have received incorrect drawing out of chart bounds (some graphical artefacts can be found there while scrolling the plot e.g.).

      What is the correct way to implement such behaviour? As I supposed this question not only about QML, but about base Qt QChart widget.

      V Offline
      V Offline
      Vijaykarthikeyan
      wrote on last edited by
      #2

      @St-Stanislav No,you can't modify pointdLabel

      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