Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Drawing Series Over Grid Lines QtChart

Drawing Series Over Grid Lines QtChart

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 1 Posters 529 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.
  • Q Offline
    Q Offline
    qtross
    wrote on last edited by qtross
    #1

    Hello to all,

    I have a problem about showing my first data on qt chart.

    aa.png

    I am using QDateTimeAxis on axis x and QValueAxis on axis y, and series I append to chart are; QScatterSeries and QLineSeries.

    As you can see on the image, chart removes half of the scatter data on screen. It also happens in last value of data. I guess I may make it work while adding zero values for min and max values on x axis, but I would like to know if there is a way to give a space between first value and axis x grid line on chart.
    Or is there a way to draw series over plotting area, it seems that series are children of this area and these parts which are over plot area cannot be shown .

    Thank you for any help!

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qtross
      wrote on last edited by
      #2

      Hi again,
      I could not figure out how to retrieve this clipped area, I searched about setting margin of plotting area but no success. However at least, I managed to show points label totally with these codes;

      series->setPointLabelsVisible(true);
      series->setPointLabelsColor(Qt::black);
      series->setPointLabelsClipping(false);
      series->setPointLabelsFormat("@yPoint");
      
      

      Maybe that helps to others !
      Thanks

      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