Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Logarithmic grid lines : possible?

Last post 05-14-2008 17:29 by [Infragistics] Max Rivlin. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 04-29-2008 9:10

    • MyGraph
    • Not Ranked
    • Joined on 04-29-2008
    • Points 80

    Logarithmic grid lines : possible?

     Hello,

    How can I use UltraChart with logarithmic grid lines for X or Y axes? I'm not speaking of logarithmic scale for X or Y axis, but to draw the grid itself, like what's shown in http://en.wikipedia.org/wiki/Image:600px-LinLogScale.png

     

    Regards

    MG 

    • Post Points: 20
  • 05-01-2008 15:16 In reply to

    Re: Logarithmic grid lines : possible?

    Sure, first you need to enable the minor gridlines: chart.Axis.X.MinorGridLines.Visible = true;
    set the following properties under chart.Axis.X

    NumericAxisType = Logarithmic
    TickmarkStyle = DataInterval
    TickmarkInterval = 1
    RangeMin = 1
    RangeMax = 1000
    RangeType = Custom

    • Post Points: 20
  • 05-06-2008 12:43 In reply to

    • MyGraph
    • Not Ranked
    • Joined on 04-29-2008
    • Points 80

    Re: Logarithmic grid lines : possible?

    It works  -thanks!

     How with a logarithmic scale can I display a value of zero for ultraChart1.Axis.X.RangeMin? If I set it to zero, it triggers an exception (as it if was computing log(zero) rather than simply displaying the value), but if I set it to 1, it displays 1 as the min value...

    Am I missing something? 

    • Post Points: 20
  • 05-06-2008 17:35 In reply to

    Re: Logarithmic grid lines : possible?

    Set LogZero property under chart.Axis.X. This property was added in 7.3. If you're using an earlier version, you'll have to start your range with 1.
    http://help.infragistics.com/Help/NetAdvantage/NET/2007.3/CLR2.0/html/Win_Support_for_Zero_Data_Points_in_Charts_Having_Logarithmic_Axes_Whats_New_20073.html

    • Post Points: 20
  • 05-07-2008 3:36 In reply to

    • MyGraph
    • Not Ranked
    • Joined on 04-29-2008
    • Points 80

    Re: Logarithmic grid lines : possible?

     Thks again for your answer. Yes, I'm using 7.3. Yet, even if I set the LogZero property (before or after setting NumericAxisType = NumericAxisType.Logarithmic), I still get an exception

    - either if I have a value of 0 in my datasource,

    - or if I set ultraChart1.Axis.X.RangeMin = 0.

     

    What do I do wrong?

    • Post Points: 20
  • 05-14-2008 17:29 In reply to

    Re: Logarithmic grid lines : possible?

    I can't reproduce the first problem (having 0s in the datasource). Have you tried installing the latest hotfix?
    Setting RangeMin to 0 on a logarithmic axis with RangeType=Custom will not work, unfortunately. LogZero was only designed to modify the zero values on the data. You can submit a feature request here, if you want this included in the future chart releases:
    http://devcenter.infragistics.com/protected/requestfeature.aspx

     

    • Post Points: 5
Page 1 of 1 (6 items)
Powered by Community Server (Commercial Edition), by Telligent Systems