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

Scrolling problem

1 Answer 28 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Salma
Top achievements
Rank 1
Salma asked on 05 Apr 2011, 03:05 AM
Please no one can help me 

 

Please I really 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;}

 

 

 

 

 

 

 

 

 

 

 

}

 

}

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 06 Apr 2011, 05:46 PM
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.


Best wishes,
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
Tags
Chart
Asked by
Salma
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or