Home Forums WinForms controls Xceed Chart for WinForms DataZoom in LineSeries Chart with logarithmic scale

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #19006 |

    Hello,

    I use the chart control v4.2.100.0 with only one chart.
    This chart should contain one or more LineSeries (X,Y)-Points.
    Additionaly I need the DataZoom-Tool to give the users the chance to
    see details in the chart. The error occures in VS2005 and VS2008.

    The first problem is, that the zoom area can only go up to the point ~3,~3:

    Do anybody know a workaround to handle that problem ?

    Thanks in advance
    Robert

    ////////// Example-code /////////////////////////
    Private Sub InitChart()

        With (Me.ChartControl1.Charts.Add())

          ‘Set X-Axis
          With (.Axis(StandardAxis.PrimaryX))
            .ScaleMode = AxisScaleMode.Logarithmic
            .LogarithmicScale.MajorTickMode = MajorTickModeLogarithmic.PowCustomStep
            .LogarithmicScale.CustomStep = 1
            .LogarithmicScale.AutoLabels = True
            .LogarithmicScale.ExponentMinorTicks = False
            .LogarithmicScale.MinorTickCount = 9
            .LogarithmicScale.AutoMin = False : .LogarithmicScale.Min = 0.1
            .LogarithmicScale.AutoMax = False : .LogarithmicScale.Max = 1000
            .LogarithmicScale.AutoMinorTicks = True
            .SetMajorShowAtWall(ChartWallType.Back, True)
            .SetMinorShowAtWall(ChartWallType.Back, True)
          End With

          ‘Set Y-Axis
          With (.Axis(StandardAxis.PrimaryY))
            .ScaleMode = AxisScaleMode.Logarithmic
            .LogarithmicScale.MajorTickMode = MajorTickModeLogarithmic.PowCustomStep
            .LogarithmicScale.CustomStep = 1
            .LogarithmicScale.AutoLabels = True
            .LogarithmicScale.ExponentMinorTicks = False
            .LogarithmicScale.MinorTickCount = 9
            .LogarithmicScale.AutoMin = False : .LogarithmicScale.Min = 0.01
            .LogarithmicScale.AutoMax = False : .LogarithmicScale.Max = 1000
            .LogarithmicScale.AutoMinorTicks = True
            .SetMajorShowAtWall(ChartWallType.Back, True)
            .SetMinorShowAtWall(ChartWallType.Back, True)
          End With

          ‘Add some data
          With (CType(.Series.Add(SeriesType.Line), LineSeries))
            .AddXY(2, 2)
            .AddXY(20, 20)
            .AddXY(200, 200)
            .AddXY(25, 25)
            .AddXY(29, 29)
          End With
        End With ‘Charts(0)

        ‘Add DataZooming
        Dim mDataZoom As New DataZoomTool
        mDataZoom.HorizontalAxisId = StandardAxis.PrimaryX
        mDataZoom.VerticalAxisId = StandardAxis.PrimaryY
        Me.ChartControl1.InteractivityOperations.Add(mDataZoom)
      End Sub ‘InitChart
    \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

     

    Imported from legacy forums. Posted by robert (had 3569 views)

    User (Old forums)
    Member
    Post count: 23064

    Unfortunately, the DataZoomTool will not work correctly on two logarithmic axis.  It works only when there is only one, and when values are not clamped to the rules (e.g. DataZoomTool.ClampValuesToRuler = false).

    Imported from legacy forums. Posted by André (had 417 views)

    User (Old forums)
    Member
    Post count: 23064

    Hello André,

    first I want to thank you for your answer.

    Can you tell me if this problem will be solved in a future version of the component ?

    Or if not, can you give me a hint, how I can make a workaround for the problem…

    Best regards

    Robert

    Imported from legacy forums. Posted by robert (had 439 views)

    User (Old forums)
    Member
    Post count: 23064

    I don’t think this will offered in a subsequent version, and unfortunately, we don’t have any workaround to offer.

    Imported from legacy forums. Posted by André (had 3952 views)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.