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

Show vintage even when there is no data

1 Answer 34 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 07 Jan 2011, 03:45 PM
Hi
I am just getting started with the great chart control, and can't figure out how to do what I am sure
is simple..

I have a database of prices and vintages for specific wines and I am looking to create a point chart to show the correlation of price to vintage.

I have created a nice chart, but there are no vintages shown on the x-axis where there are no data points in the database. (Not every vintage has production for some chateaux)

What I actually want is
- a linear x axis with a tick for every year from 1850 to 2010
- ideally with every 5th year labelled (to avoid crowding of the x-axis text)
- point markers for every value that is in the database
- no point marker where there is no data.

How do I set it up to get this result?

Thanks for some hints!

Clive

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 11 Jan 2011, 09:42 AM
Hi Clive,

If the data coming from the database does not include the required intervals, you can use the use the RangeStart/End properties for the XAxis, and plot the years from 1850 to 2010. Additionally, you can use the label step properties, to govern the visibility of the labels along the axis:

http://www.telerik.com/help/silverlight/radchart-features-axes-x-axis.html

I hope this information gets you started properly.

Regards,
Yavor
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Chart (Obsolete)
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or