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

Pie Chart Overlay Property

3 Answers 194 Views
Charts
This is a migrated thread and some comments may be shown as answers.
sara
Top achievements
Rank 1
sara asked on 10 Apr 2012, 10:36 PM
I have been trying to change the overlay property for a pie chart series.  According to your documenation at http://www.kendoui.com/documentation/dataviz/chart/configuration.aspx and http://demos.kendoui.com/dataviz/pie-chart/index.html, I should able to set the overlay property of the pie series to the string "glass" as so:
series: [{
type: "pie",
field: "Amount",
categoryField: "DisplayName",
colorField: "color",
padding: 20,
overlay: "glass"
}]

However, this has no effect on the chart.  After digging through the source code for the chart, I believe that overlay is not a string, but an object.  So instead of the above, I should use this:
series: [{
    type: "pie",
    field: "Amount",
    categoryField: "DisplayName",
    colorField: "color",
    padding: 20,
    overlay: {
        gradient: "glass"
    }
}]

I think this is an error in your documentation that needs correcting.

Additionally, it would be great to know all of the possible values that can be supplied there.  After further inspection of your source code, it appears that "none", "glass", "roundedBevel" are valid values that can be used.  Are there others?

Thanks,
Sara

3 Answers, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 12 Apr 2012, 01:57 PM
Hi,

Thank you for reporting this problem with the documentation.

The possible values are "roundedBevel", "sharpBevel" and "none". We'll add this info to the documentation.

As a token of gratitude for your involvement your Telerik points have been updated.

Regards,
Tsvetomir Tsonev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jacques
Top achievements
Rank 2
answered on 17 Oct 2013, 06:52 AM
seems like this information never made it to the documentation? 
0
T. Tsonev
Telerik team
answered on 23 Oct 2013, 07:03 AM
Hello,

The overlay property is already documented here:
http://docs.kendoui.com/api/dataviz/chart#configuration-series.overlay.gradient

I hope this helps.

Regards,
T. Tsonev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
sara
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Jacques
Top achievements
Rank 2
Share this question
or