Pie chart direction

Hello again,

I have another question about the pie chart in FastReport. Actually (of by default I guess) the datas in a pie are displayed in anti-clockwise (datas from right to left - in red in the screenshot), but is it possible to displayed the datas in clockwise (from left to right - in green in the screenshot) ??

>

Comments

  • edited 6:15PM
    JeromeC wrote: »
    ...
    but is it possible to displayed the datas in clockwise (from left to right - in green in the screenshot) ??
    ...
    Try to change sort order in FR Designer.

    Regards
    Mick
  • edited 6:15PM
    I already tried to change the sort order but it doesn't change the direction (it's just the same datas in the other way, but always displayed in anti-clockwize)
  • gpigpi
    edited 6:15PM
    Set PieValues.Order to loDescending
  • edited January 2013
    I also already tried but same result as above, the datas are displayed in the other way, but still in anti-clockwise.

    Maybe a link with the axis or something else, I don't know... [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Another question : How is it possible to display the text in the legend on multiline ? (in case of the text is very long, without resize the chart to keep all the time the same size)[/img]
  • gpigpi
    edited 6:15PM
    wrote:
    I also already tried but same result as above, the datas are displayed in the other way, but still in anti-clockwise.
    see attach
    wrote:
    How is it possible to display the text in the legend on multiline ? (in case of the text is very long, without resize the chart to keep all the time the same size)
    I think TeeChart doesn't supports multiline legend. Ask TeeChart developers for more info
  • edited 6:15PM
    Thank you for the file [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Where can I ask to the TeeChart developers ?[/img]
  • edited 6:15PM
    JeromeC wrote: »
    I also already tried but same result as above, the datas are displayed in the other way, but still in anti-clockwise.
    ...
    I did some tests.
    The goal was - if we can NOT control the order of PieSeries let's control the order of data being read by PieSeries.

    One query I used for testing is:
    select 1 as Pos, 15 as prx, 'fifteen' as name
    union
    select 2 as Pos, 20 as prx, 'twenty'
    union
    select 3 as Pos, 10 as prx, 'ten'                                                                                                                            
    union                                           
    select 4 as Pos, 30 as prx, 'thirty'
    union
    select 5 as Pos, 25 as prx, 'twenty five'
    order by 1
    
    The second query is almost the same but it has order by 1 desc.
    First chart of my example works with the first query, second chart works with second query.

    Try to follow this concept:
    - Set PieValues.Order to loNone
    - Sort your Dataset in the order you need
    - Set Chart.Legend.Inverted to true or false depending which you need


    And the result I got is like below:

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.