Results 1 to 2 of 2

Thread: KDChart Axis and Circles

  1. #1
    Join Date
    Sep 2011
    Posts
    2
    Thanks
    1

    Default KDChart Axis and Circles

    hello

    i have two questions about kdcharts. i searched the forum and did not find any solutions:

    1. is it possible to restrict my plot to a specified interval. i am plotting 2d data and kdcharts draws the y-Axis beginning at 0, allthough all of my y-values are above 35. I would like to let the axis only start at 30. any hints?

    2. in this plot I would like to highlight special coordinates of my function by drawing a circle or anything visual at these position.

    Can anyone help me on these points?

    thx in advance
    sas

  2. #2
    Join Date
    Apr 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: KDChart Axis and Circles

    CartesianCoordinatePlane has a member function: setVerticalRange(QPair< qreal, qreal > ) which you can check out from their references
    You may use it like the following:

    CartesianCoordinatePlane* plane = new CartesianCoordinatePlane;
    QPair< qreal, qreal > yRange(start,end);
    plane->setVerticalRange(yRange);
    ///////////////////////////////////////////////////////////////////////////

    m_chart->replaceCoordinatePlane(plane);
    m_chart->coordinatePlane()->replaceDiagram(m_diagram);

Similar Threads

  1. Replies: 9
    Last Post: 3rd May 2011, 21:21
  2. KDChart. What do you thing about?
    By Nadia in forum Qt-based Software
    Replies: 1
    Last Post: 15th February 2011, 01:55
  3. Problem to compile KDChart
    By paolini in forum Newbie
    Replies: 0
    Last Post: 4th December 2010, 18:13
  4. Replies: 0
    Last Post: 20th September 2010, 15:55
  5. Can't build KDChart-2
    By rakkar in forum Newbie
    Replies: 0
    Last Post: 2nd September 2009, 18:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.