This is a migrated thread and some comments may be shown as answers.

Crossplot with 4 quadrants

3 Answers 97 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Georg
Top achievements
Rank 1
Georg asked on 19 Apr 2012, 10:52 AM
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

3 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 24 Apr 2012, 09:46 AM
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 >>

0
Georg
Top achievements
Rank 1
answered on 25 Apr 2012, 12:11 PM
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
0
Giuseppe
Telerik team
answered on 27 Apr 2012, 01:01 PM
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 >>

Tags
ChartView
Asked by
Georg
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Georg
Top achievements
Rank 1
Share this question
or