The kendoChart background color use white for default. How i can set alternate color for background?
Like the attack effects.
3 Answers, 1 is accepted
0
Plamen Lazarov
Telerik team
answered on 15 Jul 2015, 07:14 AM
Hello,
Basically you can set a different background color to the plotArea by plotArea.background option. However in order to set background similar to the attached image you can use valueAxis.plotBands.
how would you do this when you don't know all your data values? Where the value axis changes depending on a max value? It could be 20 or 1000 depending on the data set.
0
Daniel
Telerik team
answered on 31 Oct 2016, 09:57 AM
Hello,
If the value range is not known in advance then I can suggest to use the approach demonstrated in this example to draw the plotbands via the Drawing API in the render event - example.
Regards,
Daniel
Telerik by Progress
Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.