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;}
}
}