Crossplot with 4 quadrants

4 posts, 0 answers
  1. Georg
    Georg avatar
    4 posts
    Member since:
    Mar 2012

    Posted 19 Apr 2012 Link to this post

    Hi!
    Is there a way to create a crossplot with 4 quadrants using ChartView?
    The goal is to have a screen like the one in the attachment...
    The curve is not limited to be in one quadrant.
    Thank you,
    Georg
  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 24 Apr 2012 Link to this post

    Hello Georg,

    RadChartView does support negative values both on horizontal and vertical axes and will visualize them appropriately if there are such values in the chart series. You can also force the axes to start from negative values by setting the LinearAxis.Minimum property value like this:
    <telerik:RadCartesianChart x:Name="RadChart1" Palette="Metro">
     
        <telerik:ScatterLineSeries>
            <telerik:ScatterDataPoint YValue="0" XValue="0" />
            <telerik:ScatterDataPoint YValue="1" XValue="1" />
            <telerik:ScatterDataPoint YValue="2" XValue="2" />
            <telerik:ScatterDataPoint YValue="1.8" XValue="3" />
            <telerik:ScatterDataPoint YValue="2.5" XValue="3.7" />
            <telerik:ScatterDataPoint YValue="3" XValue="5" />
            <telerik:ScatterDataPoint YValue="5" XValue="6" />
            <telerik:ScatterDataPoint YValue="5.7" XValue="6.2" />
            <telerik:ScatterDataPoint YValue="5.8" XValue="7.4" />
            <telerik:ScatterDataPoint YValue="5.8" XValue="8.5" />
            <telerik:ScatterDataPoint YValue="5" XValue="8.9" />
     
            <telerik:ScatterLineSeries.PointTemplate>
                <DataTemplate>
                    <Ellipse Height="8" Width="8" Fill="White" Stroke="Black" />
                </DataTemplate>
            </telerik:ScatterLineSeries.PointTemplate>
        </telerik:ScatterLineSeries>
     
        <telerik:RadCartesianChart.HorizontalAxis>
            <telerik:LinearAxis Minimum="-2" MajorStep="1" />
        </telerik:RadCartesianChart.HorizontalAxis>
        <telerik:RadCartesianChart.VerticalAxis>
            <telerik:LinearAxis Minimum="-2" MajorStep="1" />
        </telerik:RadCartesianChart.VerticalAxis>
     
        <telerik:RadCartesianChart.Grid>
            <telerik:CartesianChartGrid MajorLinesVisibility="XY" />
        </telerik:RadCartesianChart.Grid>
    </telerik:RadCartesianChart>

    Hope this helps.


    Regards,
    Giuseppe
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Georg
    Georg avatar
    4 posts
    Member since:
    Mar 2012

    Posted 25 Apr 2012 Link to this post

    Hello Giuseppe,
    thanks for your help! But there's one more thing that would be great:
    Is there a possibility to have the axes cross each other at 0, like in the attachment, and not on the bottom and left?
    Regards,
    Georg
  5. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 27 Apr 2012 Link to this post

    Hello Georg,

    Unfortunately RadChartView does not support such axis positioning within the plot area and it would not be possible to achieve the desired appearance.


    All the best,
    Giuseppe
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top