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

2 posts, 0 answers
  1. ASPFUN
    ASPFUN avatar
    1 posts
    Member since:
    Jan 2010

    Posted 24 Nov 2014 Link to this post

    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> 
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1492 posts

    Posted 25 Nov 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top