Hello,
I am trying to get the background/background color of the RAD HTML 5 Column Chart to be transparent but no matter what I do it is always white, unless, of course, I set it to some other color besides white (e.g. green).
I want to lay the chart on a larger background image but the charts plot background is always white.
How can I make the chart transparent so I can see the background image underneath it?
<div style="padding:200px 0px 0px 0px;height:1000px;width:1000px;background-image:url(bearbackground.png);">
<telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" Width="800" Height="500" Transitions="true" BackColor="Transparent">
<Appearance>
<FillStyle BackgroundColor="Transparent"></FillStyle>
</Appearance>
<Legend>
<Appearance Visible="false" ></Appearance>
</Legend>
<PlotArea>
<Appearance>
<FillStyle BackgroundColor="Transparent"></FillStyle>
</Appearance>
<XAxis AxisCrossingValue="0" Color="#b3b3b3" MajorTickType="Outside" MinorTickType="Outside"
Reversed="false">
<Items>
<telerik:AxisItem LabelText="Bear 1"></telerik:AxisItem>
<telerik:AxisItem LabelText="Bear 2"></telerik:AxisItem>
<telerik:AxisItem LabelText="Bear 3"></telerik:AxisItem>
<telerik:AxisItem LabelText="Bear 4"></telerik:AxisItem>
<telerik:AxisItem LabelText="Bear 5"></telerik:AxisItem>
</Items>
<LabelsAppearance DataFormatString="{0}" RotationAngle="0" Visible="false"></LabelsAppearance>
<MajorGridLines Color="#EFEFEF" Width="1"></MajorGridLines>
<MinorGridLines Color="#F7F7F7" Width="1"></MinorGridLines>
</XAxis>
<YAxis AxisCrossingValue="0" Color="#b3b3b3" MajorTickSize="1" MajorTickType="Outside"
MaxValue="50000" MinorTickSize="1" MinorTickType="Outside" MinValue="0" Reversed="false"
Step="10000" Visible="false">
<MajorGridLines Color="#EFEFEF" Width="1"></MajorGridLines>
<MinorGridLines Color="#F7F7F7" Width="1"></MinorGridLines>
<TitleAppearance Position="Center" RotationAngle="0" Text="Votes"></TitleAppearance>
</YAxis>
<Series>
<telerik:ColumnSeries Name="Bears" Stacked="false">
<Appearance>
<FillStyle BackgroundColor="#ff0000"></FillStyle>
</Appearance>
<Items>
<telerik:SeriesItem YValue="25000"></telerik:SeriesItem>
<telerik:SeriesItem YValue="12000"></telerik:SeriesItem>
<telerik:SeriesItem YValue="39000"></telerik:SeriesItem>
<telerik:SeriesItem YValue="39000"></telerik:SeriesItem>
<telerik:SeriesItem YValue="39000"></telerik:SeriesItem>
</Items>
</telerik:ColumnSeries>
</Series>
</PlotArea>
</telerik:RadHtmlChart>
</div>
Here is the source view of the generated javascript. It can be clearly seen that the background color is being set to white despite the fact that the configuration says Transparent:
WebForm_InitCallback();Sys.Application.add_init(function() {
$create(Telerik.Web.UI.RadHtmlChart, {"_chartArea":"{background: \u0027#ffffff\u0027}","_chartTitle":"{visible :true}","_plotArea":"{categoryAxis: { line: { width: 1, color: \u0027#b3b3b3\u0027}, minorTickType: \u0027outside\u0027,title :{visible :true},labels :{visible: false},minorGridLines :{visible :true, color: \u0027#f7f7f7\u0027},majorGridLines :{visible :true, color: \u0027#efefef\u0027}, axisCrossingValue: 0, categories: [\u0027Bear 1\u0027,\u0027Bear 2\u0027,\u0027Bear 3\u0027,\u0027Bear 4\u0027,\u0027Bear 5\u0027]},valueAxis:[{visible: false}],appearance: {background: \u0027#ffffff\u0027}}","_series":"series: [{color: \u0027#ff0000\u0027,name: \u0027Bears\u0027,tooltip :{visible :true},type: \u0027column\u0027, data: [25000,12000,39000,39000,39000],labels :{font: \u002712px Arial,Helvetica,sans-serif\u0027, visible :true, position: \u0027outsideEnd\u0027}}]","_uniqueId":"RadHtmlChart1","clientStateFieldID":"RadHtmlChart1_ClientState","height":"250px","skin":"Default","width":"800px"}, null, null, $get("RadHtmlChart1"));
});
//]]>
Thanks,
Eric
I am trying to get the background/background color of the RAD HTML 5 Column Chart to be transparent but no matter what I do it is always white, unless, of course, I set it to some other color besides white (e.g. green).
I want to lay the chart on a larger background image but the charts plot background is always white.
How can I make the chart transparent so I can see the background image underneath it?
<div style="padding:200px 0px 0px 0px;height:1000px;width:1000px;background-image:url(bearbackground.png);">
<telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" Width="800" Height="500" Transitions="true" BackColor="Transparent">
<Appearance>
<FillStyle BackgroundColor="Transparent"></FillStyle>
</Appearance>
<Legend>
<Appearance Visible="false" ></Appearance>
</Legend>
<PlotArea>
<Appearance>
<FillStyle BackgroundColor="Transparent"></FillStyle>
</Appearance>
<XAxis AxisCrossingValue="0" Color="#b3b3b3" MajorTickType="Outside" MinorTickType="Outside"
Reversed="false">
<Items>
<telerik:AxisItem LabelText="Bear 1"></telerik:AxisItem>
<telerik:AxisItem LabelText="Bear 2"></telerik:AxisItem>
<telerik:AxisItem LabelText="Bear 3"></telerik:AxisItem>
<telerik:AxisItem LabelText="Bear 4"></telerik:AxisItem>
<telerik:AxisItem LabelText="Bear 5"></telerik:AxisItem>
</Items>
<LabelsAppearance DataFormatString="{0}" RotationAngle="0" Visible="false"></LabelsAppearance>
<MajorGridLines Color="#EFEFEF" Width="1"></MajorGridLines>
<MinorGridLines Color="#F7F7F7" Width="1"></MinorGridLines>
</XAxis>
<YAxis AxisCrossingValue="0" Color="#b3b3b3" MajorTickSize="1" MajorTickType="Outside"
MaxValue="50000" MinorTickSize="1" MinorTickType="Outside" MinValue="0" Reversed="false"
Step="10000" Visible="false">
<MajorGridLines Color="#EFEFEF" Width="1"></MajorGridLines>
<MinorGridLines Color="#F7F7F7" Width="1"></MinorGridLines>
<TitleAppearance Position="Center" RotationAngle="0" Text="Votes"></TitleAppearance>
</YAxis>
<Series>
<telerik:ColumnSeries Name="Bears" Stacked="false">
<Appearance>
<FillStyle BackgroundColor="#ff0000"></FillStyle>
</Appearance>
<Items>
<telerik:SeriesItem YValue="25000"></telerik:SeriesItem>
<telerik:SeriesItem YValue="12000"></telerik:SeriesItem>
<telerik:SeriesItem YValue="39000"></telerik:SeriesItem>
<telerik:SeriesItem YValue="39000"></telerik:SeriesItem>
<telerik:SeriesItem YValue="39000"></telerik:SeriesItem>
</Items>
</telerik:ColumnSeries>
</Series>
</PlotArea>
</telerik:RadHtmlChart>
</div>
Here is the source view of the generated javascript. It can be clearly seen that the background color is being set to white despite the fact that the configuration says Transparent:
WebForm_InitCallback();Sys.Application.add_init(function() {
$create(Telerik.Web.UI.RadHtmlChart, {"_chartArea":"{background: \u0027#ffffff\u0027}","_chartTitle":"{visible :true}","_plotArea":"{categoryAxis: { line: { width: 1, color: \u0027#b3b3b3\u0027}, minorTickType: \u0027outside\u0027,title :{visible :true},labels :{visible: false},minorGridLines :{visible :true, color: \u0027#f7f7f7\u0027},majorGridLines :{visible :true, color: \u0027#efefef\u0027}, axisCrossingValue: 0, categories: [\u0027Bear 1\u0027,\u0027Bear 2\u0027,\u0027Bear 3\u0027,\u0027Bear 4\u0027,\u0027Bear 5\u0027]},valueAxis:[{visible: false}],appearance: {background: \u0027#ffffff\u0027}}","_series":"series: [{color: \u0027#ff0000\u0027,name: \u0027Bears\u0027,tooltip :{visible :true},type: \u0027column\u0027, data: [25000,12000,39000,39000,39000],labels :{font: \u002712px Arial,Helvetica,sans-serif\u0027, visible :true, position: \u0027outsideEnd\u0027}}]","_uniqueId":"RadHtmlChart1","clientStateFieldID":"RadHtmlChart1_ClientState","height":"250px","skin":"Default","width":"800px"}, null, null, $get("RadHtmlChart1"));
});
//]]>
Thanks,
Eric