Telerik Forums
UI for Silverlight Forum
1 answer
73 views
Is it possible using the DateTimeContinuousAxis to set a range? I have a graph where I am plotting points. The issue is the graph "stretches" out as you add points. So if you have 2 points it plots them both over the entire axis. What I would like to do is plot the 2 points on the beginning of the graph and leave the rest blank. I would like the axis to cover a set time range.

<telerik:RadCartesianChart x:Name="myChart">
            <chartView:LineSeries CategoryBinding="DateCategory" ValueBinding="Value1" Stroke="#880000FF" StrokeThickness="2"/>
            <chartView:LineSeries CategoryBinding="DateCategory" ValueBinding="Value2" Stroke="#8800FF00" StrokeThickness="2"/>
            <chartView:LineSeries CategoryBinding="DateCategory" ValueBinding="Value3" Stroke="#88FF0000" StrokeThickness="2"/>
 
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior ZoomMode="Horizontal" PanMode="Horizontal"/>
            </telerik:RadCartesianChart.Behaviors>
            <telerik:RadCartesianChart.HorizontalAxis>
                <chartView:DateTimeContinuousAxis MajorStepUnit="Hour"
                                                LabelInterval="10"
                                                LabelFormat="HH:mm:ss" FontFamily="Segoe UI"
                                                PlotMode="OnTicks" LabelFitMode="Rotate" MaximumTicks="31" />
            </telerik:RadCartesianChart.HorizontalAxis>
 
            <telerik:RadCartesianChart.VerticalAxis>
                <chartView:LinearAxis x:Name="VerticalAxis" FontFamily="Segoe UI" Minimum="-5" Maximum="5"/>
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:RadCartesianChart.Grid>
                <chartView:CartesianChartGrid MajorLinesVisibility="Y" MajorYLineDashArray="3,4" />
            </telerik:RadCartesianChart.Grid>
        </telerik:RadCartesianChart>
    
Peshito
Telerik team
 answered on 13 Feb 2015
1 answer
44 views
Hi,

I am trying to use the Pie Chart available in the RadChart

It seems that no matter what I set for the LabelSettings  for the PieSeriesDefinition

ShowItemLabels = true;
LabelSettings.SpiderModeEnabled = true;
LabelSettings.ShowConnectors = true;
LabelSettings.Distance = 5;

no labels show.

The legend does show the labels for each item.

Any ideas?

Thanks
Peshito
Telerik team
 answered on 13 Feb 2015
2 answers
32 views
How Do I Assign Individual Colors to Bars?


i want to do something like that 

http://www.telerik.com/help/aspnet-ajax/chart-how-to-assign-individual-colors-to-bars.html

from code behind in silverlight

there is my sample code 

 Telerik.Windows.Controls.RadChart chart = new Telerik.Windows.Controls.RadChart();
 chart.PaletteBrushes = new BrushCollection();
                                chart.PaletteBrushes.Add(new SolidColorBrush() { Color = Colors.Orange });
                                chart.PaletteBrushes.Add(new SolidColorBrush() { Color = Colors.Green });
                                chart.PaletteBrushes.Add(new SolidColorBrush() { Color = Colors.Orange });
                                chart.PaletteBrushes.Add(new SolidColorBrush() { Color = Colors.DarkGray });
  DataSeries barSeries=new DataSeries();
                                foreach (Indicator ind in cd.Indicators)
                                {

                                   
                                        barSeries.Add(new DataPoint() { YValue = double.Parse(ind.value), XCategory = ind.Name });
                                        barSeries.LegendLabel = ind.Name;
                                        
                                        
                                    
                                }
 int colorindex = 0;
                              foreach (var bar in barSeries)
                                            {
                                                BarSeriesDefinition bardef = new BarSeriesDefinition();
                                                bardef.Appearance.Fill = chart.PaletteBrushes[colorindex];
                                                bar.DataItem = bardef;
                                                colorindex++;
                                            }
 chart.DefaultView.ChartArea.DataSeries.Add(barSeries);


