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

Line Chart - display when only one value is plotted

1 Answer 35 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tim
Top achievements
Rank 1
Tim asked on 12 Jan 2015, 04:20 PM
In a line chart with a value plotted for each month of the year, how can I show the value of January when that is the only value currently available? As it stands now, I can only see the value for Jan if I also plot the value for Feb (zero) so the trend is observable. Without that, either the plot is too small to see of the trend line doesn't exist because I have only one value plotted.

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 12 Jan 2015, 05:02 PM
Hello Tim,

If you have just one point, obviously a line cannot be drawn, but if you have a PointTemplate, the point should be visualized. For example: 
<chart:LineSeries.PointTemplate>
    <DataTemplate>
        <Ellipse Width="50" Height="50" Stroke="Red" Fill="Green" />
    </DataTemplate>
</chart:LineSeries.PointTemplate>

Please, let me know if this helps.

Regards,
Ivaylo Gergov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart for XAML
Asked by
Tim
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or