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

PieSeries' Legend Colors Not Showing

1 Answer 101 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Avs8686
Top achievements
Rank 1
Avs8686 asked on 20 Aug 2014, 06:15 PM
I'm a little confused as to why the little color box next to the series in the legend are not appearing.  I've used other types of charts, but I'm attempting my first Pie Chart and I'm at a loss as to why it's not showing as the legend is something that I basically "set and forget" so to speak.  See attached image.  Code as followed.

<telerik:RadHtmlChart runat="server" ID="PieChart1" Width="1160" Height="500px" Transitions="true">
    <Appearance>
            <FillStyle BackgroundColor="White"></FillStyle>
    </Appearance>
    <ChartTitle Text="">
            <Appearance Align="Center" BackgroundColor="White" Position="Top" />
    </ChartTitle>
    <Legend>
        <Appearance BackgroundColor="White" Position="Right" Visible="true" /> 
    </Legend>
    <PlotArea>               
        <Appearance>
            <FillStyle BackgroundColor="White" />                   
        </Appearance>
        <Series>                   
            <telerik:PieSeries DataFieldY="Count" NameField="Product">
                <LabelsAppearance ClientTemplate="#=dataItem.Product# #=dataItem.Percentage#%"/>
            </telerik:PieSeries>
        </Series>
    </PlotArea>
</telerik:RadHtmlChart>

DataTable dt = GetData();
PieChart1.DataSource = dt;
PieChart1.DataBind();

1 Answer, 1 is accepted

Sort by
0
Stamo Gochev
Telerik team
answered on 22 Aug 2014, 10:45 AM
Hi,

I tried to reproduce the issue, but everything seems OK with the version that you have specified (2014.2.724). Can you send me a fully runnable page that demonstrates the problem?

In addition, does the issue occur in different browsers? If this is the case, can you inform me about the browser version that you are using?

Regards,
Stamo Gochev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart (HTML5)
Asked by
Avs8686
Top achievements
Rank 1
Answers by
Stamo Gochev
Telerik team
Share this question
or