Peshito
Telerik team
 answered on 03 Feb 2015
2 answers
33 views
Hi, I have a Silverlight RadChart displaying multiple horizontal stacked series.  The labels on the y axis are centred and I need them to be right-aligned.  I believe I need to set the DefaultView.ChartArea.PlotAreaAxisYStyle style, but I can't get this to work either in code or XAML.

There seem to be no examples available anywhere that demonstrate the use of this style - could someone possibly supply one?

Thanks,

Ben Jackson
Asprey
rachel
Top achievements
Rank 1
 answered on 20 Jan 2015
3 answers
52 views
Hi there,

We used ExportExtensions.ExportToImage (using both PngBitmapEncoder and BmpBitmapEncoder) to copy an image to the Clipboard.

However, in order for us to paste this image into a Microsoft Word document, we need to do Paste Special -> Device Independent Bitmap.

Is there anything I can do so that the normal Paste will just work?

Regards,

Tony
Petar Marchev
Telerik team
 answered on 19 Jan 2015
1 answer
38 views
We are facing issue while exporting RadChart to Image Using 
 this.rdChartGraph.ExportToImage(isoStream);

The stack trace is follows:

at Telerik.Windows.Media.Imaging.Zip.DeflateManager.Tally(Int32 dist, Int32 lc)
   at Telerik.Windows.Media.Imaging.Zip.DeflateManager.ProcessSlowDeflate(Int32 flush, Int32& num)
   at Telerik.Windows.Media.Imaging.Zip.DeflateManager.SlowDeflate(Int32 flush)
   at Telerik.Windows.Media.Imaging.Zip.DeflateManager.Deflate(ZipBaseStream strm, Int32 flush)
   at Telerik.Windows.Media.Imaging.Zip.ZipBaseStream.Deflate(Int32 flush)
   at Telerik.Windows.Media.Imaging.Zip.ZipOutputStream.FinishWriting()
   at Telerik.Windows.Media.Imaging.Zip.ZipOutputStream.Close()
   at System.IO.Stream.Dispose()
   at Telerik.Windows.Media.Imaging.PngBitmapEncoder.WriteDataChunks()
   at Telerik.Windows.Media.Imaging.PngBitmapEncoder.Encode(WriteableBitmap image)
   at Telerik.Windows.Media.Imaging.PngBitmapEncoder.Save(Stream stream)
   at Telerik.Windows.Media.Imaging.ImageExporter.Export(FrameworkElement element, Stream stream, BitmapEncoder encoder)
   at Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(FrameworkElement element, Stream stream, BitmapEncoder encoder)
   at Telerik.Windows.Controls.RadChart.ExportToImage(Stream stream)

Your prompt help would be appreciated.

Thanks.
Fanindra
Petar Marchev
Telerik team
 answered on 13 Jan 2015
5 answers
149 views
Is there a way to manually set the colour of each slice in the piechart?
Martin Ivanov
Telerik team
 answered on 07 Jan 2015
1 answer
22 views
I'm setting the label of each tick in the RangeChanged event handler, as shown in this thread: http://www.telerik.com/forums/timespan-on-y-axis-be4ef7865705). The event is always triggered when needed, but randomly the Yaxis will fail to use the labels and show unformatted values instead.
Any thoughts?
Peshito
Telerik team
 answered on 26 Dec 2014
3 answers
118 views
Hi,

Is it possible to get Dashed/Dotted Lines for Bar graph using Telerik radChart control ?

Regards,
Gaurav
Martin Ivanov
Telerik team
 answered on 04 Nov 2014
11 answers
208 views
Hello,

I would like to create a 3D pie chart. The chart1.jpg is the one I got from a sample.

Does anyone know to customize this chart to like the chart2.jpg?

Thanks
Peshito
Telerik team
 answered on 17 Oct 2014
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?