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. Making custom Barseries, BarSet from QList<PointF> for ChartView
Forum Updated to NodeBB v4.3 + New Features

Making custom Barseries, BarSet from QList<PointF> for ChartView

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 651 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.
  • H Offline
    H Offline
    hghgi1
    wrote on last edited by
    #1

    I am looking for a solution for positioning BarSet on ChartView in the X-axis direction from QList<PointF>.

    The problem is that you can only position BarSets to category points on X axis and cannot assign to exact qreal points.

    My only solution to the problem is to make N unnamed category on X axis, and then convert each QPointF.x() to the closest category index and show there the corresponding QPointF.y() value. If there is an index with no QPointF.x() converted to it there show the value 0 for QBarSet.
    The problem with this solution is that there is a division/resolution (N), and when you scroll the ChartView it can even cause further calculation to reposition all the BarSets.

    I am looking forward to a better solution for this problem, I don't think it is impossible, since we have BarSeries and many other kind of series and all of them are already close to be the solution for the problem, but none of them seems to be the perfect solution.

    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