Hi telerik team.
I have 2 questions.
1. I would like to know if i can add an custom image inside the ChartSeriesItem so it will look like this.
2. Please tried to get rid of all the background of my chart with no luck. please see the screen shot.
also here is the code of my page that the chart is in:
Any help will be greatly appritiated!
Rasin Vadim.
I have 2 questions.
1. I would like to know if i can add an custom image inside the ChartSeriesItem so it will look like this.
2. Please tried to get rid of all the background of my chart with no luck. please see the screen shot.
also here is the code of my page that the chart is in:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<%@ Register Assembly="Telerik.Charting, Version=2.0.2.0, Culture=neutral, PublicKeyToken=d14f3dcc8e3e8763" |
Namespace="Telerik.Charting" TagPrefix="telerik" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head runat="server"> |
<title>Untitled Page</title> |
<script language="javascript" type="text/javascript"> |
// <!CDATA[ |
function Button2_onclick() { |
var service = new MyService(); |
service.DoWork(MyCallback, null, null); |
} |
function MyCallback(stam) |
{ |
var txt1 = document.getElementById('txt1'); |
txt1.value = stam.StringValue; |
} |
// ]]> |
</script> |
</head> |
<body> |
<form id="form1" runat="server"> |
<div> |
</div> |
<input id="txt1" type="text" /> |
<asp:ScriptManager ID="ScriptManager1" runat="server"> |
<Services> |
<asp:ServiceReference Path="MyService.svc" /> |
</Services> |
</asp:ScriptManager> |
<input id="Button2" type="button" value="button" onclick="return Button2_onclick()" /> |
<br /> |
<br /> |
<telerik:RadChart ID="RadChart1" runat="server" Skin="Web20" Width="250px" Height="250px" |
AutoLayout="true" IntelligentLabelsEnabled="true"> |
<Appearance Border-Visible="false" Dimensions-Margins="0"> |
<FillStyle MainColor="blue"> |
<FillSettings> |
</FillSettings> |
</FillStyle> |
</Appearance> |
<Legend Visible="false"></Legend> |
<PlotArea Appearance-Border-Visible="false"> |
<XAxis MaxValue="5" MinValue="1" Step="1"> |
</XAxis> |
<YAxis MaxValue="25" Step="5"> |
</YAxis> |
<YAxis2 MaxValue="5" MinValue="1" Step="1"> |
</YAxis2> |
</PlotArea> |
<ChartTitle Visible="false"> |
</ChartTitle> |
<Legend Visible="false"></Legend> |
<Series> |
<telerik:ChartSeries Name="Series 1" Type="Pie"> |
<Appearance ExplodePercent="5" Border-Width="2" Border-Color="#f8f9fb" ShowLabelConnectors="false" |
ShowLabels="true" StartAngle="-90"> |
</Appearance> |
<Items> |
<telerik:ChartSeriesItem YValue="4" Name="Item 1"> |
<PointAppearance Visible="true"></PointAppearance> |
<Label> |
<TextBlock Text="4%"> |
</TextBlock> |
</Label> |
<Appearance Exploded="true"> |
<FillStyle MainColor="#b5e379" SecondColor="#b5e379"> |
<FillSettings> |
</FillSettings> |
</FillStyle> |
</Appearance> |
</telerik:ChartSeriesItem> |
<telerik:ChartSeriesItem YValue="10" Name="Item 1"> |
<Appearance Exploded="true"> |
<FillStyle MainColor="#b5e379" SecondColor="#b5e379"> |
<FillSettings> |
</FillSettings> |
</FillStyle> |
</Appearance> |
</telerik:ChartSeriesItem> |
<telerik:ChartSeriesItem YValue="4" Name="Item 1"> |
<Appearance Exploded="true"> |
<FillStyle MainColor="#b5e379" SecondColor="#b5e379"> |
<FillSettings> |
</FillSettings> |
</FillStyle> |
</Appearance> |
</telerik:ChartSeriesItem> |
<telerik:ChartSeriesItem YValue="4" Name="Item 1"> |
<Appearance Exploded="true"> |
<FillStyle MainColor="#b5e379" SecondColor="#b5e379"> |
<FillSettings> |
</FillSettings> |
</FillStyle> |
</Appearance> |
</telerik:ChartSeriesItem> |
<telerik:ChartSeriesItem YValue="30" Name="Item 2"> |
<Appearance> |
<FillStyle MainColor="#fc6c58" SecondColor="#fc6c58"> |
<FillSettings GradientMode="BackwardDiagonal"> |
</FillSettings> |
</FillStyle> |
</Appearance> |
</telerik:ChartSeriesItem> |
<telerik:ChartSeriesItem YValue="48" Name="Item 3"> |
<Appearance> |
<FillStyle MainColor="#e0e8f1" SecondColor="#e0e8f1"> |
<FillSettings GradientMode="ForwardDiagonal"> |
</FillSettings> |
</FillStyle> |
</Appearance> |
</telerik:ChartSeriesItem> |
</Items> |
</telerik:ChartSeries> |
</Series> |
</telerik:RadChart> |
</form> |
</body> |
</html> |
Any help will be greatly appritiated!
Rasin Vadim.