Line Chart with Multiple set of data with customized properties

2 posts, 0 answers
  1. Stefan
    Stefan avatar
    4 posts
    Member since:
    Dec 2013

    Posted 15 Jan 2015 Link to this post

    Hi,

    Can someone please explain how can I create Line Chart that will contain multiple series, BUT with customized ClientTemplate.
    I've read that customization of ClientTemplate is possible if HtmlChart is bind to datasource, but if I bind it, the result is ONE single line, not multiple sets...

    Thanx in advance,
    Stefan
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 16 Jan 2015 Link to this post

    Hello Stefan,

    It is fine to use templates in tooltips/labels for a non-databound chart. The advantage of using templates in a data-bound chart, however, is that you can display custom text(i.e., obtained from other data source fileds). See such an example is illustrated in the HtmlChart - Client Templates for Series Labels and Tooltips demo.

    Regarding defining templates in multiple series -  each series must be configured with the corresponding template. You must also consider the following - when creating templates from code behind and there are quotes, they must be escaped with double back slashes and not a single one like it is done in the markup. See details in the Handling Special Symbols article.

    Let me know if there is anything else on this regard.

    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