Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QPolarChart change axis orientation
Qt 6.11 is out! See what's new in the release blog

QPolarChart change axis orientation

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 935 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.
  • K Offline
    K Offline
    kselyunin
    wrote on last edited by
    #1

    My goal is to use QPolarChart from Qt Charts library, but with different orientation of polar axes.
    I.e. axes r (distance) pointing right and \theta (angle) axis getting positive values counter-clock-wise.

    In detail: Official Qt examples show QPolarChart as follows (see Picture below). I.e. the r axis orientated as bottom-top (i.e. as Y axis, pointing to top) and \theta axis getting positive values when rotating clock-wise (i.e. positive values are rotated clock-wise).

    b1cffe21-6ae5-4df3-b0af-d06040386a7e-image.png

    My goal though is to have QPolarChart looking like on the picture below, which means (1) the r axis points right (i.e. orientated as X axis, instead of pointing top as by default), (2) positive values of \theta angle are counted counter-clock-wise (instead of clock-wise for positive by default):

    2d479e61-37fe-4e65-baed-27cbaee3c314-image.png

    For this I would need either to rotate the plot 90 degrees around the center clock-wise, and then "mirror" the plot (i.e. rotate a plot around X axis 180 degrees), or maybe some elegant solution exists. Rotating the whole chart can be done, but it also rotates chart title, and everything else. When rotating my goal would be to rotate "axes" and plot only. Cannot find anything related to QPolarChart in this respect..

    Thanks in advance!

    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