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

Line Chart with Multiple set of data with customized properties

1 Answer 21 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 15 Jan 2015, 07:59 AM
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

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 16 Jan 2015, 11:45 AM
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.

 
Tags
Chart (HTML5)
Asked by
Stefan
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or