Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1775
Graph like chart in xamdatachart
posted

Hi

How to generate a chart as in the attached image. Please, provide a suitabe sample.

 

Regards,

Sasikumar

Parents
No Data
Reply
  • 405
    posted

    Hello, Sasikumar.

     

    Thank you for your post.

     

    To assist you in generating a chart as in the image that you attached, I have created and upload a sample application here for your reference.

    1)      To create the squares in the line series I have used ScatterLineSeries. I set the thickness to 3 to make the line thicker. To simulate dots, I set the DashArray property to a value of “1 1”. This means that the length of the dot will be the same as the length of the gap.

    For more information on ScatterLineSeries, please refer to this link - http://help.infragistics.com/NetAdvantage/WPF/2013.1/CLR4.0/?page=xamDataChart_Scatter_Line_Series.html.

    2)      You can use the CrossingValue and CrossingAxis properties to divide the plane to 4 quadrants. By setting CrossingValue to 0 for both the X and Y axis you specify that the center of the frame of reference will match the (0, 0) point.

    3)      To set the minimum and maximum of the axes, you use the MinimumValue and MaximumValue properties. In the attached sample, I have set them to -50 and 50 for the X axis and to -30 and 30 for the Y axis.

    4)      To add the labels next to the axis, I changed the label settings by setting the location to InsideBottom for the X axis and InsideLeft for the Y axis. You can use the Extent property to move the labels further or closer to the axis.

     

    As of now, there is an issue with setting the labels location in the axis. To properly visualize the elements of the chart, the user interface needs to be refreshed and redrawn. In order to avoid this behavior, you can add an event handler for the Loaded event of the data chart that changes the width of the chart with 1 pixel to force redrawing in runtime.

    I have logged this behavior with our developers in our tracking system, with an issue ID of 154183.  I have also created a support ticket on your behalf with number CAS-124693-Z9P8S9 in order to link the development issue to it so that you are automatically updated when a Service Release containing your fix is available for download.

     

    Let me know if you need any additional help.

     

    Sincerely,

    Lazar Nikolov

    Infragistics

    www.infragistics.com/support

    DataChartPointSeries.zip
Children