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

Need help formatting/designing chart

1 Answer 46 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 29 Nov 2008, 03:17 PM
Hey Guys

I would really appreciate your help as this is the first time I am using the charting controls. I have a screenshot attached here.

http://michael.dimoudis.s3.amazonaws.com/telerik-chart-help.gif

Basically on the left is the excel chart. On the right is what I so far managed to achieve, however I need help with the labels of the RadChart.

The DataSource is a list. Here it is...

public class MeanResults
{
        public int QuestionId { get; set; }
        public string Quadrant { get; set; }
        public string StatementType { get; set; }
        public double OrganisationalDelivery { get; set; }
        public double PersonalNeeds { get; set; }
}

Here is the aspx page code
<telerik:RadChart ID="RadChart1" runat="server" Skin="LightBlue" Width="900px" Height="700px" SeriesOrientation="Horizontal">
            <Series>
                <telerik:ChartSeries DataYColumn="OrganisationalDelivery" Name="Organisational Delivery">
                </telerik:ChartSeries>
                <telerik:ChartSeries DataYColumn="PersonalNeeds" Name="Personal Needs">
                </telerik:ChartSeries>
            </Series>
        </telerik:RadChart>

I basically do a RadChart1.DataSource = List<MeanResults>(the date...); RadChart1.DataBind().

Basically instead of the numbers 1-24 on the left, I need the StatementType label (only once per double bar). I also need the bottom scale to ALWAYS display 0 -10 instead of 0 - the last value of the OrganisationalDelivery or PersonalNeeds value.

Thanks in advance.

If someone is board and can help me go one step further and acheive this, I would be very grateful.
http://michael.dimoudis.s3.amazonaws.com/telerik-chart-help2.gif

Thanks, Michael










1 Answer, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 02 Dec 2008, 04:29 PM
Hello Michael,

To always display 0-10 range you should set the AutoScale property of the appropriate axis to false. This will allow you to manually set the Min and Max values. You can then specify the step you would like to have.

To get the labels to display on the axis you should use the DataLabelsColumn. It will instruct the chart to obtain the labels from the specified column in the datasource.

Let us know if this helps and if you need additional help.

All the best,
Vladimir Milev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart (Obsolete)
Asked by
Michael
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Share this question
or