Chart scrolling problem

3 posts, 0 answers
  1. Salma
    Salma avatar
    5 posts
    Member since:
    Mar 2011

    Posted 01 Apr 2011 Link to this post

    Please Ireally need help here

     


    I'm drawing the chart for daily usage and it work perfectly but when I do draw the chart for 15 days and trying to do scrolling (I can't do that)

    how can I use the scrolling (I don't use silver light)

    here is a piece of my code

     

     

    foreach (HourlyUsage hu in hourlyUsages)

     

    {

     

     
    hourTime = hu.HourTime;

     

    decimal point = hu.AdjustedUsage;

     

    decimal cost = hu.Cost;

     

    decimal AdjustedUsage = hu.AdjustedUsage;

     

    decimal UnAdjustedUsage = hu.UnAdjustedUsage;

     

    totalCost += cost;

     

    Color selected = new Color();

     

    Color selectedGradient = new Color();

     

    if (hu.AdjustedUsage == 0)

     

    {

     

    selected = Color.Transparent;

     

    selectedGradient = Color.Transparent;

     

    }

     

     

     

    }

     

    int hour = hu.HourTime.Hour;

     

     

     

     

     

    TelerikHourlyChart.Series[0].AddItem(double.Parse(point.ToString())," ");

     

    TelerikHourlyChart.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Font = new Font("Arial", 8);

     

    TelerikHourlyChart.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = Color.Gray;

     

     

     

    TelerikHourlyChart.PlotArea.XAxis.AddItem(hourTime.ToString("h tt"));

     

    if (point == 0)

     

    {

     

    if (ToShowCost)

     

    {

     

    TelerikHourlyChart.Series[0].Items[TelerikHourlyChart.Series[0].Items.Count - 1].Label.TextBlock.Text ="";

     

    TelerikHourlyChart.Series[0].Items[TelerikHourlyChart.Series[0].Items.Count - 1].Label.Appearance.RotationAngle = 0;

     

    TelerikHourlyChart.Series[0].Items[TelerikHourlyChart.Series[0].Items.Count - 1].Label.TextBlock.Text = "";

     

    }

     

    else

     

    {

     

    TelerikHourlyChart.Series[0].Items[TelerikHourlyChart.Series[0].Items.Count - 1].Label.Appearance.RotationAngle = 0;

     

    TelerikHourlyChart.Series[0].Items[TelerikHourlyChart.Series[0].Items.Count - 1].Appearance.Border.Color = Color.Transparent;

     

    TelerikHourlyChart.Series[0].Items[TelerikHourlyChart.Series[0].Items.Count - 1].Label.TextBlock.Text = "0";

     

    }

     

    }

     

     

     

     

     

    index++;

     

    }

     

     
    if (chkshow15.Checked)
                        {

     

                            TelerikHourlyChart.ClientSettings.EnableZoom = false;
                            TelerikHourlyChart.ClientSettings.XScale = 4;
     TelerikHourlyChart.ClientSettings.ScrollMode = Telerik.Web.UI.ChartClientScrollMode.XOnly;
                           
               }
    else {
                            TelerikHourlyChart.ClientSettings.EnableZoom = false;
                            TelerikHourlyChart.ClientSettings.XScale = 1;
     TelerikHourlyChart.ClientSettings.ScrollMode = Telerik.Web.UI.ChartClientScrollMode.None;}

     

     

     

     

     

     

     

     

     

     

     

    }

     

    }

     

  2. Salma
    Salma avatar
    5 posts
    Member since:
    Mar 2011

    Posted 04 Apr 2011 Link to this post

    Please I need the answer
  3. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 06 Apr 2011 Link to this post

    Hi Salma,

    We have addressed your inquiry in the other forum thread you have started on the same topic here.

    Should you have future inquiries, we would ask you to keep the communication on this issue in a single thread so we can advise you properly and in a timely manner.


    All the best,
    Giuseppe
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top