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

How to assign integer to Y in run time in code behind the form?

1 Answer 43 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
ASPFUN
Top achievements
Rank 1
ASPFUN asked on 24 Nov 2014, 03:12 PM
I created a barchart using HTMLChart. HTML code was completed and works fine.
Below is some code. I used static number for test. (Y="25")
How to assign integer to Y in run time in code behind the form? 

                                        <telerik:BarSeries Name="Notification Sent to PCP" Stacked="false" Gap="1.5" Spacing="0.4">
                                                <Appearance>
                                                    <FillStyle BackgroundColor="Yellow"></FillStyle>
                                                </Appearance>
                                                <LabelsAppearance DataFormatString="{0}" Position="Center">
                                                </LabelsAppearance>
                                                <TooltipsAppearance BackgroundColor="#c5d291" DataFormatString="{0}" Color="White">
                                                </TooltipsAppearance>
                                                <SeriesItems>
                                                    <telerik:CategorySeriesItem Y="25"></telerik:CategorySeriesItem>
                                                </SeriesItems>
                                            </telerik:BarSeries> 

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 25 Nov 2014, 02:23 PM
Hi Sherman,

Please refer to this online demo for an example on how to create programmatically the chart.

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