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

How to change the charts style

3 Answers 181 Views
Charts
This is a migrated thread and some comments may be shown as answers.
thiru
Top achievements
Rank 1
thiru asked on 07 Oct 2011, 02:26 PM
Hi,

First time i am using kendo UI chart.
How to change the chart designs.For example,The default chart will displays horizontal and vertical line but i need to display dotted line instead of those lines.how to change the entire chart design.Please help me out this and thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 10 Oct 2011, 09:19 AM
Hello Thiru,

Thank you for contacting us.

With beta 2 release of Kendo UI we are implemented dashType property.

You can set dashType to the border, line, or major/minor grid lines. For example:

categoryAxis: {
       line: {
             dashType: "dot" //or "dash", "longdash", "dashdot", "longdashdot" and "longdashdotdot"
       }
}
or
chartArea: {
     border: {
           dashType: "dot",
           color: "red",
           width: 1
     }
}

Kind regards,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
thiru
Top achievements
Rank 1
answered on 10 Oct 2011, 09:40 AM
Hi Hristo Germano,

Thanks for your help.I applied your code on x and y axis its working.but i need to change all lines into dotted.
How to change that?
I have attached file.This file have our design.Is this design is possible to your kendo chart.
Please check my attached files. Once again thanks for your help.
0
Hristo Germanov
Telerik team
answered on 10 Oct 2011, 12:33 PM
Hello Thiru,

1) You need to set dashType to majorGridLines for categoryAxis.
2) DashType to ticks for category/value axis is not supported.
3) Labels "day", "this weak" and "last weak" are not supported.
 
Greetings,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
thiru
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
thiru
Top achievements
Rank 1
Share this question
or