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

RadHtmlChart API tell marker to fill

1 Answer 80 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 13 Jan 2015, 05:12 PM
I am using API to set much of the properties of the series because they are dynamically build.
when I create a series / then add it to PlotArea the values of the colors are not set. I suppose they set when chart is bound / or rendered.
is there an early API way to tell the markers to just auto fill with whatever their color is going to be?

or will I need to explicitly set the marker color/style myself and rotate through a range of colors/shapes as I add series?
right now the system auto creates the colors.

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 14 Jan 2015, 07:40 AM
Hello Doug,

You can use the MarkersAppearance tag in order to configure the markers of the series (e.g., background color, border color, etc.):
ASPX:
<telerik:RadHtmlChart runat="server" ID="ColumnChart1" Width="600px" Height="400px">
    <PlotArea>
        <Series>
            <telerik:LineSeries Name="Product 1">
                <Appearance FillStyle-BackgroundColor="Blue"></Appearance>
                <MarkersAppearance BackgroundColor="Green" BorderColor="Red" />
                <SeriesItems>
                    <telerik:CategorySeriesItem Y="15000" />
                    <telerik:CategorySeriesItem Y="23000" />
                    <telerik:CategorySeriesItem Y="10000" />
                </SeriesItems>
            </telerik:LineSeries>
        </Series>
    </PlotArea>
</telerik:RadHtmlChart>



Regards,
Danail Vasilev
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 (Obsolete)
Asked by
Doug
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or