in

Software FX Community

Discuss and find help for all Software FX products.

Selection zooming seems to work oddly

Last post 06-16-2009 4:00 PM by JuanC. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-11-2009 11:15 AM

    Selection zooming seems to work oddly

    Hi:

    I'm trying to use selection-style zooming on my X axis which is bound to data with DataPath.  There are a couple of odd things happening.

    My chart is set up like this:

            <cfx:ChartView x:Name="MainChart"
                           Series="{Binding SeriesAttributes}"
                           Loaded="MainChart_Loaded" Grid.ColumnSpan="4">
                <cfx:ChartView.Zoom>
                    <cfx:ZoomArea Mode="Selection" ViewStyle="Selection"/>
                </cfx:ChartView.Zoom>
                <cfx:ChartView.LegendBox>
                    <cfx:LegendBox Visibility="Collapsed" />
                </cfx:ChartView.LegendBox>
                <cfx:ChartView.AxisX>
                    <cfx:Axis x:Name="PrimaryAxis" ForceZero="False"
                            DataPath="Time">
                        <cfx:Axis.Labels>
                            <cfx:AxisLabelAttributes Format="Date"/>
                        </cfx:Axis.Labels>
                    </cfx:Axis>
                </cfx:ChartView.AxisX>
                <cfx:ChartView.AxisY>
                    <cfx:Axis ForceZero="False"/>
                </cfx:ChartView.AxisY>
            </cfx:ChartView>

    Now, when I select an area, I see the "map" appear below correctly, and I can scroll the selection.  But when I try to resize the selection, the chart snaps back to full view and I can no longer zoom.

    How do I use selection zooming and allow the user to resize the selection?

    Second, is there any way to get the "map" and selection to appear when the chart is first displayed (presumably showing the chart at full selection), instead of the user having to do something to get it to appear?

    Thanks.

  • 06-12-2009 5:25 PM In reply to

    Re: Selection zooming seems to work oddly

    Does anyone have any thoughts on how to get selection zooming to work?
  • 06-16-2009 4:00 PM In reply to

    • JuanC
    • Top 10 Contributor
    • Joined on 03-02-2007

    Re: Selection zooming seems to work oddly

    Thank you for providing (offline) a sample app that duplicates this issue.

    Please download our current build that should fix this issue (issue was fixed on build 3453), it will also allow you to initialize the chart as zoomed (Mode="Zoomed")

    Regards,

    JuanC

Page 1 of 1 (3 items)
Copyright 2008 Software FX, Inc.